Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4516

TeraSortIngest splits argument is ignored if less than 10 arguments are provided

    XMLWordPrintableJSON

Details

    Description

      I invoked the TeraSortIngest and did not see my table being pre-split:

      tool.sh lib/accumulo-examples-simple.jar org.apache.accumulo.examples.simple.mapreduce.TeraSortIngest -i accumulo  -z jelser-accumulo-scripts-1 -u root -p secret  --count $((1000 * 1000 * 50)) --minKeySiz
      e 10 --maxKeySize 10 --minValueSize 78  --maxValueSize 78  --table terasort --splits 15
      

      Turns out that the positional argument parsing got lost in the switch to jcommander:

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

      We should just set this value if the value for splits is not the default (0).

      Attachments

        Issue Links

          Activity

            People

              jmark99 Mark Owens
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h