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.