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启动一些错误记录的主要内容,如果未能解决你的问题,请参考以下文章

记录一次mariadb启动错误

收到警告:SQL 错误:1205,SQLState:41000 错误:超过锁定等待超时;尝试重新启动事务。使用休眠保存记录

linux系统RabbitMQ启动错误记录

javav语言启动Appium v1.12.0启动错误记录

错误记录uwsgi 启动 flask 出错

WindsorContainer 构造错误和日志记录问题