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

Brock Noland commented on PIG-4243:
-----------------------------------

Hey guys,

I was looking at one test and the issue appears to be that we hard code 
{{PigOutFormat}} here: 
https://github.com/apache/pig/blob/spark/src/org/apache/pig/backend/hadoop/executionengine/spark/converter/StoreConverter.java#L58
 and the test requires {{LazyOutputFormat}}. The issue that I don't know how to 
fix is that we set this property on the Hadoop {{Job}} object here: 
https://github.com/apache/pig/blob/spark/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java#L1953

whereas in {{StoreConverter}} we are using the properties on {{PigContext}} 
which are not updated by the call in {{JobControlCompiler}}.

Is there a way to keep this in sync?

> Enable unit test "TestStore" for spark
> --------------------------------------
>
>                 Key: PIG-4243
>                 URL: https://issues.apache.org/jira/browse/PIG-4243
>             Project: Pig
>          Issue Type: Bug
>          Components: spark
>            Reporter: liyunzhang_intel
>            Assignee: Brock Noland
>         Attachments: TEST-org.apache.pig.test.TestStore.txt
>
>
> 1. Build spark and pig env according to PIG-4168
> 2. add TestStore to $PIG_HOME/test/spark-tests
> cat  $PIG_HOME/test/spark-tests
> **/TestStore
> 3. run unit test TestStore
> ant test-spark
> 4. the unit test fails
> error log is attached



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to