hive启动一些错误记录

Posted 呢喃的歌声

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 Server SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/root/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:/root/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 Specified key was too long; max key length is 767 bytes

解决方法:

mysql > alter database hive character set latin1;

再在Hive里创建表已经ok了

以上是关于hive启动一些错误记录的主要内容,如果未能解决你的问题,请参考以下文章

hive on tez 错误记录

hiveSql常见错误记录

使用 order by 时出现 Hive 错误

记录几个sqoop任务执行中遇到的错误

尝试使用 min 子查询查找记录时 Hive 出错

Hive 查看日志