Return-Path: X-Original-To: apmail-pig-commits-archive@www.apache.org Delivered-To: apmail-pig-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6B07107BF for ; Thu, 20 Mar 2014 19:14:13 +0000 (UTC) Received: (qmail 69563 invoked by uid 500); 20 Mar 2014 19:14:13 -0000 Delivered-To: apmail-pig-commits-archive@pig.apache.org Received: (qmail 69452 invoked by uid 500); 20 Mar 2014 19:14:12 -0000 Mailing-List: contact commits-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list commits@pig.apache.org Received: (qmail 69444 invoked by uid 99); 20 Mar 2014 19:14:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 19:14:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 19:14:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 743F52388993; Thu, 20 Mar 2014 19:13:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1579715 - in /pig/branches/tez/test/e2e/pig: build.xml conf/tez.conf drivers/TestDriverPig.pm tests/tez.conf Date: Thu, 20 Mar 2014 19:13:50 -0000 To: commits@pig.apache.org From: daijy@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140320191350.743F52388993@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: daijy Date: Thu Mar 20 19:13:49 2014 New Revision: 1579715 URL: http://svn.apache.org/r1579715 Log: PIG-3790: Several changes in Tez e2e Removed: pig/branches/tez/test/e2e/pig/tests/tez.conf Modified: pig/branches/tez/test/e2e/pig/build.xml pig/branches/tez/test/e2e/pig/conf/tez.conf pig/branches/tez/test/e2e/pig/drivers/TestDriverPig.pm Modified: pig/branches/tez/test/e2e/pig/build.xml URL: http://svn.apache.org/viewvc/pig/branches/tez/test/e2e/pig/build.xml?rev=1579715&r1=1579714&r2=1579715&view=diff ============================================================================== --- pig/branches/tez/test/e2e/pig/build.xml (original) +++ pig/branches/tez/test/e2e/pig/build.xml Thu Mar 20 19:13:49 2014 @@ -59,6 +59,12 @@ + + + + + + @@ -325,50 +331,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + Modified: pig/branches/tez/test/e2e/pig/conf/tez.conf URL: http://svn.apache.org/viewvc/pig/branches/tez/test/e2e/pig/conf/tez.conf?rev=1579715&r1=1579714&r2=1579715&view=diff ============================================================================== --- pig/branches/tez/test/e2e/pig/conf/tez.conf (original) +++ pig/branches/tez/test/e2e/pig/conf/tez.conf Thu Mar 20 19:13:49 2014 @@ -53,6 +53,7 @@ $cfg = { , 'paramPath' => "$ENV{PH_ROOT}/paramfiles" , 'piggybankjarPath' => "$ENV{PH_PIG}/contrib/piggybank/java" , 'pigpath' => "$ENV{PH_PIG}" + , 'oldpigpath' => "$ENV{PH_OLDPIG}" , 'hcatbin' => "$ENV{HCAT_BIN}" , 'usePython' => "$ENV{PIG_USE_PYTHON}" , 'exectype' => 'tez' Modified: pig/branches/tez/test/e2e/pig/drivers/TestDriverPig.pm URL: http://svn.apache.org/viewvc/pig/branches/tez/test/e2e/pig/drivers/TestDriverPig.pm?rev=1579715&r1=1579714&r2=1579715&view=diff ============================================================================== --- pig/branches/tez/test/e2e/pig/drivers/TestDriverPig.pm (original) +++ pig/branches/tez/test/e2e/pig/drivers/TestDriverPig.pm Thu Mar 20 19:13:49 2014 @@ -128,6 +128,7 @@ sub globalSetup $globalHash->{'outpath'} = $globalHash->{'outpathbase'} . "/" . $globalHash->{'runid'} . "/"; $globalHash->{'localpath'} = $globalHash->{'localpathbase'} . "/" . $globalHash->{'runid'} . "/"; $globalHash->{'tmpPath'} = $globalHash->{'tmpPath'} . "/" . $globalHash->{'runid'} . "/"; + $globalHash->{'orig_pig_classpath'} = $ENV{'PIG_CLASSPATH'}; } sub globalSetupConditional() { @@ -399,7 +400,7 @@ sub getPigCmd($$$) # Set it in our current environment. It will get inherited by the IPC::Run # command. - $ENV{'PIG_CLASSPATH'} = $ENV{'PIG_CLASSPATH'} . $separator . $pcp; + $ENV{'PIG_CLASSPATH'} = $testCmd->{'orig_pig_classpath'} . $separator . $pcp; if ($testCmd->{'usePython'} eq "true") { @pigCmd = ("python"); @@ -656,16 +657,12 @@ sub generateBenchmark $modifiedTestCmd{'pig'} = $testCmd->{'pig_win'}; } # Change so we're looking at the old version of Pig - if (defined $testCmd->{'oldpigpath'}) { + if (defined $testCmd->{'oldpigpath'} && $testCmd->{'oldpigpath'} ne "") { $modifiedTestCmd{'pigpath'} = $testCmd->{'oldpigpath'}; } if (defined($testCmd->{'oldconfigpath'})) { $modifiedTestCmd{'testconfigpath'} = $testCmd->{'oldconfigpath'}; } - # For exectype tez, we compare tez with mapreduce - if (defined $testCmd->{'benchmark_exectype'}) { - $modifiedTestCmd{'exectype'} = $testCmd->{'benchmark_exectype'}; - } # switch environment to old hadoop $orighadoophome=$ENV{'HADOOP_HOME'}; $orighadoopconf=$ENV{'HADOOP_CONF_DIR'}; @@ -687,6 +684,10 @@ sub generateBenchmark $ENV{'YARN_CONF_DIR'} = $ENV{'OLD_YARN_CONF_DIR'}; } } + # For exectype tez, we compare tez with mapreduce + if (defined $testCmd->{'benchmark_exectype'}) { + $modifiedTestCmd{'exectype'} = $testCmd->{'benchmark_exectype'}; + } # Modify the test number so we don't run over the actual test output # and logs $modifiedTestCmd{'num'} = $testCmd->{'num'} . "_benchmark";