Re: Extending ClusterMapReduceTestCase

2009-04-15 Thread czero
ble as well. >>> >> > >>> >> > Currently I'm getting : >>> >> > >>> >> > Starting DataNode 0 with dfs.data.dir: >>> >> > build/test/data/dfs/data/data1,build/test/data/dfs/data/data2 >>> >> > Starting DataNod

Re: Extending ClusterMapReduceTestCase

2009-04-14 Thread jason hadoop
a/data1,build/test/data/dfs/data/data2 >> >> > Starting DataNode 1 with dfs.data.dir: >> >> > build/test/data/dfs/data/data3,build/test/data/dfs/data/data4 >> >> > Generating rack names for tasktrackers >> >> > Generating host names for tasktracke

Re: Extending ClusterMapReduceTestCase

2009-04-14 Thread jason hadoop
jetty-ext libs in the classpath and I set the > >> > hadoop.log.dir and the SAX parser correctly. > >> > > >> > This is all I have for my test class so far, I'm not even doing > >> anything > >> > yet: > >> > > >> > pu

Re: Extending ClusterMapReduceTestCase

2009-04-14 Thread czero
g >> anything >> > yet: >> > >> > public class TestDoop extends ClusterMapReduceTestCase { >> > >> > @Test >> > public void testDoop() throws Exception { >> > System.setProperty("hadoop.log.dir", &q

Re: Extending ClusterMapReduceTestCase

2009-04-13 Thread jason hadoop
("hadoop.log.dir", "~/test-logs"); > > System.setProperty("javax.xml.parsers.SAXParserFactory", > > "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"); > > > > setUp(); > > > > System.out.println("done."); > > } > > > > Thanks! > > > > bc > > > > -- > View this message in context: > http://www.nabble.com/Extending-ClusterMapReduceTestCase-tp22440254p23024597.html > Sent from the Hadoop core-user mailing list archive at Nabble.com. > > -- Alpha Chapters of my book on Hadoop are available http://www.apress.com/book/view/9781430219422

Re: Extending ClusterMapReduceTestCase

2009-04-13 Thread czero
quot;javax.xml.parsers.SAXParserFactory", > "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"); > > setUp(); > > System.out.println("done."); > } > > Thanks! > > bc > -- View this message in context: http://www.nabble.com/Extending-ClusterMapReduceTestCase-tp22440254p23024597.html Sent from the Hadoop core-user mailing list archive at Nabble.com.

Re: Extending ClusterMapReduceTestCase

2009-04-13 Thread czero
"javax.xml.parsers.SAXParserFactory", "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"); setUp(); System.out.println("done."); } Thanks! bc -- View this message in context: http://www.nabble.com/Extending-ClusterMapReduceTestCas

Re: Extending ClusterMapReduceTestCase

2009-03-12 Thread Steve Loughran
jason hadoop wrote: I am having trouble reproducing this one. It happened in a very specific environment that pulled in an alternate sax parser. The bottom line is that jetty expects a parser with particular capabilities and if it doesn't get one, odd things happen. In a day or so I will have h

Re: Extending ClusterMapReduceTestCase

2009-03-11 Thread jason hadoop
Finally remembered, we had saxon 6.5.5 in the class path, and the jetty error was 09/03/11 08:23:20 WARN xml.XmlParser: EXCEPTION javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating On Wed, Mar 11, 2009 at 8:01 AM, jason hadoop wrote: > I am having trouble reproducing

Re: Extending ClusterMapReduceTestCase

2009-03-11 Thread jason hadoop
I am having trouble reproducing this one. It happened in a very specific environment that pulled in an alternate sax parser. The bottom line is that jetty expects a parser with particular capabilities and if it doesn't get one, odd things happen. In a day or so I will have hopefully worked out th

Re: Extending ClusterMapReduceTestCase

2009-03-11 Thread Steve Loughran
jason hadoop wrote: The other goofy thing is that the xml parser that is commonly first in the class path, validates xml in a way that is opposite to what jetty wants. What does ant -diagnostics say? It will list the XML parser at work This line in the preamble before theClusterMapReduceTes

Re: Extending ClusterMapReduceTestCase

2009-03-10 Thread jason hadoop
The other goofy thing is that the xml parser that is commonly first in the class path, validates xml in a way that is opposite to what jetty wants. This line in the preamble before theClusterMapReduceTestCase setup takes care of the xml errors. System.setProperty("javax.xml.parsers.SAXParserFact

Re: Extending ClusterMapReduceTestCase

2009-03-10 Thread jason hadoop
There are a couple of failures that happen in tests derived from ClusterMapReduceTestCase that are run outside of the hadoop unit test framework. The basic issue is that the unit test doesn't have the benefit of a runtime environment setup by the bin/hadoop script. The classpath is usually missin

Extending ClusterMapReduceTestCase

2009-03-10 Thread Brian Forney
Hi all, I'm trying to write a JUnit test case that extends ClusterMapReduceTestCase to test some code I've written to ease job submission and monitoring between some existing code. Unfortunately, I see the following problem and cannot find the jetty 5.1.4 code anywhere online. Any ideas about why