[ https://issues.apache.org/jira/browse/PIG-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502211#comment-14502211 ]
liyunzhang_intel commented on PIG-4489: --------------------------------------- +1. After using this patch, if we want to run unit tests in spark mode, we use: ant test-spark ( before we should export SPARK_MASTER="local-cluster [ 2 ,2, 1024 ]" ) if we ant to run unit tests in spark local mode, we use: ant test-spark-local (before we should export SPARK_MASTER="local" or not export because the default mode is "local") [~mohitsabharwal], is my understanding right? > Enable local mode tests for Spark engine > ---------------------------------------- > > Key: PIG-4489 > URL: https://issues.apache.org/jira/browse/PIG-4489 > Project: Pig > Issue Type: Sub-task > Components: spark > Reporter: Mohit Sabharwal > Assignee: Mohit Sabharwal > Fix For: spark-branch > > Attachments: PIG-4489.1.patch, PIG-4489.2.patch, PIG-4489.patch > > > Util.getLocalTestMode() currently only returns "tez_local" or "local". > I see that ~212 testcases do this check, and we are not running these tests > against Spark at this point. > Currently all Spark tests run in local mode ("local" as a the Spark Cluster > URL passed to JavaSparkContext), so we should enable these tests as well. -- This message was sent by Atlassian JIRA (v6.3.4#6332)