hive启动问题 Unable to start Hive Cli

hive启动问题 Unable to start Hive Cli

[[email protected] lib]$ hiveLogging initialized using configuration in file:/opt/hadoop/apache-hive-0.14.0-bin/conf/hive-log4j.properties

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/opt/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/opt/hadoop/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface jline.Terminal, but class was expected

at jline.ConsoleReader.<init>(ConsoleReader.java:191)

at jline.ConsoleReader.<init>(ConsoleReader.java:186)

at jline.ConsoleReader.<init>(ConsoleReader.java:174)

at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:798)

at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:746)

at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)

at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)

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)

解决办法

[[email protected] bin]# find / -name  jline*

/opt/zookeeper/src/java/lib/jline-0.9.94.LICENSE.txt

/opt/zookeeper/lib/jline-0.9.94.jar

/opt/zookeeper/lib/jline-0.9.94.LICENSE.txt

/opt/hadoop/hadoop-2.6.0/share/jline-0.9.94.jar_bak

/opt/hadoop/hadoop-2.6.0/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jline-0.9.94.jar

/opt/hadoop/hadoop-2.6.0/share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jline-0.9.94.jar

/opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib/jline-2.12.jar

/opt/hadoop/apache-hive-0.14.0-bin/lib/jline-0.9.94.jar

[[email protected] ~]# cd /opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib/

[[email protected] lib]# mv jline-2.12.jar  jline-2.12.jar.bak

[[email protected] bin]# cp /opt/hadoop/apache-hive-0.14.0-bin/lib/jline-0.9.94.jar /opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib

使用hive

[[email protected] lib]$ hive

Logging initialized using configuration in file:/opt/hadoop/apache-hive-0.14.0-bin/conf/hive-log4j.properties

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/opt/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/opt/hadoop/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

hive>

> show databases

> ;

OK

default

Time taken: 0.948 seconds, Fetched: 1 row(s)

时间: 2024-10-31 07:15:39

hive启动问题 Unable to start Hive Cli的相关文章

hive启动一些错误记录

java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMeta 原因:因为没有正常启动Hive 的 Metastore Server服务进程. 解决方法:启动Hive 的 Metastore Server服务进程,执行如下命令: hive --service metastore & [1] 52460 Starting Hive Metastore Serve

hive启动报错 java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7B

启动hive报错: [[email protected] conf]# hive Logging initialized using configuration in file:/usr/local/hive/conf/hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/

hive启动debug问题

最近在debug hive的一个bug,之前都是使用打印日志来跟踪源码,这种方式效率比较低(每次更改了源码都要重新编译并替换线上的jar包),java的应用可以支持remote debug的,hive也不例外,主要是通过hive --debug来实现. 在运行hive --debug时遇到如下问题: ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options

Hive启动报找不到hadoop版本问题

bin/hive 提示"xxx Illegal Hadoop Version: Unknown (expected A.B.* format)"类似这样的问题, 经过查看代码 public static String getMajorVersion() { String vers = VersionInfo.getVersion(); String[] parts = vers.split("\\."); if (parts.length < 2) { thr

hive启动报错(整合spark)

spark整合hive后,hive启动报错: ls: cannot access /export/servers/spark/lib/spark-assembly-*.jar: No such file or directory 原因:spark版本升级到2.x以后,原有lib目录下的大JAR包被分散成多个小JAR包,原来的spark-assembly-*.jar已经不存在,所以hive没有办法找到这个JAR包. 解决方法:打开hive下面的bin目录,找到hive文件,编辑hive文件,找到如

hive启动时报错${system:java.io.tmpdir

Exception in thread "main" 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属性. 在配置文件中加入: <proper

hive启动时报错: Relative path in absolute URI: ${system:java.io.t

Exception in thread "main" 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属性. 在配置文件中加入: <proper

大数据技术之_08_Hive学习_01_Hive入门+Hive安装、配置和使用+Hive数据类型

第1章 Hive入门1.1 什么是Hive1.2 Hive的优缺点1.2.1 优点1.2.2 缺点1.3 Hive架构原理1.4 Hive和数据库比较1.4.1 查询语言1.4.2 数据存储位置1.4.3 数据更新1.4.4 索引1.4.5 执行1.4.6 执行延迟1.4.7 可扩展性1.4.8 数据规模第2章 Hive安装.配置和使用2.1 Hive安装地址2.2 Hive安装部署2.3 将本地文件导入Hive案例2.4 MySql安装2.4.1 安装包准备2.4.2 安装MySql服务器2.

hive如何提交hql语句到hive上执行

hive的安装部署,网上有很多教程,我在这边就不再重复了,这次我要讲的是hive如何提交hql语句到hive上执行. 一共有以下几种方式: 第一. hiveserver 通过搭建hiveserver来提供thrift接口,接收来自远程提交的hql语句执行. 这样做的好处是不需要hive客户端,简化部署方式,但是对于数据分析工程需要一定的研发能力来实现thrift协议,不过可以设计一个公用的组件来简化数据分析师的工作量.弥补数据分析师不熟悉开发的欠缺. 第二.hive client hive cl