[ 
https://issues.apache.org/jira/browse/HBASE-11655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084843#comment-14084843
 ] 

Jonathan Hsieh commented on HBASE-11655:
----------------------------------------

Hm.. did a quick experiement and the shell does not exist with the values I 
thought it should. 

{code}
jon@swoop:~/proj/hbase-trunk$ echo 'list' | bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 2.0.0-SNAPSHOT, r42fd7432225f6fbe4c273e7309d0bd4a8a2ffc18, Mon Jul 28 
12:57:35 PDT 2014

list
TABLE                                                                           
                                                                                
                                                                           
2014-08-04 09:18:17,718 WARN  [main] util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
0 row(s) in 3.6890 seconds

[]
jon@swoop:~/proj/hbase-trunk$ echo $?
0
jon@swoop:~/proj/hbase-trunk$ echo 'invalidcommand'  | bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 2.0.0-SNAPSHOT, r42fd7432225f6fbe4c273e7309d0bd4a8a2ffc18, Mon Jul 28 
12:57:35 PDT 2014

invalidcommand
NameError: undefined local variable or method `invalidcommand' for 
#<Object:0xe2143ff>

jon@swoop:~/proj/hbase-trunk$ echo $?
0
jon@swoop:~/proj/hbase-trunk$ echo 'create foo'  | bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 2.0.0-SNAPSHOT, r42fd7432225f6fbe4c273e7309d0bd4a8a2ffc18, Mon Jul 28 
12:57:35 PDT 2014

create foo
NameError: undefined local variable or method `foo' for #<Object:0x3718104f>

jon@swoop:~/proj/hbase-trunk$ echo $?
0
jon@swoop:~/proj/hbase-trunk$ 
{code}

> Document how to use Bash with HBase Shell
> -----------------------------------------
>
>                 Key: HBASE-11655
>                 URL: https://issues.apache.org/jira/browse/HBASE-11655
>             Project: HBase
>          Issue Type: Task
>          Components: documentation, shell
>            Reporter: Misty Stanley-Jones
>         Attachments: HBASE-11655.txt
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to