original list HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0027 seconds list TABLE IntegrationTestBigLinkedList test testt 3 row(s) Took 5.3945 seconds status 0 original invalid HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0025 seconds invalidcommand NameError: undefined local variable or method `invalidcommand' for main:Object status 0 original incorrect create param HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0028 seconds create foo NameError: undefined local variable or method `foo' for main:Object Did you mean? fork status 0 original create missing family HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0036 seconds create "foo" ERROR: Table must have at least one column family 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'}} hbase> create 't1', {NAME => 'f1', IS_MOB => true, MOB_THRESHOLD => 1000000, MOB_COMPACT_PARTITION_POLICY => 'weekly'} 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'}} hbase> create 't1', {NAME => 'f1', DFS_REPLICATION => 1} 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. Took 0.0434 seconds status 0 original correct create HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0027 seconds create "foo", "family_1" Created table foo Took 6.1202 seconds status 0 original create existing HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0027 seconds create "foo", "family_1" ERROR: Table already exists: foo! 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'}} hbase> create 't1', {NAME => 'f1', IS_MOB => true, MOB_THRESHOLD => 1000000, MOB_COMPACT_PARTITION_POLICY => 'weekly'} 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'}} hbase> create 't1', {NAME => 'f1', DFS_REPLICATION => 1} 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. Took 5.5363 seconds status 0 original snapshot of nonextant HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0026 seconds snapshot "does_not_exist", "snapshot_1" 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:583) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1458) at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:406) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:325) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:305) Take a snapshot of specified table. Examples: hbase> snapshot 'sourceTable', 'snapshotName' hbase> snapshot 'namespace:sourceTable', 'snapshotName', {SKIP_FLUSH => true} Took 5.4662 seconds status 0 original correct snapshot HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0035 seconds snapshot "foo", "snapshot_1" Took 5.6121 seconds status 0 original duplicate snapshot HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0026 seconds snapshot "foo", "snapshot_1" 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:558) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1458) at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:406) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:325) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:305) Take a snapshot of specified table. Examples: hbase> snapshot 'sourceTable', 'snapshotName' hbase> snapshot 'namespace:sourceTable', 'snapshotName', {SKIP_FLUSH => true} Took 5.4580 seconds status 0 original failed chain HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0034 seconds list; delete_snapshot "snapshot_3"; list; drop "foo"; list TABLE IntegrationTestBigLinkedList foo test testt 4 row(s) Took 5.3859 seconds ERROR: Unknown snapshot snapshot_3! Delete a specified snapshot. Examples: hbase> delete_snapshot 'snapshotName', Took 0.0450 seconds TABLE IntegrationTestBigLinkedList foo test testt 4 row(s) Took 0.0108 seconds ERROR: Table foo is enabled. Disable it first. Drop the named table. Table must first be disabled: hbase> drop 't1' hbase> drop 'ns1:t1' Took 0.0865 seconds TABLE IntegrationTestBigLinkedList foo test testt 4 row(s) Took 0.0092 seconds status 0 original correct cleanup HBase Shell Use "help" to get list of supported commands. Use "exit" to quit this interactive shell. Version 2.0.0-beta-1-SNAPSHOT, r7755a982270b0827b69c116d1e8118fa3e55881d, Wed Dec 13 13:36:58 PST 2017 Took 0.0029 seconds delete_snapshot "snapshot_1"; disable "foo"; drop "foo" Took 5.3867 seconds Took 0.5358 seconds Took 0.2304 seconds status 0 ---------------------------------------------------------- noninteractive list TABLE IntegrationTestBigLinkedList test testt 3 row(s) Took 5.3939 seconds IntegrationTestBigLinkedList test testt status 0 noninteractive invalid ERROR NameError: undefined local variable or method `invalidcommand' for main:Object status 1 noninteractive incorrect create param ERROR NameError: undefined local variable or method `foo' for main:Object Did you mean? fork status 1 noninteractive create missing family Took 0.0397 secondsERROR ArgumentError: Table must have at least one column family status 1 noninteractive correct create Created table foo Took 6.1562 seconds Hbase::Table - foo status 0 noninteractive create existing Took 5.5537 secondsERROR RuntimeError: Table already exists: foo! status 1 noninteractive snapshot of nonextant Took 5.4027 secondsERROR 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:583) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1458) at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:406) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:325) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:305) status 1 noninteractive correct snapshot Took 5.6247 seconds status 0 noninteractive duplicate snapshot Took 5.4369 secondsERROR 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:558) at org.apache.hadoop.hbase.master.MasterRpcServices.snapshot(MasterRpcServices.java:1458) at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:406) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:325) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:305) status 1 noninteractive failed chain TABLE IntegrationTestBigLinkedList foo test testt 4 row(s) Took 5.4165 seconds Took 0.0442 secondsERROR RuntimeError: Unknown snapshot snapshot_3! status 1 noninteractive correct cleanup Took 5.3881 seconds Took 0.5577 seconds Took 0.2311 seconds status 0