Skip to content
HBase Shell for KStore
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/resources
thirdparty
.gitignore
LICENSE
README.md
kstore-shell.sh
pom.xml
test.txt

README.md

HBase Shell for KStore

Following these steps should get you to the HBase shell for KStore in 1 minute.

Prerequsites

Project Setup, installation, and configuration

  1. chmod +x kstore-shell.sh

  2. ./kstore-shell.sh will write a valid hbase-site.xml for you.

Alternatively you can just use maven directly.

mvn clean package exec:java -Dbootstrap.servers=...

HBase shell

HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.2.1, rd0a115a7267f54e01c72c603ec53e91ec418292f, Tue Jun 23 14:56:34 PDT 2015

hbase(main):001:0>
  1. Create a table (tableName, Column Family)

    > create 'test', 'cf'

  2. List Tables

    > list

  3. Add some data

    > put 'test', 'row1', 'cf:a', 'value1'

    > put 'test', 'row2', 'cf:b', 'value2'

    > put 'test', 'row3', 'cf:c', 'value3'

  4. Scan the table for data

    > scan 'test'

  5. Get a single row of data

    > get 'test', 'row1'

  6. Disable a table

    > disable 'test'

  7. Drop the table

    > drop 'test'

  8. Finished

    > exit

Licensing

You can’t perform that action at this time.