博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
schematool -dbType derby -initSchema
阅读量:6220 次
发布时间:2019-06-21

本文共 2406 字,大约阅读时间需要 8 分钟。

hot3.png

本错可参考:https://issues.apache.org/jira/browse/HIVE-8609

两种解决办法:

1,export HADOOP_USER_CLASSPATH_FIRST=true

 

$ vi ~/.bashrc$ export HADOOP_USER_CLASSPATH_FIRST=true$ source .bashrc$ hive

删除 hadoop里面的jar

rm -rf $HADOOP_HOME/share/hadoop/yarn/lib/jline-0.9.94.jar

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.(BeeLineOpts.java:74) at org.apache.hive.beeline.BeeLine.(BeeLine.java:117) at org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:346) at org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:266) at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:243) at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:473) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) 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.(BeeLineOpts.java:102) at org.apache.hive.beeline.BeeLine.(BeeLine.java:117) at org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:346) at org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:266) at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:243) at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:473) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

转载于:https://my.oschina.net/gs80140/blog/906792

你可能感兴趣的文章
腾讯成为 Linux 基金会白金会员,贡献两大自研项目
查看>>
Firefox 将启用全新 logo 设计,不同图标对应不同产品线
查看>>
eclipse无法添加tomcat
查看>>
Confluence 6 识别慢性能的宏
查看>>
利用openssl进行base64的编码与解码
查看>>
【朝花夕拾】Android Log篇
查看>>
Python爬虫day2.3—python模块
查看>>
如何用动态参数取得季度数据
查看>>
Unity SceneManager场景管理Chinar详解API
查看>>
PHP学习4——面向对象
查看>>
深度学习第19讲:CNN经典论文研读之残差网络ResNet及其keras实现
查看>>
docker 容器内redis连接refuse的问题
查看>>
web.py源码分析: application(1)
查看>>
前言【最爱的贝叶斯哲学】
查看>>
NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
查看>>
从 Everything 到 Listary,自 Launch 归 Wox
查看>>
[Guava源码日报](2)Strings分析
查看>>
TKoa 1.0.1 发布,TypeScript 版的 Node.js Koa 框架
查看>>
使用Free Spire.Presentation生成PowerPoint文件
查看>>
PureScript 0.12.3 发布,静态类型语言
查看>>