Open bagusaptopo opened 7 years ago
I've done installing MySQL and CM, but have found error when trying to initialize database for CM using this command: ./scm_prepare_database.sh mysql cloudera_mgr root
The error is:
[2017-02-14 09:10:04,522] INFO 0[main] - com.cloudera.enterprise.dbutil.DbCommandExecutor.loadJDBCDriver(DbCommandExecutor.java) - Unable to find JDBC driver for database type: MySQL
[2017-02-14 09:10:04,528]ERROR 6[main] - com.cloudera.enterprise.dbutil.DbCommandExecutor$DbConnectionTestException.logError(DbCommandExecutor.java) - JDBC Driver com.mysql.jdbc.Driver not found.
You have not yet installed the JDBC connector that Cloudera Manager needs to reach the database. You may have missed this step in the documentation.
Hi Ernest, I've already installed the JDBC connector, I've downloaded from MySQL website using this link: https://dev.mysql.com/downloads/file/?id=465643
After that, I put the jar file in /usr/share/java/, is that correct?
That's correct. The JAR file must also be named correctly so the Cloudera Manager process discovers it. See the file /etc/default/cloudera-scm-server
.
Thanks for your input, Michael. The package file name for mysql connector is different with the value in cloudera-scm-server. It works after I renamed my package file name. Thanks. :)
What lab step are you currently working on?