FAQ
[ https://issues.apache.org/jira/browse/HIVE-8918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243594#comment-14243594 ]

Brock Noland commented on HIVE-8918:
------------------------------------

Future internet visitors, see this fix: https://issues.apache.org/jira/browse/HIVE-8609?focusedCommentId=14242978&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14242978
Beeline terminal cannot be initialized due to jline2 change
-----------------------------------------------------------

Key: HIVE-8918
URL: https://issues.apache.org/jira/browse/HIVE-8918
Project: Hive
Issue Type: Bug
Affects Versions: 0.15.0
Reporter: Sergio Peña

I fetched the latest changes from trunk, and I got the following error when attempting to execute beeline:
{noformat}
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 org.apache.hive.beeline.BeeLineOpts.<init>(BeeLineOpts.java:73)
at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:117)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:469)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:453)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at org.apache.hive.beeline.BeeLineOpts.<init>(BeeLineOpts.java:101)
at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:117)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:469)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:453)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
{noformat}
I executed the following command:
{noformat}
hive --service beeline -u jdbc:hive2://localhost:10000 -n sergio
{noformat}
The commit before the jline2 is working fine.


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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshive, hadoop
postedDec 12, '14 at 2:10a
activeDec 12, '14 at 2:10a
posts1
users1
websitehive.apache.org

1 user in discussion

Brock Noland (JIRA): 1 post

People

Translate

site design / logo © 2021 Grokbase