码迷,mamicode.com
首页 > 其他好文 > 详细

[Hive安装问题]

时间:2019-03-19 01:22:49      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:error   schema   nbsp   native   rmi   dac   tor   drive   root   

启动Hive时出现

Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D

解决方法:

在 hive-site.xml 中替换  system:java.io.tmpdir 为某一个文件夹即可

 

初始化Hive时出现

[root@had lib]#  schematool -dbType mysql -initSchema
Metastore connection URL:	 jdbc:derby:;databaseName=metastore_db;create=true
Metastore Connection Driver :	 org.apache.derby.jdbc.EmbeddedDriver
Metastore connection User:	 APP
Starting metastore schema initialization to 1.2.0
Initialization script hive-schema-1.2.0.mysql.sql
[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:74)
	at org.apache.hive.beeline.BeeLine.<init>(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:498)
	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:102)
	at org.apache.hive.beeline.BeeLine.<init>(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:498)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

  

原因:在Hadoop和Hive中的 jline-2.12.jar 包冲突。

Hadoop: 

/opt/hadoop/share/hadoop/yarn/lib

Hive: 

/opt/hive/lib

  

[Hive安装问题]

标签:error   schema   nbsp   native   rmi   dac   tor   drive   root   

原文地址:https://www.cnblogs.com/x-you/p/10556099.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!