美文网首页
HIVE 安装笔记

HIVE 安装笔记

作者: icoder | 来源:发表于2017-07-25 17:50 被阅读55次

1、hive 启动报错
Starting Hive Metastore Serverorg.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:83)at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:5968)at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:5909)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" org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.

缺少连接mysql的java包。。。(
http://www.blogs8.cn/posts/AC3ic6b)

解决办法 下载jar包到hive的lib目录中

2、启动报错2
Logging initialized using configuration in file:/home/hadoop/hive/conf/hive-log4j.properties[ERROR] Terminal initialization failed; falling back to unsupportedjava.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expectedat jline.TerminalFactory.create(TerminalFactory.java:101)at jline.TerminalFactory.get(TerminalFactory.java:158)at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader(CliDriver.java:787)at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:721)at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Jline包版本不一致的问题,需要拷贝hive的lib目录中jline.2.12.jar的jar包替换掉hadoop中的
/home/hadoop/app/hadoop-2.6.4/share/hadoop/yarn/lib/jline-0.9.94.jar

替换h后 启动成功

56E3EAC4-A207-4488-BC31-E7D052EE8817.png

相关文章

网友评论

      本文标题:HIVE 安装笔记

      本文链接:https://www.haomeiwen.com/subject/sjhgkxtx.html