Sunday, July 13, 2014

HBase scripting

Run from command prompt:

%HBASE_HOME%\bin\hbase shell <shell_script_path>.

 script may content HBase shell commands.
1. Unfortunately shell is loaded very slow.
2. Running scripts from from already running shell you can type
  load "<script_path>".
 Since HBase shell is actually Ruby shell with HBase commands added this command runs script given.
3. Shell UI tool?
4. How to get help for particular command?
   help "get"
for example
5. How to clear screen?
   system('cls') doesn't work :-(.
 But system('dir') does :-)
6. How to redirect  output to file?



No comments:

Post a Comment