<?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 Issue backing up the Ranger KMS DB? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Issue-backing-up-the-Ranger-KMS-DB/m-p/242516#M204317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you provide the procedure for backing up ranger kms? I've backed up the ranger and ranger audit databases using the postgres dump command (pg_dump), but I'm running into an issue when I try the same procedure for the rangerkms database. I tried the following command and got the error shown below. To access the ranger kms I have to login using the keyadmin user. I was thinking that this is my issue, that I'm trying to create a backup of this database using the wrong user? Any thoughts are suggestions are appreciated as I haven't been able to find any support articles on this. Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;pg_dump -U rangeradmin rangerkms &amp;gt; rangerkms.sql&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;pg_dump: [archiver (db)] query failed: ERROR:  permission denied for relation ranger_masterkey&lt;/P&gt;&lt;P&gt;pg_dump: [archiver (db)] query was: LOCK TABLE public.ranger_masterkey IN ACCESS SHARE MODE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 04:32:59 GMT</pubDate>
    <dc:creator>rwinters</dc:creator>
    <dc:date>2019-06-14T04:32:59Z</dc:date>
    <item>
      <title>Issue backing up the Ranger KMS DB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-backing-up-the-Ranger-KMS-DB/m-p/242516#M204317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you provide the procedure for backing up ranger kms? I've backed up the ranger and ranger audit databases using the postgres dump command (pg_dump), but I'm running into an issue when I try the same procedure for the rangerkms database. I tried the following command and got the error shown below. To access the ranger kms I have to login using the keyadmin user. I was thinking that this is my issue, that I'm trying to create a backup of this database using the wrong user? Any thoughts are suggestions are appreciated as I haven't been able to find any support articles on this. Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;pg_dump -U rangeradmin rangerkms &amp;gt; rangerkms.sql&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;pg_dump: [archiver (db)] query failed: ERROR:  permission denied for relation ranger_masterkey&lt;/P&gt;&lt;P&gt;pg_dump: [archiver (db)] query was: LOCK TABLE public.ranger_masterkey IN ACCESS SHARE MODE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 04:32:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-backing-up-the-Ranger-KMS-DB/m-p/242516#M204317</guid>
      <dc:creator>rwinters</dc:creator>
      <dc:date>2019-06-14T04:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue backing up the Ranger KMS DB?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-backing-up-the-Ranger-KMS-DB/m-p/242517#M204318</link>
      <description>&lt;P&gt;For those might find this down the road. I just realized I wasn't connecting to the rangerkms db with the correct user.  To backup the database I used the &lt;STRONG&gt;rangerkms&lt;/STRONG&gt; user (instead of rangeradmin as in my original post.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sudo pg_dump -U rangerkms rangerkms &amp;gt; rangerkms.sql&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 01:26:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-backing-up-the-Ranger-KMS-DB/m-p/242517#M204318</guid>
      <dc:creator>rwinters</dc:creator>
      <dc:date>2019-06-15T01:26:29Z</dc:date>
    </item>
  </channel>
</rss>

