[
https://issues.apache.org/jira/browse/HBASE-13338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537684#comment-14537684
]
Ayappan commented on HBASE-13338:
---------------------------------
This is about the hbase shell issue.
I configured the shell to be invoked in ruby 1.8 mode
HBASE_OPTS="$HBASE_OPTS $HBASE_SHELL_OPTS"
- CLASS="org.jruby.Main -X+O ${JRUBY_OPTS} ${HBASE_HOME}/bin/hirb.rb"
+ CLASS="org.jruby.Main --1.8 -X+O ${JRUBY_OPTS} ${HBASE_HOME}/bin/hirb.rb"
elif [ "$COMMAND" = "hbck" ] ; then
and got this error
[ayappan@soe07-vm3 bin]$ ./hbase shell
include_class is deprecated. Use java_import.
include_class is deprecated. Use java_import.
include_class is deprecated. Use java_import.
NoMethodError: undefined method `getTerminal' for Java::Jline::Terminal:Module
refresh_width at
/home/ayappan/hbase/bin/../hbase-shell/src/main/ruby/shell/formatter.rb:33
initialize at
/home/ayappan/hbase/bin/../hbase-shell/src/main/ruby/shell/formatter.rb:46
(root) at /home/ayappan/hbase/bin/../bin/hirb.rb:128
It seems like the getTerminal method doesn't exist with the jline that ships
with this version. The jline version is upated to 2.11.
And also the jruby community suggest to go with 1.9 ruby mode since 1.8 has
been EOL in the jruby world for years
https://github.com/jruby/jruby/issues/2912
> Hbase to use PowerPC supported Jruby version 1.7.20
> ---------------------------------------------------
>
> Key: HBASE-13338
> URL: https://issues.apache.org/jira/browse/HBASE-13338
> Project: HBase
> Issue Type: Task
> Components: dependencies, shell
> Affects Versions: 1.0.0, 0.98.12
> Environment: PowerPC64, PowerPC64LE
> Reporter: Ayappan
>
> Older versions of jffi (till 1.2.7) don't have native PPC64 & PPC64LE
> libraries. The latest released 1.2.8 version has PowerPC libraries and the
> jruby development version(1.7.20--SNAPSHOT) has been updated to make use of
> this version. Hbase still uses much older jruby 1.6.8 version which don't
> have the native libraries and this affects the Hbase shell in PowerPCs. So
> Hbase needs to be updated to make use of the upcoming Jruby release 1.7.20 to
> support PowerPC.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)