Details
Description
The instructions for installing the MySQL connector for the Hive Metastore on an Ubuntu platform (http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_ig_hive_metastore_configure.html) are misleading.
In the "To install the MySQL connector on a Debian/Ubuntu system:" section, the code block currently reads:
$ sudo apt-get install libmysql-java $ ln -s /usr/share/java/libmysql-java.jar /usr/lib/hive/lib/libmysql-java.jar
I believe it should read
$ sudo apt-get install libmysql-java $ ln -s /usr/share/java/mysql-connector-java.jar /usr/lib/hive/lib/mysql-connector-java.jar
based on http://packages.ubuntu.com/precise/all/libmysql-java/filelist and http://packages.ubuntu.com/trusty/all/libmysql-java/filelist.
This caused a confusing schematool error:
$ /usr/lib/hive/bin/schematool -dbType mysql -upgradeSchema org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver *** schemaTool failed ***