pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roh...@apache.org
Subject svn commit: r1725401 - in /pig/trunk: CHANGES.txt test/perf/pigmix/bin/runpigmix.pl
Date Tue, 19 Jan 2016 01:17:47 GMT
Author: rohini
Date: Tue Jan 19 01:17:47 2016
New Revision: 1725401

URL: http://svn.apache.org/viewvc?rev=1725401&view=rev
Log:
PIG-4763: Insufficient check for the number of arguments in runpigmix.pl (sekikn via rohini)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/test/perf/pigmix/bin/runpigmix.pl

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1725401&r1=1725400&r2=1725401&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Tue Jan 19 01:17:47 2016
@@ -24,6 +24,8 @@ INCOMPATIBLE CHANGES
 
 IMPROVEMENTS
 
+PIG-4763: Insufficient check for the number of arguments in runpigmix.pl (sekikn via rohini)
+
 PIG-4411: Support for vertex level configuration like speculative execution (rohini)
 
 PIG-4775: Better default values for shuffle bytes per reducer (rohini)

Modified: pig/trunk/test/perf/pigmix/bin/runpigmix.pl
URL: http://svn.apache.org/viewvc/pig/trunk/test/perf/pigmix/bin/runpigmix.pl?rev=1725401&r1=1725400&r2=1725401&view=diff
==============================================================================
--- pig/trunk/test/perf/pigmix/bin/runpigmix.pl (original)
+++ pig/trunk/test/perf/pigmix/bin/runpigmix.pl Tue Jan 19 01:17:47 2016
@@ -1,8 +1,8 @@
 #!/usr/local/bin/perl -w
 
-if(scalar(@ARGV) < 6 )
+if(scalar(@ARGV) < 6)
 {
-    print STDERR "Usage: $0 <pig_home> <pig_bin> <pigmix_jar> <hadoop_home>
<hadoop_bin> <pig mix scripts dir> <hdfs_root> <pigmix_output> [parallel]
[numruns] [runmapreduce] [cleanup_after_test]\n";
+    print STDERR "Usage: $0 <pig_home> <pig_bin> <pigmix_jar> <hadoop_home>
<hadoop_bin> <pig mix scripts dir> [hdfs_root] [pigmix_output] [parallel] [numruns]
[runmapreduce] [cleanup_after_test]\n";
     exit(-1);
 }
 my $pighome = shift;
@@ -18,6 +18,12 @@ my $runs = shift;
 my $runmapreduce = shift;
 my $cleanup_after_test = shift;
 my $pigjar = "$pighome/pig-withouthadoop.jar";
+if(!defined($hdfsroot)) {
+    $hdfsroot = '/user/pig/tests/data/pigmix';
+}
+if(!defined($pigmixoutput)) {
+    $pigmixoutput = 'output';
+}
 if(!defined($parallel)) {
     $parallel = 40;
 }



Mime
View raw message