[
https://issues.apache.org/jira/browse/HBASE-11662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085829#comment-14085829
]
Hudson commented on HBASE-11662:
--------------------------------
FAILURE: Integrated in HBase-0.98 #436 (See
[https://builds.apache.org/job/HBase-0.98/436/])
HBASE-11662 shell should properly handle long form --debug. (apurtell: rev
74c7169252e67ff2f578a0d61b8cb11276ddfcbe)
* bin/hirb.rb
> 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
> Fix For: 0.99.0, 0.98.5, 2.0.0
>
> Attachments: HBASE_11662-v1.patch
>
>
> 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)