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

Error message for non-existent namespace is inaccurate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta-1, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      On a secure cluster, when I issued this command where ns1 didn't exist:

      hbase(main):002:0> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40']
      
      ERROR: Unknown namespace ns1:t1!
      
      Creates a table. Pass a table name, and a set of column family
      specifications (at least one), and, optionally, table configuration
      

      Here is related code:

                raise "Unknown namespace #{args.first}!"
      

      Simply quoting the argument is not accurate - namespace should be extracted from the argument

        Attachments

        1. HBASE-19755-master.patch
          1 kB
          Sergey Soldatov

          Activity

            People

            • Assignee:
              sergey.soldatov Sergey Soldatov
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: