Thank you.
Could you please tell me your tests running environment?(including OS, ant
version, java version or any other information you think it useful) Thank
you.
I have another question: what is the differences between Failure and Error?

My last tests environment is IBM JDK 6.0.
Now, I run tests with SUN JDK 6 at linux VM.
Here are the failure ones:
    [junit] Running org.apache.pig.test.TestJobSubmission
    [junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 0.213 sec
ERROR info:
Testcase: testJobControlCompilerErr took 0.209 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MRCompiler.<init>
(MRCompiler.java:220)
        at org.apache.pig.test.Util.buildMRPlan(Util.java:610)
        at org.apache.pig.test.TestJobSubmission.testJobControlCompilerErr
(TestJobSubmission.java:455)

Testcase: testDefaultParallel took 0 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.TestJobSubmission.testDefaultParallel
(TestJobSubmission.java:480)

Testcase: testDefaultParallelInSort took 0 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.TestJobSubmission.testDefaultParallelInSort
(TestJobSubmission.java:506)

Testcase: testDefaultParallelInSkewJoin took 0 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at
org.apache.pig.test.TestJobSubmission.testDefaultParallelInSkewJoin
(TestJobSubmission.java:538)

Testcase: testReducerNumEstimation took 0 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.utils.LogicalPlanTester.buildPlan
(LogicalPlanTester.java:213)
        at org.apache.pig.test.utils.LogicalPlanTester.buildPlan
(LogicalPlanTester.java:90)
        at org.apache.pig.test.TestJobSubmission.testReducerNumEstimation
(TestJobSubmission.java:573)

Testcase: testReducerNumEstimationForOrderBy took 0 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at
org.apache.pig.test.TestJobSubmission.testReducerNumEstimationForOrderBy
(TestJobSubmission.java:638)

    [junit] Running org.apache.pig.test.TestPigContext
    [junit] Tests run: 5, Failures: 0, Errors: 4, Time elapsed: 25.258 sec
ERROR info:
Testcase: testSetProperties_way_num01 took 7.342 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.Util.deleteFile(Util.java:355)
        at org.apache.pig.test.TestPigContext.registerAndStore
(TestPigContext.java:247)
        at org.apache.pig.test.TestPigContext.testSetProperties_way_num01
(TestPigContext.java:79)

Testcase: testSetProperties_way_num02 took 6.744 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.Util.deleteFile(Util.java:355)
        at org.apache.pig.test.TestPigContext.registerAndStore
(TestPigContext.java:247)
        at org.apache.pig.test.TestPigContext.testSetProperties_way_num02
(TestPigContext.java:90)

Testcase: testSetProperties_way_num03 took 6.529 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.Util.deleteFile(Util.java:355)
        at org.apache.pig.test.TestPigContext.registerAndStore
(TestPigContext.java:247)
        at org.apache.pig.test.TestPigContext.testSetProperties_way_num03
(TestPigContext.java:102)

Testcase: testHadoopExceptionCreation took 0.001 sec
Testcase: testImportList took 4.639 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.pig.test.TestPigContext.testImportList
(TestPigContext.java:166)

    [junit] Running org.apache.pig.test.TestSecondarySort
    [junit] Tests run: 23, Failures: 0, Errors: 1, Time elapsed: 266.962
sec
ERROR info:
11/07/29 00:43:45 ERROR datanode.DataNode: DatanodeRegistration
(127.0.0.1:58268, storageID=DS-1419642392-9.30.225.174-58268-1311925373248,
infoPort=58078, ipcPort=54297):DataXceiver
java.io.IOException: Block blk_-7540439302049668681_1012 is not valid.
        at org.apache.hadoop.hdfs.server.datanode.FSDataset.getBlockFile
(FSDataset.java:734)
        at org.apache.hadoop.hdfs.server.datanode.FSDataset.getLength
(FSDataset.java:722)
        at org.apache.hadoop.hdfs.server.datanode.BlockSender.<init>
(BlockSender.java:92)
        at org.apache.hadoop.hdfs.server.datanode.DataXceiver.readBlock
(DataXceiver.java:172)
        at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run
(DataXceiver.java:95)
        at java.lang.Thread.run(Thread.java:619)




Thanks.
Regards,
FangFang CHEN / 陈芳芳
----------------------------------
BigInsights Team, CDL
Phone:   86-10-82453744
----------------------------------




                                                                           
             Thejas Nair                                                   
             <thejas@hortonwor                                             
             ks.com>                                                    To 
                                       [email protected]                 
             2011-07-30 01:59                                           cc 
                                       lulynn_2008 <[email protected]>   
                                                                   Subject 
             Please respond to         Re: about pig "ant test" result     
             [email protected]                                             
                    rg                                                     
                                                                           
                                                                           
                                                                           
                                                                           




All these tests should be passing. I ran a complete run yesterday and it
passed.
Can you check the log files for these failed test cases ? Do let us know
what you find.

Thanks,
Thejas


On 7/28/11 8:29 PM, lulynn_2008 wrote:
>    Hello,
> I run pig test case with cmd: ant test. I am wondering which part is the
failure ones? test with Failures or with Errors?
> And please help to check why these tests result with Failures or Errors.
> Here is the ones with Failures and Errors:
>      [junit] Running org.apache.pig.test.TestDataModel
>      [junit] Tests run: 22, Failures: 1, Errors: 0, Time elapsed: 0.382
sec
>
>      [junit] Running org.apache.pig.test.TestLogToPhyCompiler
>      [junit] Tests run: 23, Failures: 1, Errors: 0, Time elapsed: 1.16
sec
>
>      [junit] Running org.apache.pig.test.TestMRCompiler
>      [junit] Tests run: 25, Failures: 1, Errors: 0, Time elapsed: 0.729
sec
>
>      [junit] Running org.apache.pig.test.TestMergeJoinOuter
>      [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 132.66
sec
>
>      [junit] Running
org.apache.pig.test.TestNewPlanLogToPhyTranslationVisitor
>      [junit] Tests run: 25, Failures: 3, Errors: 0, Time elapsed: 1.081
sec
>
>      [junit] Running org.apache.pig.test.TestPruneColumn
>      [junit] Tests run: 67, Failures: 4, Errors: 0, Time elapsed: 528.047
sec
>
>      [junit] Running org.apache.pig.test.TestUnionOnSchema
>      [junit] Tests run: 21, Failures: 1, Errors: 0, Time elapsed: 196.841
sec
>
>      [junit] Running org.apache.pig.test.TestJobSubmission
>      [junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 0.311
sec
>
>      [junit] Running org.apache.pig.test.TestPigContext
>      [junit] Tests run: 5, Failures: 0, Errors: 4, Time elapsed: 21.401
sec
>
>      [junit] Running org.apache.pig.test.TestPushDownForeachFlatten
>      [junit] Tests run: 37, Failures: 0, Errors: 8, Time elapsed: 1.455
sec
>
>      [junit] Running org.apache.pig.test.TestTypeCheckingValidator
>      [junit] Tests run: 120, Failures: 0, Errors: 1, Time elapsed: 15.047
sec
>
>

Reply via email to