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

liyunzhang_intel commented on PIG-4174:
---------------------------------------

If have hadoop variable in shell env.
#which hadoop
$HADOOP_HOME/bin/hadoop

You can do following running e2e tests:
1.      Generate data 
a)      ant  -Dharness.cluster.conf=$HADOOP_CONF_DIR 
-Dharness.cluster.bin=$HADOOP_BIN test-e2e-deploy-local  
b)      hadoop fs -put test/e2e/pig/testdist/data ./  
2.      Run particular tests
a)      Patch –p1<PIG-4174_1.patch
b)      export PIG_CLASSPATH=$PIG_HOME/build/ivy/lib/Pig/*   // this is need
c)      export HADOOP_USER_CLASSPATH_FIRST="true"     // this is need
d)      ant -Dharness.cluster.conf=$HADOOP_CONF_DIR 
-Dharness.cluster.bin=$HADOOP_BIN –Dharness.hadoop.home=$HADOOP_HOME 
-Dtests.to.run="-t Checkin_1" test-e2e-spark
3.      Run all tests
ant  -Dharness.cluster.conf=$HADOOP_CONF_DIR -Dharness.cluster.bin=$HADOOP_BIN  
–Dharness.hadoop.home=$HADOOP_HOME  test-e2e-spark

> e2e tests for Spark
> -------------------
>
>                 Key: PIG-4174
>                 URL: https://issues.apache.org/jira/browse/PIG-4174
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: Praveen Rachabattuni
>            Assignee: Praveen Rachabattuni
>         Attachments: PIG-4174-1.patch, PIG-4174_1.patch, copy.data.to.hdfs.log
>
>
> Setup e2e tests for pig on spark like that pig on map-reduce and pig on tez.
> Steps to setup e2e tests:
> 1. Initialize Variables
> export OLD_PIG_HOME=/usr/local/Cellar/pig/0.12.0 # Should rather be 14
> export HADOOP_CONF_DIR=/usr/local/Cellar/hadoop/1.0.4/conf
> export HADOOP_BIN=/usr/local/Cellar/hadoop/1.0.4/bin/hadoop
> 2. Generate Data
> ant -Dharness.old.pig=$OLD_PIG_HOME -Dharness.cluster.conf=$HADOOP_CONF_DIR 
> -Dharness.cluster.bin=$HADOOP_BIN test-e2e-deploy-local
> (You might want to install necessary cpan modules incase of any dependency 
> errors 
> https://cwiki.apache.org/confluence/display/PIG/HowToTest#HowToTest-End-to-endTesting)
> Copy data to hdfs to use with Spark
> hadoop fs -put test/e2e/pig/testdist/data ./
> 3. Run particular test
> ant -Dharness.old.pig=$OLD_PIG_HOME -Dharness.cluster.conf=$HADOOP_CONF_DIR 
> -Dharness.cluster.bin=$HADOOP_BIN -Dtests.to.run="-t Checkin_1" test-e2e-spark
> 4. Run all tests
> ant -Dharness.old.pig=$OLD_PIG_HOME -Dharness.cluster.conf=$HADOOP_CONF_DIR 
> -Dharness.cluster.bin=$HADOOP_BIN test-e2e-spark



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

Reply via email to