请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

在完整版中启动Hive时出现问题,跟导师步骤一样改了本机的IP地址

Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

 

Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/sparksql?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app)

 

NestedThrowables:

java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/sparksql?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app).

 

Caused by: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/sparksql?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app).

 

om.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure



启动mysql时出现问题:

mysql: error while loading shared libraries: /usr/lib64/mysql/libmysqlclient.so.16: invalid ELF header


正在回答 回答被采纳积分+3

1回答

Michael_PK 2017-06-26 20:30:42

你先确认mysql是否能正常使用

0 回复 有任何疑惑可以回复我~
  • 提问者 慕圣7632443 #1
    之前确实启动不了,mysql: error while loading shared libraries: /usr/lib64/mysql/libmysqlclient.so.16: invalid ELF header。后来我就重新再解压了以一遍,现在能跑起来了。。。。。
    回复 有任何疑惑可以回复我~ 2017-06-26 20:43:06
  • Michael_PK 回复 提问者 慕圣7632443 #2
    OK,能运行起来就好
    回复 有任何疑惑可以回复我~ 2017-06-27 12:55:46
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信