[jira] [Commented] (HBASE-14956) [HBase ZKcli] JLine support is disabled. Better to enable this in HBase.

2015-12-15 Thread Esteban Gutierrez (JIRA)

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

Esteban Gutierrez commented on HBASE-14956:
---

That approach will cause issues when we bump JRuby to a newer version and 
altering the classpath in that way it will make difficult to keep things 
consistent. As I mentioned, this was caused by ZOOKEEPER-1718 and looking at 
master and branch-1 we still require ZooKeeper 3.4.6 so it shouldn't be a 
problem unless you are using a different version of ZK in your deployment. 

> [HBase ZKcli] JLine support is disabled. Better to enable this in HBase. 
> -
>
> Key: HBASE-14956
> URL: https://issues.apache.org/jira/browse/HBASE-14956
> Project: HBase
>  Issue Type: Bug
>  Components: Client, Zookeeper
>Affects Versions: 1.0.2
>Reporter: Y. SREENIVASULU REDDY
>Assignee: Pankaj Kumar
>
> To perform the zkcli operations using hbase, 
> jline is disabled,
> {code}
> [ERROR] Terminal initialization failed; falling back to unsupported
> java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but 
> interface was expected
> at jline.TerminalFactory.create(TerminalFactory.java:101)
> at jline.TerminalFactory.get(TerminalFactory.java:158)
> at jline.console.ConsoleReader.(ConsoleReader.java:229)
> at jline.console.ConsoleReader.(ConsoleReader.java:221)
> at jline.console.ConsoleReader.(ConsoleReader.java:209)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:335)
> at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:303)
> at 
> org.apache.hadoop.hbase.zookeeper.ZooKeeperMainServer.main(ZooKeeperMainServer.java:108)
> JLine support is disabled
> {code}
> To enable this jline-.jar is needed in hbase libraries.
> eg: jline-2.11.jar should be exist in hbase/lib directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HBASE-14956) [HBase ZKcli] JLine support is disabled. Better to enable this in HBase.

2015-12-15 Thread Pankaj Kumar (JIRA)

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

Pankaj Kumar commented on HBASE-14956:
--

Its better to have auto complete and proper zkcli prompt. However it impact 
hbase shell if jline jar is placed at hbase/lib, so we can place the jar at 
"hbase/lib/jline" and set it in the classpath on zkcli command.

> [HBase ZKcli] JLine support is disabled. Better to enable this in HBase. 
> -
>
> Key: HBASE-14956
> URL: https://issues.apache.org/jira/browse/HBASE-14956
> Project: HBase
>  Issue Type: Bug
>  Components: Client, Zookeeper
>Affects Versions: 1.0.2
>Reporter: Y. SREENIVASULU REDDY
>Assignee: Pankaj Kumar
>
> To perform the zkcli operations using hbase, 
> jline is disabled,
> {code}
> [ERROR] Terminal initialization failed; falling back to unsupported
> java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but 
> interface was expected
> at jline.TerminalFactory.create(TerminalFactory.java:101)
> at jline.TerminalFactory.get(TerminalFactory.java:158)
> at jline.console.ConsoleReader.(ConsoleReader.java:229)
> at jline.console.ConsoleReader.(ConsoleReader.java:221)
> at jline.console.ConsoleReader.(ConsoleReader.java:209)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:335)
> at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:303)
> at 
> org.apache.hadoop.hbase.zookeeper.ZooKeeperMainServer.main(ZooKeeperMainServer.java:108)
> JLine support is disabled
> {code}
> To enable this jline-.jar is needed in hbase libraries.
> eg: jline-2.11.jar should be exist in hbase/lib directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HBASE-14956) [HBase ZKcli] JLine support is disabled. Better to enable this in HBase.

2015-12-15 Thread Esteban Gutierrez (JIRA)

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

Esteban Gutierrez commented on HBASE-14956:
---

We cannot bump JLine to a newer version since the version of JRuby we ship is 
an old one (see HBASE-13338). Also this shouldn't cause any issue to use zkcli 
since it only disables the auto complete functionality. Another option is to 
use a version of ZK that doesn't have ZOOKEEPER-1718.

> [HBase ZKcli] JLine support is disabled. Better to enable this in HBase. 
> -
>
> Key: HBASE-14956
> URL: https://issues.apache.org/jira/browse/HBASE-14956
> Project: HBase
>  Issue Type: Bug
>  Components: Client, Zookeeper
>Affects Versions: 1.0.2
>Reporter: Y. SREENIVASULU REDDY
>Assignee: Pankaj Kumar
>
> To perform the zkcli operations using hbase, 
> jline is disabled,
> {code}
> [ERROR] Terminal initialization failed; falling back to unsupported
> java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but 
> interface was expected
> at jline.TerminalFactory.create(TerminalFactory.java:101)
> at jline.TerminalFactory.get(TerminalFactory.java:158)
> at jline.console.ConsoleReader.(ConsoleReader.java:229)
> at jline.console.ConsoleReader.(ConsoleReader.java:221)
> at jline.console.ConsoleReader.(ConsoleReader.java:209)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:335)
> at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:303)
> at 
> org.apache.hadoop.hbase.zookeeper.ZooKeeperMainServer.main(ZooKeeperMainServer.java:108)
> JLine support is disabled
> {code}
> To enable this jline-.jar is needed in hbase libraries.
> eg: jline-2.11.jar should be exist in hbase/lib directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)