<?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 distcp secure to insecure cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/distcp-secure-to-insecure-cluster/m-p/280116#M208682</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an issue with distcp authentication between a kerberos secured cluster (&lt;STRONG&gt;HDP2.6.1.0-129&lt;/STRONG&gt;) and an unsecured cluster. (&lt;STRONG&gt;HDP3.0.1.0-187)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/administration/content/distcp_data_copy_matrix_hdp1_hdp2_to_hdp2.html" target="_self"&gt;compatibility matrix&lt;/A&gt; for the versions says they should interoperate&lt;/P&gt;
&lt;P&gt;I am running the following from the secure cluster:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;hadoop distcp -D ipc.client.fallback-to-simple-auth-allowed=true swebhdfs://FQDN(secure cluster):50470/tmp/test.sh swebhdfs://FQDN(insecure cluster):50470/tmp/test.sh&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both ends have TLS enabled.I have a truststore configured and working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see packets outbound from the client and arriving at the server using tcpdump&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error returned by the distcp command above is:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;19/10/15 09:58:48 ERROR tools.DistCp: Exception encountered&lt;BR /&gt;org.apache.hadoop.security.AccessControlException: &lt;STRONG&gt;Authentication required&lt;/STRONG&gt;&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.validateResponse(WebHdfsFileSystem.java:460)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.access$200(WebHdfsFileSystem.java:114)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:750)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:592)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:622)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:618)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getDelegationToken(WebHdfsFileSystem.java:1524)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getDelegationToken(WebHdfsFileSystem.java:333)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getAuthParameters(WebHdfsFileSystem.java:557)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.toUrl(WebHdfsFileSystem.java:578)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractFsPathRunner.getUrl(WebHdfsFileSystem.java:852)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:745)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:592)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:622)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:618)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getHdfsFileStatus(WebHdfsFileSystem.java:1004)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileStatus(WebHdfsFileSystem.java:1020)&lt;BR /&gt;at org.apache.hadoop.fs.Globber.getFileStatus(Globber.java:57)&lt;BR /&gt;at org.apache.hadoop.fs.Globber.glob(Globber.java:252)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1696)&lt;BR /&gt;at org.apache.hadoop.tools.GlobbedCopyListing.doBuildListing(GlobbedCopyListing.java:77)&lt;BR /&gt;at org.apache.hadoop.tools.CopyListing.buildListing(CopyListing.java:86)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.createInputFileListing(DistCp.java:398)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.createAndSubmitJob(DistCp.java:190)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.execute(DistCp.java:155)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.run(DistCp.java:128)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.main(DistCp.java:462)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;The namenode log on the client shows successful authentication to kerberos.&lt;/P&gt;
&lt;P&gt;The server hdfs namenode log shows the following warning:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;WARN namenode.FSNamesystem (FSNamesystem.java:getDelegationToken(5611)) - &lt;STRONG&gt;trying to get DT with no secret manager running&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone come across this issue before?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 23:28:04 GMT</pubDate>
    <dc:creator>andrew_ryan1</dc:creator>
    <dc:date>2019-10-14T23:28:04Z</dc:date>
    <item>
      <title>distcp secure to insecure cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/distcp-secure-to-insecure-cluster/m-p/280116#M208682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an issue with distcp authentication between a kerberos secured cluster (&lt;STRONG&gt;HDP2.6.1.0-129&lt;/STRONG&gt;) and an unsecured cluster. (&lt;STRONG&gt;HDP3.0.1.0-187)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/administration/content/distcp_data_copy_matrix_hdp1_hdp2_to_hdp2.html" target="_self"&gt;compatibility matrix&lt;/A&gt; for the versions says they should interoperate&lt;/P&gt;
&lt;P&gt;I am running the following from the secure cluster:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;hadoop distcp -D ipc.client.fallback-to-simple-auth-allowed=true swebhdfs://FQDN(secure cluster):50470/tmp/test.sh swebhdfs://FQDN(insecure cluster):50470/tmp/test.sh&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both ends have TLS enabled.I have a truststore configured and working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see packets outbound from the client and arriving at the server using tcpdump&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error returned by the distcp command above is:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;19/10/15 09:58:48 ERROR tools.DistCp: Exception encountered&lt;BR /&gt;org.apache.hadoop.security.AccessControlException: &lt;STRONG&gt;Authentication required&lt;/STRONG&gt;&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.validateResponse(WebHdfsFileSystem.java:460)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.access$200(WebHdfsFileSystem.java:114)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:750)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:592)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:622)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:618)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getDelegationToken(WebHdfsFileSystem.java:1524)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getDelegationToken(WebHdfsFileSystem.java:333)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getAuthParameters(WebHdfsFileSystem.java:557)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.toUrl(WebHdfsFileSystem.java:578)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractFsPathRunner.getUrl(WebHdfsFileSystem.java:852)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:745)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:592)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:622)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:618)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getHdfsFileStatus(WebHdfsFileSystem.java:1004)&lt;BR /&gt;at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileStatus(WebHdfsFileSystem.java:1020)&lt;BR /&gt;at org.apache.hadoop.fs.Globber.getFileStatus(Globber.java:57)&lt;BR /&gt;at org.apache.hadoop.fs.Globber.glob(Globber.java:252)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1696)&lt;BR /&gt;at org.apache.hadoop.tools.GlobbedCopyListing.doBuildListing(GlobbedCopyListing.java:77)&lt;BR /&gt;at org.apache.hadoop.tools.CopyListing.buildListing(CopyListing.java:86)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.createInputFileListing(DistCp.java:398)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.createAndSubmitJob(DistCp.java:190)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.execute(DistCp.java:155)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.run(DistCp.java:128)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)&lt;BR /&gt;at org.apache.hadoop.tools.DistCp.main(DistCp.java:462)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;The namenode log on the client shows successful authentication to kerberos.&lt;/P&gt;
&lt;P&gt;The server hdfs namenode log shows the following warning:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;WARN namenode.FSNamesystem (FSNamesystem.java:getDelegationToken(5611)) - &lt;STRONG&gt;trying to get DT with no secret manager running&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone come across this issue before?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:28:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/distcp-secure-to-insecure-cluster/m-p/280116#M208682</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2019-10-14T23:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: distcp secure to insecure cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/distcp-secure-to-insecure-cluster/m-p/280277#M208771</link>
      <description>&lt;P&gt;The problem was iptables on the data nodes. Once these were flushed the following command worked a treat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;hadoop distcp  -D ipc.client.fallback-to-simple-auth-allowed=true hdfs://active_namenode:8020/tmp/test.txt swebhdfs://active_namenode:50470/tmp/test.txt&lt;/LI-CODE&gt;&lt;P&gt;Apologies for my confusion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 04:05:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/distcp-secure-to-insecure-cluster/m-p/280277#M208771</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2019-10-16T04:05:19Z</dc:date>
    </item>
  </channel>
</rss>

