You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Stefan Groschupf <sg...@101tec.com> on 2008/02/06 00:04:02 UTC

test fails.

Hi there,
on r618816 at least on my box and on the one of my colleagues all test  
fail.
Anyone know what this is all about?
Thanks.
Stefan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com



Re: test fails.

Posted by Alan Gates <ga...@yahoo-inc.com>.
JIRA tracking this is http://issues.apache.org/jira/browse/PIG-72

Alan.

On Feb 19, 2008, at 2:40 AM, Stefan Groschupf wrote:

> On Feb 14, 2008, at 10:59 AM, Olga Natkovich wrote:
>> We are already working on unit tests that don't require cluster. They
>> will be available in a few weeks.
>
> At least for our project this is one of the highest priorities, 
> testing contribution in currently is very work intense. Also it will 
> help to grow the pig contributor base. I guess there some more people 
> using pig that could help writing some tests, are you willing to share 
> the current work in progress?
> Thanks!
> Stefan
>
>


Re: test fails.

Posted by Stefan Groschupf <sg...@101tec.com>.
On Feb 14, 2008, at 10:59 AM, Olga Natkovich wrote:
> We are already working on unit tests that don't require cluster. They
> will be available in a few weeks.

At least for our project this is one of the highest priorities,  
testing contribution in currently is very work intense. Also it will  
help to grow the pig contributor base. I guess there some more people  
using pig that could help writing some tests, are you willing to share  
the current work in progress?
Thanks!
Stefan



RE: test fails.

Posted by Olga Natkovich <ol...@yahoo-inc.com>.
We are already working on unit tests that don't require cluster. They
will be available in a few weeks.

Olga 

> -----Original Message-----
> From: Stefan Groschupf [mailto:sg@101tec.com] 
> Sent: Thursday, February 14, 2008 10:49 AM
> To: pig-dev@incubator.apache.org
> Subject: Re: test fails.
> 
> Hi,
> > You need to specify a hadoop-site.xml when running tests:
> > ant -Djunit.*hadoop.conf*=hadoop-site.xml test
> > see: http://wiki.apache.org/pig/HowToContribute
> 
> I suggest we work on having locally running unit tests as 
> well as integration tests. I think it should be as easy as 
> possible for new developers to start contributing patches and 
> be able to test those patches. Not everybody has the luxury 
> of a free available test grid.
> 
> 
> Stefan 
> 

Re: test fails.

Posted by Xu Zhang <xu...@yahoo-inc.com>.
It is coming soon!

Best regards,
Xu


> From: Stefan Groschupf <sg...@101tec.com>
> Reply-To: <pi...@incubator.apache.org>
> Date: Thu, 14 Feb 2008 10:49:08 -0800
> To: <pi...@incubator.apache.org>
> Subject: Re: test fails.
> 
> Hi,
>> You need to specify a hadoop-site.xml when running tests:
>> ant -Djunit.*hadoop.conf*=hadoop-site.xml test
>> see: http://wiki.apache.org/pig/HowToContribute
> 
> I suggest we work on having locally running unit tests as well as
> integration tests. I think it should be as easy as possible for new
> developers to start contributing patches and be able to test those
> patches. Not everybody has the luxury of a free available test grid.
> 
> 
> Stefan 


Re: test fails.

Posted by Stefan Groschupf <sg...@101tec.com>.
Hi,
> You need to specify a hadoop-site.xml when running tests:
> ant -Djunit.*hadoop.conf*=hadoop-site.xml test
> see: http://wiki.apache.org/pig/HowToContribute

I suggest we work on having locally running unit tests as well as  
integration tests. I think it should be as easy as possible for new  
developers to start contributing patches and be able to test those  
patches. Not everybody has the luxury of a free available test grid.


Stefan 

Re: test fails.

Posted by Benjamin Francisoud <be...@joost.com>.
Got the same problem that's because they are not really unit test but 
more functionnal tests, you need a cluster to run them...

You need to specify a hadoop-site.xml when running tests:
ant -Djunit.*hadoop.conf*=hadoop-site.xml test

see: http://wiki.apache.org/pig/HowToContribute

Stefan Groschupf a écrit :
> Looks like ant clean test does not include cc-compile. I will work on 
> that.

I think I changed some ant "depends" in PIG-68 for the same reason...

> However beside that now I get this error:
> Testsuite: org.apache.pig.test.TestGrunt
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.264 sec
> ------------- Standard Error -----------------
> 08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to 
> hadoop file system at: file:///
> 08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to 
> map-reduce job tracker at: local
> ------------- ---------------- ---------------
>
> Testcase: testCopyFromLocal took 0.261 sec
>     Caused an ERROR
> Bad mapred.job.tracker: local
> java.lang.RuntimeException: Bad mapred.job.tracker: local
>     at 
> org.apache.hadoop.mapred.JobTracker.getAddress(JobTracker.java:711)
>     at 
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:149) 
>
>     at org.apache.pig.impl.PigContext.connect(PigContext.java:180)
>     at org.apache.pig.PigServer.<init>(PigServer.java:126)
>     at org.apache.pig.PigServer.<init>(PigServer.java:117)
>     at org.apache.pig.test.TestGrunt.testCopyFromLocal(TestGrunt.java:19)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>


Re: test fails.

Posted by Stefan Groschupf <sg...@101tec.com>.
Looks like ant clean test does not include cc-compile. I will work on  
that.
However beside that now I get this error:
Testsuite: org.apache.pig.test.TestGrunt
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.264 sec
------------- Standard Error -----------------
08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to  
hadoop file system at: file:///
08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to  
map-reduce job tracker at: local
------------- ---------------- ---------------

Testcase: testCopyFromLocal took 0.261 sec
	Caused an ERROR
Bad mapred.job.tracker: local
java.lang.RuntimeException: Bad mapred.job.tracker: local
	at org.apache.hadoop.mapred.JobTracker.getAddress(JobTracker.java:711)
	at  
org 
.apache 
.pig 
.backend 
.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:149)
	at org.apache.pig.impl.PigContext.connect(PigContext.java:180)
	at org.apache.pig.PigServer.<init>(PigServer.java:126)
	at org.apache.pig.PigServer.<init>(PigServer.java:117)
	at org.apache.pig.test.TestGrunt.testCopyFromLocal(TestGrunt.java:19)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)




On Feb 13, 2008, at 10:55 AM, Stefan Groschupf wrote:

> Hi,
> still all test fail for me and my colleagues.
>
>
> jemez:pig joa23$ svn up
> At revision 627559.
> jemez:pig joa23$ echo $JAVA_HOME
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
> jemez:pig joa23$ ant clean test
> Buildfile: build.xml
>
> clean:
>   [delete] Deleting directory /Users/joa23/Documents/workspaces/ 
> my_workspace/pig/test/reports
>
> test:
>    [mkdir] Created dir: /Users/joa23/Documents/workspaces/ 
> my_workspace/pig/test/reports
>    [junit] Running org.apache.pig.test.TestAlgebraicEval
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestAlgebraicEval FAILED
>    [junit] Running org.apache.pig.test.TestBuiltin
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestBuiltin FAILED
>    [junit] Running org.apache.pig.test.TestCmdLineParser
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestCmdLineParser FAILED
>    [junit] Running org.apache.pig.test.TestCompressedFiles
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestCompressedFiles FAILED
>    [junit] Running org.apache.pig.test.TestDataBag
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestDataBag FAILED
>    [junit] Running org.apache.pig.test.TestDataModel
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestDataModel FAILED
>    [junit] Running org.apache.pig.test.TestEvalPipeline
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestEvalPipeline FAILED
>    [junit] Running org.apache.pig.test.TestFilterOpNumeric
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestFilterOpNumeric FAILED
>    [junit] Running org.apache.pig.test.TestFilterOpString
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestFilterOpString FAILED
>    [junit] Running org.apache.pig.test.TestGrunt
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestGrunt FAILED
>    [junit] Running org.apache.pig.test.TestInfixArithmetic
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestInfixArithmetic FAILED
>    [junit] Running org.apache.pig.test.TestLogicalPlanBuilder
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestLogicalPlanBuilder FAILED
>    [junit] Running org.apache.pig.test.TestMapReduce
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestMapReduce FAILED
>    [junit] Running org.apache.pig.test.TestPigFile
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestPigFile FAILED
>    [junit] Running org.apache.pig.test.TestPigServer
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestPigServer FAILED
>    [junit] Running org.apache.pig.test.TestPigSplit
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestPigSplit FAILED
>    [junit] Running org.apache.pig.test.TestStore
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test org.apache.pig.test.TestStore FAILED
>
> BUILD FAILED
> /Users/joa23/Documents/workspaces/my_workspace/pig/build.xml:135:  
> Tests failed!
>
>
>
> Testsuite: org.apache.pig.test.TestAlgebraicEval
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>
>        Caused an ERROR
> org.apache.pig.test.TestAlgebraicEval
> java.lang.ClassNotFoundException:  
> org.apache.pig.test.TestAlgebraicEval
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 
> 288)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
> 374)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>
>
> :-o
>
>
> What we do wrong?
> Thanks.
> Stefan
>
>
> On Feb 6, 2008, at 9:12 AM, Alan Gates wrote:
>
>> I'm updated to r619076 and I'm not seeing that.  How do the tests  
>> fail?  What environment are you developing in?
>>
>> Alan.
>>
>> P.S. I'm developing on a Linux box, using Java 1.6.0.
>>
>> Stefan Groschupf wrote:
>>> Hi there,
>>> on r618816 at least on my box and on the one of my colleagues all  
>>> test fail.
>>> Anyone know what this is all about?
>>> Thanks.
>>> Stefan
>>>
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> 101tec Inc.
>>> Menlo Park, California, USA
>>> http://www.101tec.com
>>>
>>>
>>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 101tec Inc.
> Menlo Park, California, USA
> http://www.101tec.com
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com



Re: test fails.

Posted by Stefan Groschupf <sg...@101tec.com>.
Hi,
still all test fail for me and my colleagues.


jemez:pig joa23$ svn up
At revision 627559.
jemez:pig joa23$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
jemez:pig joa23$ ant clean test
Buildfile: build.xml

clean:
    [delete] Deleting directory /Users/joa23/Documents/workspaces/ 
my_workspace/pig/test/reports

test:
     [mkdir] Created dir: /Users/joa23/Documents/workspaces/ 
my_workspace/pig/test/reports
     [junit] Running org.apache.pig.test.TestAlgebraicEval
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestAlgebraicEval FAILED
     [junit] Running org.apache.pig.test.TestBuiltin
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestBuiltin FAILED
     [junit] Running org.apache.pig.test.TestCmdLineParser
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestCmdLineParser FAILED
     [junit] Running org.apache.pig.test.TestCompressedFiles
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestCompressedFiles FAILED
     [junit] Running org.apache.pig.test.TestDataBag
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestDataBag FAILED
     [junit] Running org.apache.pig.test.TestDataModel
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestDataModel FAILED
     [junit] Running org.apache.pig.test.TestEvalPipeline
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestEvalPipeline FAILED
     [junit] Running org.apache.pig.test.TestFilterOpNumeric
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestFilterOpNumeric FAILED
     [junit] Running org.apache.pig.test.TestFilterOpString
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestFilterOpString FAILED
     [junit] Running org.apache.pig.test.TestGrunt
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestGrunt FAILED
     [junit] Running org.apache.pig.test.TestInfixArithmetic
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestInfixArithmetic FAILED
     [junit] Running org.apache.pig.test.TestLogicalPlanBuilder
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestLogicalPlanBuilder FAILED
     [junit] Running org.apache.pig.test.TestMapReduce
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestMapReduce FAILED
     [junit] Running org.apache.pig.test.TestPigFile
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestPigFile FAILED
     [junit] Running org.apache.pig.test.TestPigServer
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestPigServer FAILED
     [junit] Running org.apache.pig.test.TestPigSplit
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestPigSplit FAILED
     [junit] Running org.apache.pig.test.TestStore
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test org.apache.pig.test.TestStore FAILED

BUILD FAILED
/Users/joa23/Documents/workspaces/my_workspace/pig/build.xml:135:  
Tests failed!



Testsuite: org.apache.pig.test.TestAlgebraicEval
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

         Caused an ERROR
org.apache.pig.test.TestAlgebraicEval
java.lang.ClassNotFoundException: org.apache.pig.test.TestAlgebraicEval
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 
288)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
374)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)


:-o


What we do wrong?
Thanks.
Stefan


On Feb 6, 2008, at 9:12 AM, Alan Gates wrote:

> I'm updated to r619076 and I'm not seeing that.  How do the tests  
> fail?  What environment are you developing in?
>
> Alan.
>
> P.S. I'm developing on a Linux box, using Java 1.6.0.
>
> Stefan Groschupf wrote:
>> Hi there,
>> on r618816 at least on my box and on the one of my colleagues all  
>> test fail.
>> Anyone know what this is all about?
>> Thanks.
>> Stefan
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 101tec Inc.
>> Menlo Park, California, USA
>> http://www.101tec.com
>>
>>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com



Re: test fails.

Posted by Alan Gates <ga...@yahoo-inc.com>.
I'm updated to r619076 and I'm not seeing that.  How do the tests fail?  
What environment are you developing in?

Alan.

P.S. I'm developing on a Linux box, using Java 1.6.0.

Stefan Groschupf wrote:
> Hi there,
> on r618816 at least on my box and on the one of my colleagues all test 
> fail.
> Anyone know what this is all about?
> Thanks.
> Stefan
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 101tec Inc.
> Menlo Park, California, USA
> http://www.101tec.com
>
>