错误日志如下:

[hadoop@master hive1.0.0]$ bin/hive
Logging initialized using configuration in file:/opt/modules/hive1.0.0/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/modules/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/modules/hive1.0.0/lib/hive-jdbc-1.0.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.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:444)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:626)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)
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:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1453)
at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:63)
at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73)
at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2664)
at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2683)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:425)
... 8 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1451)
... 13 more
Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://master:3306/hive?characterEncoding=UTF-8, username = hive. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  从日志文件可以看出,该错误是不能成功开启到数据库的链接,而这是由于我们的数据库没有成功启动所导致的。由于hive配置的元数据在mysql里面,而且mysql是和集群的namenode安装在一台机器上。而我们的集群被重启了,而mysql又没有启动,所以就出了以上问题。

以上就是博主为大家介绍的这一板块的主要内容,这都是博主自己的学习过程,希望能给大家带来一定的指导作用,有用的还望大家点个支持,如果对你没用也望包涵,有错误烦请指出。如有期待可关注博主以第一时间获取更新哦,谢谢! 


版权声明:本文为博主原创文章,未经博主允许不得转载。

												

最新文章

  1. 基于HTML5实现3D监控应用流动效果
  2. word2013删除下载的模板
  3. uva131 The Psychic Poker Player
  4. PHP设计模式(三)
  5. http://jingyan.baidu.com/article/2009576193ee38cb0721b416.html
  6. C#设计模式——抽象工厂模式(Abstract Factory Pattern)
  7. BZOJ4389 : ZYB and Trees
  8. iOS开发——UI篇Swift篇&amp;UISegmentedControl
  9. C#微信登录-手机网站APP应用
  10. [itint5]交替字符串
  11. 配置元素customErrors
  12. Linux 6.4 partprobe出现warning问题
  13. 张高兴的 Windows 10 IoT 开发笔记:BMP180 气压传感器
  14. Linux通配符应用详解
  15. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
  16. iOS调用系统发送短信和邮件分享
  17. python爬取房天下数据Demo
  18. 【架构师之路】集群/分布式环境下5种session处理策略
  19. 架构师速成7.3-devops为什么非常重要
  20. 植物大战僵尸作弊器源代码(MFC版)

热门文章

  1. java--序列化及其算法透析
  2. 人物-IT-马云:马云
  3. JVM类加载(4)—加载器
  4. linux日常管理-防火墙selinux
  5. C笔试题(二)
  6. webStorage
  7. viewstate的基本用法
  8. 项目一:第一天 1、项目概述 2、环境搭建(重点) 3、Jquery Easyui 前端UI框架 4、Jquery Ztree 树形插件使用
  9. Netbeans使用UTF-8编码
  10. 如何修改html中列表项li所显示的圆点的颜色?,以及相关样式的设定