Skip to content

Instantly share code, notes, and snippets.

@ankit-rakha
ankit-rakha / hbase shell
Last active December 17, 2015 22:29
hbase shell
1) list -- list all the tables in Hbase
2) create 'test', 'cf' -- creates a table named test and column family cf
3) scan ‘test’ -- reads the content of test table
4) put 'test', 'row1', 'cf:a', 'value2' -- add a row “row1” to table “test” with value “value2”, value 2 could be a JSON object
5) disable 'test' -- disable the table “test”
6) drop 'test' -- drop the table “test”
7) deleteall 'test', 'row1' -- delete the row “row1” from table “test”
8) scan 'table_name', { COLUMNS => 'column_family:column_qualifier', LIMIT => 10 }
9) hadoop dfs -rm filename.csv
10) hadoop dfs -copyFromLocal filename.csv /user/ankit.rakha/
@ankit-rakha
ankit-rakha / list_vertica_tables
Created May 14, 2013 00:39
list all tables in vertica database
# list all tables
verticadb=> \dt *
# list only tables with "public" schema
verticadb=> \dt public.*
@ankit-rakha
ankit-rakha / install_boost
Created April 27, 2013 01:12
install boost on mac os x
$ brew install --without-python boost