<?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 Backing up Namenode FSImage in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27268#M5871</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to backup fsimage on a secure cluster with the -fetchImage command.&lt;/P&gt;&lt;P&gt;I want to execute it without using hdfs user, but with an administrative user(adminUser) which belongs to hdfs' supergroup (&lt;SPAN class="configLegacyName"&gt;dfs.permissions.supergroup&lt;/SPAN&gt;, &lt;SPAN class="configLegacyName"&gt;dfs.permissions.superusergroup&lt;/SPAN&gt; = supergroup)&lt;/P&gt;&lt;P&gt;adminUser is local to the machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try the command:&lt;/P&gt;&lt;P&gt;kinit adminUser&lt;/P&gt;&lt;P&gt;hdfs dfsadmin -fetchImage /backup_folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtain the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;15/05/11 16:38:42 WARN security.UserGroupInformation: PriviledgedActionException as:adminUser@&amp;lt;DOMAIN.LOCAL&amp;gt; (auth:KERBEROS) cause:org.apache.hadoop.hdfs.server.namenode.TransferFsImage$HttpGetFailedException: Image transfer servlet at http://&amp;lt;namenode&amp;gt;:50070/imagetransfer?getimage=1&amp;amp;txid=latest failed with status code 403&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Response message:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Only Namenode, Secondary Namenode, and administrators may access this servlet&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fetchImage: Image transfer servlet at http://&amp;lt;namenode&amp;gt;:50070/imagetransfer?getimage=1&amp;amp;txid=latest failed with status code 403&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Response message:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Only Namenode, Secondary Namenode, and administrators may access this servlet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, others dfsadmin commands (like -report) work fine with adminUser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:28:25 GMT</pubDate>
    <dc:creator>lor3nz</dc:creator>
    <dc:date>2022-09-16T09:28:25Z</dc:date>
    <item>
      <title>Backing up Namenode FSImage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27268#M5871</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to backup fsimage on a secure cluster with the -fetchImage command.&lt;/P&gt;&lt;P&gt;I want to execute it without using hdfs user, but with an administrative user(adminUser) which belongs to hdfs' supergroup (&lt;SPAN class="configLegacyName"&gt;dfs.permissions.supergroup&lt;/SPAN&gt;, &lt;SPAN class="configLegacyName"&gt;dfs.permissions.superusergroup&lt;/SPAN&gt; = supergroup)&lt;/P&gt;&lt;P&gt;adminUser is local to the machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try the command:&lt;/P&gt;&lt;P&gt;kinit adminUser&lt;/P&gt;&lt;P&gt;hdfs dfsadmin -fetchImage /backup_folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtain the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;15/05/11 16:38:42 WARN security.UserGroupInformation: PriviledgedActionException as:adminUser@&amp;lt;DOMAIN.LOCAL&amp;gt; (auth:KERBEROS) cause:org.apache.hadoop.hdfs.server.namenode.TransferFsImage$HttpGetFailedException: Image transfer servlet at http://&amp;lt;namenode&amp;gt;:50070/imagetransfer?getimage=1&amp;amp;txid=latest failed with status code 403&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Response message:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Only Namenode, Secondary Namenode, and administrators may access this servlet&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fetchImage: Image transfer servlet at http://&amp;lt;namenode&amp;gt;:50070/imagetransfer?getimage=1&amp;amp;txid=latest failed with status code 403&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Response message:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Only Namenode, Secondary Namenode, and administrators may access this servlet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, others dfsadmin commands (like -report) work fine with adminUser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:28:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27268#M5871</guid>
      <dc:creator>lor3nz</dc:creator>
      <dc:date>2022-09-16T09:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Namenode FSImage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27362#M5872</link>
      <description>The list of users who are allowed to run this command are dictated by the list in the property dfs.cluster.administrators. In clusters managed by Cloudera Manager 4.x, the property is not set by default. In clusters managed by Cloudera Manager 5.x, the property is set to "hdfs" by default. So if this command is run as the hdfs user on any node on the cluster, the command will succeed.&lt;BR /&gt;&lt;BR /&gt;You can try setting dfs.cluster.administrators to the list of users and groups who are allowed to perform this operation and then try again. It will require a restart of the Namenode(s) to take effect.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;dfs.cluster.administrators&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;user1,user2,user3 group1,group2,group3&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;</description>
      <pubDate>Wed, 13 May 2015 06:19:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27362#M5872</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-05-13T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Backing up Namenode FSImage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27451#M5873</link>
      <description>&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 11:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Backing-up-Namenode-FSImage/m-p/27451#M5873</guid>
      <dc:creator>lor3nz</dc:creator>
      <dc:date>2015-05-14T11:21:39Z</dc:date>
    </item>
  </channel>
</rss>

