新手Hive启动问题求解惑

GuaiGuaiGuaiNi 2015-09-30 08:45:08
最近学习安装配置hadoop,然后在安装部署Hive时出错,网上搜了下,始终没能解决问题,请求大家帮助。

2015-09-30 13:04:38,765 ERROR [main]: Datastore.Schema (Log4JLogger.java:error(125)) - Failed initialising database.
Unable to open a test connection to the given database. JDBC url = jdbc:mysql://master:3306/hive_13?characterEncoding=UTF-8, username = hadoop. 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

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
。。。
------

org.datanucleus.exceptions.NucleusDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://master:3306/hive_13?characterEncoding=UTF-8, username = hadoop. 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

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
。。。

...全文
4423 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
海会圣贤 2016-10-04
  • 打赏
  • 举报
回复
引用 5 楼 sinodzh 的回复:
连接不上mysql。看下mysql是否给hive建立和用户和database
sinodzh 2016-09-29
  • 打赏
  • 举报
回复
连接不上mysql。看下mysql是否给hive建立和用户和database
ceshi1227 2016-09-19
  • 打赏
  • 举报
回复
请问怎么解决的呢 我也遇到相同的问题了
Alice12304 2015-11-04
  • 打赏
  • 举报
回复
请问怎么解决的呢 我也遇到相同的问题了
GuaiGuaiGuaiNi 2015-10-10
  • 打赏
  • 举报
回复
引用 1 楼 sky_walker85 的回复:
你的问题是连接不上mysql数据库的问题,首先检查mysql是否启动,参考http://blog.csdn.net/skywalker_only/article/details/34847043
谢谢,已解决
skyWalker_ONLY 2015-10-03
  • 打赏
  • 举报
回复
你的问题是连接不上mysql数据库的问题,首先检查mysql是否启动,参考http://blog.csdn.net/skywalker_only/article/details/34847043

20,808

社区成员

发帖
与我相关
我的任务
社区描述
Hadoop生态大数据交流社区,致力于有Hadoop,hive,Spark,Hbase,Flink,ClickHouse,Kafka,数据仓库,大数据集群运维技术分享和交流等。致力于收集优质的博客
社区管理员
  • 分布式计算/Hadoop社区
  • 涤生大数据
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧