[ 
https://issues.apache.org/jira/browse/PIG-2477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188071#comment-13188071
 ] 

Dmitriy V. Ryaboy commented on PIG-2477:
----------------------------------------

I just had a different patch of mine get the exact opposite treatment from 
Daniel because tests were failing when doing cluster.getProperties().

Daniel, how does one determine when to use which method?
                
> TestBuiltin testLFText/testSFPig failing against 23 due to invalid test setup 
> -- InvalidInputException
> ------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2477
>                 URL: https://issues.apache.org/jira/browse/PIG-2477
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.2
>         Environment: ubuntu, hadoop23
>            Reporter: Patrick Hunt
>             Fix For: 0.9.3
>
>         Attachments: PIG-2477.patch
>
>
> I see the following exception when running against hadoop 23: (all 
> test-commit tests pass except for these two)
> {noformat}
> org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does 
> not exist: 
> file:/var/lib/hudson/workspace/CDH4-Pig-0.9.2-test-commit/testSFPig-output.txt
>       at 
> org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:243)
>       at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigTextInputFormat.listStatus(PigTextInputFormat.java:36)
>       at 
> org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:269)
>       at org.apache.pig.impl.io.ReadToEndLoader.init(ReadToEndLoader.java:154)
>       at 
> org.apache.pig.impl.io.ReadToEndLoader.<init>(ReadToEndLoader.java:116)
>       at org.apache.pig.test.TestBuiltin.testSFPig(TestBuiltin.java:2177)
> {noformat}
> This happens in both testLFText/testSFPig.
> Looking at these two tests it seems that toConfiguration is being called 
> improperly, I have a patch (momentarily) that will address this similar to:
> {noformat}
> -                toConfiguration(new Properties()), "testLFTest-input1.txt", 
> 0);
> +            toConfiguration(cluster.getProperties()), 
> "testLFTest-input1.txt", 0);
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to