<?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: Backing up Cloudera Manager database in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46692#M33361</link>
    <description>&lt;P&gt;Hi AnandMS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can tell the pg_dump command expects&amp;nbsp;pg_dump [connection-option...] [option...] [dbname] see&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.postgresql.org/docs/9.1/static/app-pgdump.html" target="_blank"&gt;https://www.postgresql.org/docs/9.1/static/app-pgdump.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="REFSYNOPSISDIV"&gt;&lt;P&gt;grep -oE 'db.(user|name)=.*' /etc/cloudera-scm-server/db.properties in my environment give me the followig output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;db.name=scm
db.user=cloudera-scm&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;threfore db.user I&amp;nbsp;set in -U cloudera-scm followed by scm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;effectively your command should look like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# pg_dump -h hostname -p 7432 -U cloudera-scm scm &amp;gt; /tmp/scm_server_db_backup.$(date +%Y%m%d)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Oct 2016 20:49:24 GMT</pubDate>
    <dc:creator>michalis</dc:creator>
    <dc:date>2016-10-26T20:49:24Z</dc:date>
    <item>
      <title>Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42453#M33357</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to backup the Cloudera Manager Database but I can't find how to actually do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Cloudera Manager - Contains all the information about services you have configured and their role assignments, all configuration history, commands, users, and running processes. This relatively small database (&amp;lt;100 MB) is the most important to back up."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the link:&amp;nbsp;&lt;A href="http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cm_ag_backup_dbs.html&amp;nbsp;" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cm_ag_backup_dbs.html&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help is much appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;D.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:28:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42453#M33357</guid>
      <dc:creator>dhaniel</dc:creator>
      <dc:date>2022-09-16T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42459#M33358</link>
      <description>&lt;P&gt;The backup command is RDBMS vendor specific&amp;nbsp;and it depends&amp;nbsp;on your database server (PostgresSQL, MySQL, or Oracle)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what is your&amp;nbsp;database type? If you're unsure use the below command to confirm.&lt;/P&gt;&lt;P&gt;# grep -oE 'db.(type|host)=.*' /etc/cloudera-scm-server/db.properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's embedded/Postgres, use&amp;nbsp;the guide 'Backing Up PostgreSQL Databases'&amp;nbsp;[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ag_backup_dbs.html#cmig_topic_5_6_3" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ag_backup_dbs.html#cmig_topic_5_6_3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 01:52:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42459#M33358</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-06-30T01:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42478#M33359</link>
      <description>&lt;P&gt;Hi Michalis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked, thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:35:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/42478#M33359</guid>
      <dc:creator>dhaniel</dc:creator>
      <dc:date>2016-06-30T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46691#M33360</link>
      <description>&lt;P&gt;The document says to run the below as root user from the host running the CM server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# pg_dump -h hostname -p 7432 -U scm &amp;gt; /tmp/scm_server_db_backup.$(date +%Y%m%d)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have a query here. There is not database specified to be dumped (-d switch). It only specifies the user as scm (-U). How does it dump the Cloudera Manager database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the embedded database in our cluster. All databases like Hive metastore, Oozie etc are configured to the same host where Cloudera Manager server runs and embedded postgres database. If I have to backup the other databases, is it enough to provide the user (-U) switch only? Does it dump the database owned by that user only by default?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also would it create any perfomance issues if I dump the Cloudera Manager , Hive and Oozie databases in a production environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 16:19:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46691#M33360</guid>
      <dc:creator>AnandMS</dc:creator>
      <dc:date>2016-10-26T16:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46692#M33361</link>
      <description>&lt;P&gt;Hi AnandMS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can tell the pg_dump command expects&amp;nbsp;pg_dump [connection-option...] [option...] [dbname] see&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.postgresql.org/docs/9.1/static/app-pgdump.html" target="_blank"&gt;https://www.postgresql.org/docs/9.1/static/app-pgdump.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="REFSYNOPSISDIV"&gt;&lt;P&gt;grep -oE 'db.(user|name)=.*' /etc/cloudera-scm-server/db.properties in my environment give me the followig output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;db.name=scm
db.user=cloudera-scm&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;threfore db.user I&amp;nbsp;set in -U cloudera-scm followed by scm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;effectively your command should look like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# pg_dump -h hostname -p 7432 -U cloudera-scm scm &amp;gt; /tmp/scm_server_db_backup.$(date +%Y%m%d)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:49:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46692#M33361</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-10-26T20:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46729#M33362</link>
      <description>&lt;P&gt;Thank you Michalis. It makes sense. I was confused because the db name was not being specified in the Cloudera documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also do we have to take any precautions before dumping the database (CM , Hive metastore and Oozie dbs)? Does it affect anything if I do it in a cluster when jobs are running?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 08:58:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/46729#M33362</guid>
      <dc:creator>AnandMS</dc:creator>
      <dc:date>2016-10-27T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/47030#M33363</link>
      <description>&lt;P&gt;Hi Michalis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked just fine for me. The dumping process took only a few seconds and there was no impact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 08:47:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/47030#M33363</guid>
      <dc:creator>AnandMS</dc:creator>
      <dc:date>2016-11-04T08:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Cloudera Manager database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/50283#M33364</link>
      <description>Hi Michalis,&lt;BR /&gt;&lt;BR /&gt;This solution is not working for me.&lt;BR /&gt;&lt;BR /&gt;I get error like:&lt;BR /&gt;pg_dump: symbol lookup error: pg_dump: undefined symbol: PQconnectdbParams&lt;BR /&gt;&lt;BR /&gt;Upon running command:&lt;BR /&gt;pg_dump -h hostname -p 7432 -U scm scm &amp;gt; /tmp/scm_server_db_backup.$(date +%Y%m%d)&lt;BR /&gt;&lt;BR /&gt;Could you pls help ?</description>
      <pubDate>Thu, 02 Feb 2017 09:32:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Cloudera-Manager-database/m-p/50283#M33364</guid>
      <dc:creator>kamalghedia</dc:creator>
      <dc:date>2017-02-02T09:32:06Z</dc:date>
    </item>
  </channel>
</rss>

