<?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: Not able to run scm_prepare_database.sh script in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299997#M219985</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;I had to install ident server, also I had changed the ip address in the line-&lt;/P&gt;&lt;P&gt;host all all 127.0.0.1/32 md5 so changed it back to 127.0.0.1. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 08:59:23 GMT</pubDate>
    <dc:creator>tanishq1197</dc:creator>
    <dc:date>2020-07-20T08:59:23Z</dc:date>
    <item>
      <title>Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299895#M219915</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;PostgreSQL&amp;nbsp;for the Cloudera Manager Server and other services that use databases. I'm using a RHEL 7.4 Azure VM and following the official documentation -&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/prepare_cm_database.html" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/prepare_cm_database.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have completed step 4(Install Databases). In Step 5 : Set up the Cloudera Manager Database, on executing the&amp;nbsp;&lt;SPAN&gt;scm_prepare_database.sh script I'm getting the following output-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@machine1 ~]# sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql scm scm
Enter SCM password:
JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
Verifying that we can write to /etc/cloudera-scm-server
Creating SCM configuration file in /etc/cloudera-scm-server
Executing:  /usr/java/jdk1.8.0_181-cloudera/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.
Jul 17, 2020 1:59:50 PM org.postgresql.Driver connect
SEVERE: Connection error:
org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "scm"
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:438)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:222)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.&amp;lt;init&amp;gt;(PgConnection.java:194)
        at org.postgresql.Driver.makeConnection(Driver.java:450)
        at org.postgresql.Driver.connect(Driver.java:252)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at com.cloudera.enterprise.dbutil.DbCommandExecutor.testDbConnection(DbCommandExecutor.java:263)
        at com.cloudera.enterprise.dbutil.DbCommandExecutor.main(DbCommandExecutor.java:139)

[                          main] DbCommandExecutor              INFO  Unable to login using supplied username/password.
[                          main] DbCommandExecutor              ERROR Error when connecting to database.
org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "scm"
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:438)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:222)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at org.postgresql.jdbc.PgConnection.&amp;lt;init&amp;gt;(PgConnection.java:194)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at org.postgresql.Driver.makeConnection(Driver.java:450)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at org.postgresql.Driver.connect(Driver.java:252)[postgresql-42.1.4.jre7.89c9f79016bab67349a92c00c55907dd.jar:42.1.4.jre7]
        at java.sql.DriverManager.getConnection(DriverManager.java:664)[:1.8.0_181]
        at java.sql.DriverManager.getConnection(DriverManager.java:247)[:1.8.0_181]
        at com.cloudera.enterprise.dbutil.DbCommandExecutor.testDbConnection(DbCommandExecutor.java:263)[db-common-6.3.1.96818eaab0a222aa84a7854b8d22c0c7.jar:]
        at com.cloudera.enterprise.dbutil.DbCommandExecutor.main(DbCommandExecutor.java:139)[db-common-6.3.1.96818eaab0a222aa84a7854b8d22c0c7.jar:]
[                          main] DbCommandExecutor              ERROR Exiting with exit code 8
--&amp;gt; Error 8, giving up (use --force if you wish to ignore the error)&lt;/LI-CODE&gt;&lt;P&gt;I had logged into postgres using # sudo -u postgres psql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 14:30:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299895#M219915</guid>
      <dc:creator>tanishq1197</dc:creator>
      <dc:date>2020-07-17T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299921#M219920</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79708"&gt;@tanishq1197&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think your syntax is wrong&amp;nbsp; because you have initiated a connection using the below snippet&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# sudo -u postgres psql&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The correct syntax is&amp;nbsp; without need of prior log on&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ sudo /opt/cloudera/cm/schema/scm_prepare_database.sh [options] &amp;lt;databaseType&amp;gt; &amp;lt;databaseName&amp;gt; &amp;lt;databaseUser&amp;gt; &amp;lt;password&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Substituting the correct value s the below should run successfully with the default user/password &lt;FONT color="#FF6600"&gt;scm/scm&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql scm scm scm &lt;/LI-CODE&gt;&lt;P&gt;Assuming you intend to use the derby databases postgres please see &lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/prepare_cm_database.html" target="_blank" rel="noopener"&gt;Setting up the Cloudera Manager Database&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 18:04:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299921#M219920</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-07-17T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299942#M219937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I have tried with the following syntax-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ sudo /opt/cloudera/cm/schema/scm_prepare_database.sh [options] &amp;lt;databaseType&amp;gt; &amp;lt;databaseName&amp;gt; &amp;lt;databaseUser&amp;gt; &amp;lt;password&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but the output remains the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 06:31:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299942#M219937</guid>
      <dc:creator>tanishq1197</dc:creator>
      <dc:date>2020-07-18T06:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299944#M219939</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79708"&gt;@tanishq1197&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you copy and paste here exactly the command you run?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 08:18:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299944#M219939</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-07-18T08:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299945#M219940</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79708"&gt;@tanishq1197&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I did a typo error&amp;nbsp; previously there was an extra &lt;FONT color="#FF6600"&gt;scm&amp;nbsp;&lt;FONT color="#000000"&gt;the below should run successfully&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="cdoc-line"&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql scm scm&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 08:41:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299945#M219940</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-07-18T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299950#M219945</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql scm scm&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the next line I was prompted for password.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 10:37:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299950#M219945</guid>
      <dc:creator>tanishq1197</dc:creator>
      <dc:date>2020-07-18T10:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299969#M219962</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79708"&gt;@tanishq1197&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Password should be the &lt;FONT color="#FF6600"&gt;scm&lt;/FONT&gt; password&lt;/P&gt;&lt;PRE&gt;Enter SCM password:&lt;/PRE&gt;&lt;P&gt;The default is SCM that should progress successfully&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 16:06:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299969#M219962</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-07-19T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299978#M219968</link>
      <description>&lt;P&gt;CREATE ROLE &amp;lt;user&amp;gt; LOGIN PASSWORD '&amp;lt;password&amp;gt;';&lt;/P&gt;&lt;P&gt;CREATE DATABASE &amp;lt;database&amp;gt; OWNER &amp;lt;user&amp;gt; ENCODING 'UTF8';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had changed the password using the above commands for each database, I have anyways tried with the default password "scm" as well, the error still persists.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 04:22:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299978#M219968</guid>
      <dc:creator>tanishq1197</dc:creator>
      <dc:date>2020-07-20T04:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scm_prepare_database.sh script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299997#M219985</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;I had to install ident server, also I had changed the ip address in the line-&lt;/P&gt;&lt;P&gt;host all all 127.0.0.1/32 md5 so changed it back to 127.0.0.1. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:59:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-run-scm-prepare-database-sh-script/m-p/299997#M219985</guid>
      <dc:creator>tanishq1197</dc:creator>
      <dc:date>2020-07-20T08:59:23Z</dc:date>
    </item>
  </channel>
</rss>

