original list HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 list TABLE 2014-08-06 10:57:04,253 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable foo 1 row(s) in 1.3080 seconds ["foo"] status 0 original invalid HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 invalidcommand NameError: undefined local variable or method `invalidcommand' for # status 0 original incorrect create param HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 create foo NameError: undefined local variable or method `foo' for # status 0 original create missing family HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 create "foo" 2014-08-06 10:57:26,280 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR: Table must have at least one column family Here is some help for this command: Creates a table. Pass a table name, and a set of column family specifications (at least one), and, optionally, table configuration. Column specification can be a simple string (name), or a dictionary (dictionaries are described below in main help output), necessarily including NAME attribute. Examples: Create a table with namespace=ns1 and table qualifier=t1 hbase> create 'ns1:t1', {NAME => 'f1', VERSIONS => 5} Create a table with namespace=default and table qualifier=t1 hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} hbase> # The above in shorthand would be the following: hbase> create 't1', 'f1', 'f2', 'f3' hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} Table configuration options can be put at the end. Examples: hbase> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe' hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' } hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', REGION_REPLICATION => 2, CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}} You can also keep around a reference to the created table: hbase> t1 = create 't1', 'f1' Which gives you a reference to the table named 't1', on which you can then call methods. status 0 original correct create HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 create "foo", "family_1" 2014-08-06 10:57:34,387 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR: Table already exists: foo! Here is some help for this command: Creates a table. Pass a table name, and a set of column family specifications (at least one), and, optionally, table configuration. Column specification can be a simple string (name), or a dictionary (dictionaries are described below in main help output), necessarily including NAME attribute. Examples: Create a table with namespace=ns1 and table qualifier=t1 hbase> create 'ns1:t1', {NAME => 'f1', VERSIONS => 5} Create a table with namespace=default and table qualifier=t1 hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} hbase> # The above in shorthand would be the following: hbase> create 't1', 'f1', 'f2', 'f3' hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} Table configuration options can be put at the end. Examples: hbase> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe' hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' } hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', REGION_REPLICATION => 2, CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}} You can also keep around a reference to the created table: hbase> t1 = create 't1', 'f1' Which gives you a reference to the table named 't1', on which you can then call methods. status 0 original create existing HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 create "foo", "family_1" 2014-08-06 10:57:42,982 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR: Table already exists: foo! Here is some help for this command: Creates a table. Pass a table name, and a set of column family specifications (at least one), and, optionally, table configuration. Column specification can be a simple string (name), or a dictionary (dictionaries are described below in main help output), necessarily including NAME attribute. Examples: Create a table with namespace=ns1 and table qualifier=t1 hbase> create 'ns1:t1', {NAME => 'f1', VERSIONS => 5} Create a table with namespace=default and table qualifier=t1 hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} hbase> # The above in shorthand would be the following: hbase> create 't1', 'f1', 'f2', 'f3' hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} Table configuration options can be put at the end. Examples: hbase> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40'] hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe' hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' } hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', REGION_REPLICATION => 2, CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}} You can also keep around a reference to the created table: hbase> t1 = create 't1', 'f1' Which gives you a reference to the table named 't1', on which you can then call methods. status 0 original snapshot of nonextant HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 snapshot "does_not_exist", "snapshot_1" 2014-08-06 10:57:51,588 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR: org.apache.hadoop.hbase.snapshot.SnapshotCreationException: Table 'does_not_exist' doesn't exist, can't take snapshot. at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.takeSnapshot(SnapshotManager.java:540) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1186) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41605) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) Here is some help for this command: Take a snapshot of specified table. Examples: hbase> snapshot 'sourceTable', 'snapshotName' hbase> snapshot 'namespace:sourceTable', 'snapshotName', {SKIP_FLUSH => true} status 0 original correct snapshot HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 snapshot "foo", "snapshot_1" 2014-08-06 10:58:00,045 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.7610 seconds status 0 original duplicate snapshot HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 snapshot "foo", "snapshot_1" 2014-08-06 10:58:09,019 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR: org.apache.hadoop.hbase.snapshot.SnapshotExistsException: Snapshot 'snapshot_1' already stored on the filesystem. at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.takeSnapshot(SnapshotManager.java:517) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1186) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41605) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) Here is some help for this command: Take a snapshot of specified table. Examples: hbase> snapshot 'sourceTable', 'snapshotName' hbase> snapshot 'namespace:sourceTable', 'snapshotName', {SKIP_FLUSH => true} status 0 original failed chain HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 list; delete_snapshot "snapshot_3"; list; drop "foo"; list TABLE 2014-08-06 10:58:25,607 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable foo 1 row(s) in 1.2820 seconds ERROR: org.apache.hadoop.hbase.snapshot.SnapshotDoesNotExistException: Snapshot 'snapshot_3' doesn't exist on the filesystem at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.deleteSnapshot(SnapshotManager.java:269) at org.apache.hadoop.hbase.master.MasterRpcServices.deleteSnapshot(MasterRpcServices.java:444) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41609) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) Here is some help for this command: Delete a specified snapshot. Examples: hbase> delete_snapshot 'snapshotName', TABLE foo 1 row(s) in 0.0080 seconds ERROR: Table foo is enabled. Disable it first.' Here is some help for this command: Drop the named table. Table must first be disabled: hbase> drop 't1' hbase> drop 'ns1:t1' TABLE foo 1 row(s) in 0.0090 seconds ["foo"] status 0 original correct cleanup HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 2.0.0-SNAPSHOT, rc2c62d6ac17518c66715f18fdda47cd48cbdce9e, Wed Aug 6 10:37:11 PDT 2014 delete_snapshot "snapshot_1"; disable "foo"; drop "foo" 2014-08-06 10:58:34,383 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.3310 seconds 0 row(s) in 1.4250 seconds 0 row(s) in 0.1850 seconds status 0 ---------------------------------------------------------- noninteractive list TABLE 2014-08-06 10:58:44,086 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.3540 seconds status 0 noninteractive invalid ERROR NameError: undefined local variable or method `invalidcommand' for # status 1 noninteractive incorrect create param ERROR NameError: undefined local variable or method `foo' for # status 1 noninteractive create missing family 2014-08-06 10:59:05,381 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR ArgumentError: Table must have at least one column family status 1 noninteractive correct create 2014-08-06 10:59:13,340 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.6550 seconds Hbase::Table - foo status 0 noninteractive create existing 2014-08-06 10:59:21,753 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ERROR RuntimeError: Table already exists: foo! status 1 noninteractive snapshot of nonextant 2014-08-06 10:59:29,969 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable java exception ERROR Java::OrgApacheHadoopHbaseIpc::RemoteWithExtrasException: org.apache.hadoop.hbase.snapshot.SnapshotCreationException: Table 'does_not_exist' doesn't exist, can't take snapshot. at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.takeSnapshot(SnapshotManager.java:540) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1186) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41605) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) status 1 noninteractive correct snapshot 2014-08-06 10:59:38,349 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.6910 seconds nil status 0 noninteractive duplicate snapshot 2014-08-06 10:59:46,781 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable java exception ERROR Java::OrgApacheHadoopHbaseIpc::RemoteWithExtrasException: org.apache.hadoop.hbase.snapshot.SnapshotExistsException: Snapshot 'snapshot_1' already stored on the filesystem. at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.takeSnapshot(SnapshotManager.java:517) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1186) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41605) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) status 1 noninteractive failed chain TABLE 2014-08-06 11:00:03,004 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable foo 1 row(s) in 1.3530 seconds java exception ERROR Java::OrgApacheHadoopHbaseIpc::RemoteWithExtrasException: org.apache.hadoop.hbase.snapshot.SnapshotDoesNotExistException: Snapshot 'snapshot_3' doesn't exist on the filesystem at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.deleteSnapshot(SnapshotManager.java:269) at org.apache.hadoop.hbase.master.MasterRpcServices.deleteSnapshot(MasterRpcServices.java:444) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:41609) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2013) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) at java.lang.Thread.run(Thread.java:745) status 1 noninteractive correct cleanup 2014-08-06 11:00:11,285 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 0 row(s) in 1.3780 seconds 0 row(s) in 1.3880 seconds 0 row(s) in 0.2580 seconds nil status 0