Unable to launch hive with mysql metastore

让人想犯罪 __ 提交于 2019-12-12 02:56:16

问题


When I use hive with derby metastore, it works fine. I want to use mysql metastore so I followed this link {https://dzone.com/articles/how-configure-mysql-metastore}.

Now when I launch hive by typing "hive" command on terminal I get many errors i.e.

{Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient}

{Unable to open a test connection to the given database. JDBC url = jdbc:mysql://usr/lib/hive/apache-hive-1.2.1-bin/metastore_db? createDatabaseIfNotExist=true, username = hive_user}

{com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure}

Please suggest me something.

来源:https://stackoverflow.com/questions/34362406/unable-to-launch-hive-with-mysql-metastore

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!