Skip to content
Permalink
Browse files
ACCUMULO-4516: TeraSortIngest splits argumnet is ignored if less that…
… 10 (#6)

arguments are provided.

Modified TeraSortIngest.java to remove arg length check as a condition
for setting the number or splits.  Now check to see if the splits option
is non-zero and if so, set the number of splits.
  • Loading branch information
jmark99 authored and mikewalch committed Oct 2, 2017
1 parent bec846c commit 90596224fed5d1311ba2f117e3e73a14d9f78b5d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -390,7 +390,7 @@ public int run(String[] args) throws Exception {
conf.setInt("cloudgen.maxvaluelength", opts.maxValueLength);
conf.set("cloudgen.tablename", opts.getTableName());

if (args.length > 10)
if (opts.splits != 0)
conf.setInt(NUMSPLITS, opts.splits);

job.waitForCompletion(true);

0 comments on commit 9059622

Please sign in to comment.