You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2014/08/04 21:48:12 UTC

[jira] [Work started] (HBASE-11662) Launching shell with long-form --debug fails

     [ https://issues.apache.org/jira/browse/HBASE-11662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HBASE-11662 started by Sean Busbey.

> Launching shell with long-form --debug fails
> --------------------------------------------
>
>                 Key: HBASE-11662
>                 URL: https://issues.apache.org/jira/browse/HBASE-11662
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>
> Even though the help says both '-d' and '--debug' are allowed, the shell fails if you use the long form.
> {noformat}
> busbey2-MBA:hbase busbey$ bin/hbase shell --help
> Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
>  --format=OPTION                Formatter for outputting results.
>                                 Valid options are: console, html.
>                                 (Default: console)
>  -d | --debug                   Set DEBUG log levels.
>  -h | --help                    This help.
> busbey2-MBA:hbase busbey$ bin/hbase shell --debug
> Setting DEBUG log level...
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 2.0.0-SNAPSHOT, r4d005b70a0fda4be5a8ead84ff5f54fceb3c637a, Mon Aug  4 14:17:22 CDT 2014
> IRB::UnrecognizedSwitch: Unrecognized switch: --debug
>        Raise at file:/Users/busbey/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:167
>         fail at file:/Users/busbey/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:95
>   parse_opts at file:/Users/busbey/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:194
>        setup at file:/Users/busbey/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:19
>        start at /Users/busbey/projects/hbase/bin/../bin/hirb.rb:170
>       (root) at /Users/busbey/projects/hbase/bin/../bin/hirb.rb:190
> busbey2-MBA:hbase busbey$ bin/hbase shell -d
> Setting DEBUG log level...
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 2.0.0-SNAPSHOT, r4d005b70a0fda4be5a8ead84ff5f54fceb3c637a, Mon Aug  4 14:17:22 CDT 2014
> jruby-1.7.3 :001 > quit
> busbey2-MBA:hbase busbey$
> {noformat}
> The problem is that we're sending the debug flag through to the IRB initialization as is, and it only recognizes the '-d' form.



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