Support Questions
Find answers, ask questions, and share your expertise

while setting database connection with mysql facing error

while setting database connection with mysql facing error


I am new to cloudera , earlier I was working on Hortonworks hadoop distribution . I am installing cloudera manager following its documentation page , but while setting database(MYSQL )  with cloudera manager I am facing below error : root@instance-1 etc]# /usr/share/cmf/schema/ postgresql scm scm scm JAVA_HOME=/usr/java/jdk1.6.0_31 Verifying that we can write to /etc/cloudera-scm-server Creating SCM configuration file in /etc/cloudera-scm-server Executing: /usr/java/jdk1.6.0_31/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/java/postgresql-connector-java.jar:/usr/share/cmf/schema/../lib/* com.cloudera.enterprise.dbutil.DbCommandExecutor /etc/cloudera-scm-server/ com.cloudera.cmf.db. Exception in thread "main" java.lang.UnsupportedClassVersionError: org/postgresql/util/PSQLException : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond( at java.lang.ClassLoader.defineClass( at at at$000( at$ at Method) at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( Could not find the main class: com.cloudera.enterprise.dbutil.DbCommandExecutor. Program will exit. --> Error 1, giving up (use --force if you wish to ignore the error)


Re: while setting database connection with mysql facing error

Super Collaborator

Hi @warrior ,


Could you please paste the documentation link which you were following to install Cloudera Manager? Here is the latest doc for your information:

Also, did you install the JDBC driver on the CM host and all the other hosts which requires database access like this doc mentions?





Li Wang, Technical Solution Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum