CDH5.11.0安装启动hive过程org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
2017-08-24 19:42
1801 查看
解决文章:http://blog.csdn.net/brotherdong90/article/details/4966173
1,通过Cloudera Manager添加Hive服务,在启动Hive的时候遇到错误:
.org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
这种情况,猜测是缺少jdbc驱动,于是添加jdbc驱动到相应的包下面。报的错中提示了lib路径,添加一下即可。
mysql-connector-java-5.1.36-bin.jar添加到hive的lib:
/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7p0.36/lib/hive/lib
2,启动之后报错:org.apache.hadoop.hive.metastore.HiveMeta MetaException(message:Version infomation not found int metastore)
这个是hive中没有版本信息,是经常碰到的。因为首次使用hive,没有相应的版本信息。
.修改conf/hive-site.xml 中的 “hive.metastore.schema.verification” 值为 false 即可解决 MetaException(message:Version information not found in metastore. )”
当然,如果是cm中,修改通过截面修改一下hive.metastore.schema.verification,然后重启以下即可。
3,Caused by: javax.jdo.JDODataStoreException: Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
在启动hive的时候启动失败,通过日志,发现这个问题。查阅资料,发现修改配置文件中的datanucleus.autoCreateSchema 为true即可。这样会自动进行创建表操作。
4,FAILED: Error in metadata: MetaException(message:javax.jdo.JDODataStoreException: An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes
这个错误一看就知道,超长了。需要修改mysql的hive数据库的编码。alter database hive character set latin1; 修改完成后就正常了。
1,通过Cloudera Manager添加Hive服务,在启动Hive的时候遇到错误:
.org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
这种情况,猜测是缺少jdbc驱动,于是添加jdbc驱动到相应的包下面。报的错中提示了lib路径,添加一下即可。
mysql-connector-java-5.1.36-bin.jar添加到hive的lib:
/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7p0.36/lib/hive/lib
2,启动之后报错:org.apache.hadoop.hive.metastore.HiveMeta MetaException(message:Version infomation not found int metastore)
这个是hive中没有版本信息,是经常碰到的。因为首次使用hive,没有相应的版本信息。
.修改conf/hive-site.xml 中的 “hive.metastore.schema.verification” 值为 false 即可解决 MetaException(message:Version information not found in metastore. )”
当然,如果是cm中,修改通过截面修改一下hive.metastore.schema.verification,然后重启以下即可。
3,Caused by: javax.jdo.JDODataStoreException: Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
在启动hive的时候启动失败,通过日志,发现这个问题。查阅资料,发现修改配置文件中的datanucleus.autoCreateSchema 为true即可。这样会自动进行创建表操作。
4,FAILED: Error in metadata: MetaException(message:javax.jdo.JDODataStoreException: An exception was thrown while adding/validating class(es) : Specified key was too long; max key length is 767 bytes
这个错误一看就知道,超长了。需要修改mysql的hive数据库的编码。alter database hive character set latin1; 修改完成后就正常了。
相关文章推荐
- 通过CM启动hive报错.org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
- org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
- org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
- org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state wo
- hive 报错FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED: Execu
- org.apache.hadoop.hive.metastore.api.InvalidOperationException cannot be cast to java.lang.RuntimeEx
- Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMe
- Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
- hive 报错 java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
- Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient错误解决方法
- Hive报错:Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
- Hive On Spark报错:Failed to execute spark task, org.apache.hadoop.hive.ql.metadata.HiveException
- FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.
- HIVE2:ERROR [main]: ql.Driver (:()) - FAILED: Execution Error, return code 1 from org.apache.hadoop.
- Hive 报错 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaExce
- 「Hive元数据问题」hive.metastore.HiveMetaException: Failed to get schema version.
- ubuntu 15.1 安装steam后不能启动failed to load driver: nouveau的错误
- 在启动hive时Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
- hive异常 show tables 无法使用 : Unable to instantiate rg.apache.hadoop.hive.metastore.HiveMetaStoreClient
- load数据到hive分区表报错: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTas