Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10406

Column family option is not effective in IntegrationTestSendTraceRequests

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.0, 0.99.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      If column family option (-f) is specified, the following error would occur:

      2014-01-23 23:21:20,347 [Thread-2] ERROR util.AbstractHBaseTool (AbstractHBaseTool.java:run(97)) - Error when parsing command-line arguemnts
      org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -f
      	at org.apache.commons.cli.Parser.processOption(Parser.java:363)
      	at org.apache.commons.cli.Parser.parse(Parser.java:199)
      	at org.apache.commons.cli.Parser.parse(Parser.java:85)
      	at org.apache.hadoop.hbase.util.AbstractHBaseTool.parseArgs(AbstractHBaseTool.java:135)
      	at org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:94)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      

      This is due to table option is used twice in the following code:

        protected void addOptions() {
          addOptWithArg(TABLE_ARG, "The table name to target.  Will be created if not there already.");
          addOptWithArg(TABLE_ARG, "The family to target");
      

        Attachments

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: