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

Column family option is not effective in IntegrationTestSendTraceRequests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.99.0
    • None
    • None
    • 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

        1. 10406-v1.txt
          0.7 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: