HBase
  1. HBase
  2. HBASE-2860

[shell] Drop table has wrong help and throws exception

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 0.90.0
    • Component/s: shell
    • Labels:
      None
    • Tags:
      noob

      Description

      Here is current help:

      hbase(main):008:0> help 'drop'
      
      COMMAND: drop
                Drop the named table. Table must first be disabled. If table has
                more than one region, run a major compaction on .META.:
      
                hbase> major_compact ".META."
      

      Here is the exception it throws:

      ERROR: java.io.IOException: java.io.IOException: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.master.HMaster.access$1(Lorg/apache/hadoop/hbase/master/HMaster;Lorg/apache/hadoop/hbase/client/Result;)Lorg/apache/hadoop/hbase/util/Pair;
              at org.apache.hadoop.hbase.master.HMaster$1.processRow(HMaster.java:890)
              at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:156)
              at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:68)
              at org.apache.hadoop.hbase.master.HMaster.getTableRegions(HMaster.java:901)
              at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:1036)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:576)
              at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:919)
      

        Activity

        Hide
        stack added a comment -

        Closing as invalid (Checked TRUNK; doesn't have this issue so must have been my 'messed up' build dir and in fact the help is correct (Sorry, I was on drugs again).

        Show
        stack added a comment - Closing as invalid (Checked TRUNK; doesn't have this issue so must have been my 'messed up' build dir and in fact the help is correct (Sorry, I was on drugs again).
        Hide
        Jean-Daniel Cryans added a comment -

        I don't see this exception when failing to disable (looks like you had a mixed up build directory) and the help message is actually the good one. Should we close this?

        Show
        Jean-Daniel Cryans added a comment - I don't see this exception when failing to disable (looks like you had a mixed up build directory) and the help message is actually the good one. Should we close this?

          People

          • Assignee:
            Unassigned
            Reporter:
            stack
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development