<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: scm_prepare_database.sh, ERROR 4 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333098#M231359</link>
    <description>&lt;P&gt;Great, thanks for sharing your solution!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 13:09:55 GMT</pubDate>
    <dc:creator>mszurap</dc:creator>
    <dc:date>2022-01-03T13:09:55Z</dc:date>
    <item>
      <title>scm_prepare_database.sh, ERROR 4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/332993#M231331</link>
      <description>&lt;P&gt;Hi while running '/opt/cloudera/cm/schema/scm_prepare_database.sh&amp;nbsp; mysql scm scm', I'm getting below error. I'm unable to find the cause. Please help me resolve this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JAVA_HOME=/usr/java/latest&lt;BR /&gt;Verifying that we can write to /etc/cloudera-scm-server&lt;BR /&gt;Creating SCM configuration file in /etc/cloudera-scm-server&lt;BR /&gt;Executing: /usr/java/latest/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/java/postgresql-connector-java.jar:/opt/cloudera/cm/schema/../lib/* com.cloudera.enterprise.dbutil.DbCommandExecutor /etc/cloudera-scm-server/db.properties com.cloudera.cmf.db.&lt;BR /&gt;Thu Dec 30 05:34:34 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.&lt;BR /&gt;2021-12-30 05:34:35,140 [main] ERROR com.cloudera.enterprise.dbutil.DbCommandExecutor - Error when connecting to database.&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure&lt;/P&gt;&lt;P&gt;The last packet successfully received from the server was 205 milliseconds ago. The last packet sent successfully to the server was 197 milliseconds ago.&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)&lt;BR /&gt;at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)&lt;BR /&gt;at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4912)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2190)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2221)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2016)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.&amp;lt;init&amp;gt;(ConnectionImpl.java:776)&lt;BR /&gt;at com.mysql.jdbc.JDBC4Connection.&amp;lt;init&amp;gt;(JDBC4Connection.java:47)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)&lt;BR /&gt;at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:664)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:247)&lt;BR /&gt;at com.cloudera.enterprise.dbutil.DbCommandExecutor.testDbConnection(DbCommandExecutor.java:263)&lt;BR /&gt;at com.cloudera.enterprise.dbutil.DbCommandExecutor.main(DbCommandExecutor.java:139)&lt;BR /&gt;Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)&lt;BR /&gt;at sun.security.ssl.Handshaker.activate(Handshaker.java:529)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java:1492)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1361)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)&lt;BR /&gt;at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)&lt;BR /&gt;... 19 more&lt;BR /&gt;2021-12-30 05:34:35,144 [main] ERROR com.cloudera.enterprise.dbutil.DbCommandExecutor - Exiting with exit code 4&lt;BR /&gt;--&amp;gt; Error 4, giving up (use --force if you wish to ignore the error)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:44:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/332993#M231331</guid>
      <dc:creator>saurabh_ka</dc:creator>
      <dc:date>2022-09-16T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh, ERROR 4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/332999#M231333</link>
      <description>&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;The "&lt;SPAN&gt;Establishing SSL connection..." message already suggests that the MySQL client (in this case Cloudera Manager code "DbCommandExecutor") is using TLS/SSL coonection to the MySQL database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last "caused by" tells the reason for the failure:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This happens when&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The MySQL client does not allow a specific cipher suite (it has some restrictions)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- and the MySQL server does not support any of the&amp;nbsp;cipher suites which the client allows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check what settings are on the MySQL server side:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysql --ssl-ca=&amp;lt;path_to/truststore.pem&amp;gt; -uroot -p -e "SHOW GLOBAL VARIABLES LIKE '%ssl%';STATUS;"&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;and check&amp;nbsp;the CM server side JDK configuration settings in:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/java/latest/jre/lib/security/java.security&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Look for&amp;nbsp;ProtocolsWhiteList, CipherWhiteList and&amp;nbsp;CipherBlackList settings.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 17:08:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/332999#M231333</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2021-12-30T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh, ERROR 4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333084#M231355</link>
      <description>&lt;P&gt;Hi thanks for the response.&lt;/P&gt;&lt;P&gt;I checked and figured out that I needed to add skip_ssl in my.cnf file to skip the ssl connection.&lt;/P&gt;&lt;P&gt;After making this change, it ran without any error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 11:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333084#M231355</guid>
      <dc:creator>saurabh_ka</dc:creator>
      <dc:date>2022-01-03T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh, ERROR 4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333098#M231359</link>
      <description>&lt;P&gt;Great, thanks for sharing your solution!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 13:09:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333098#M231359</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2022-01-03T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh, ERROR 4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333180#M231375</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92218"&gt;@saurabh_ka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you've got a solution, could you please mark the appropriate reply as the solution? It will make it easier for others to find the answer in the future.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 18:44:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-ERROR-4/m-p/333180#M231375</guid>
      <dc:creator>christopher</dc:creator>
      <dc:date>2022-01-04T18:44:26Z</dc:date>
    </item>
  </channel>
</rss>

