<?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: could not list the files in remote HDFS cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124695#M47296</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;SOLUTION FOUND:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;since we copy the data from unsecure cluster to secure cluster we need to set the property &lt;STRONG&gt;"ipc.client.fallback-to-simple-auth-allowed"&lt;/STRONG&gt; to &lt;STRONG&gt;true &lt;/STRONG&gt;in the secured cluster. We added the host entries of the unsecured cluster in the secured cluster. Now everything is working fine!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 11:27:42 GMT</pubDate>
    <dc:creator>sundarm1988</dc:creator>
    <dc:date>2016-11-29T11:27:42Z</dc:date>
    <item>
      <title>could not list the files in remote HDFS cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124692#M47293</link>
      <description>&lt;P&gt;&lt;STRONG&gt;More info. on the cluster:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we have cluster A &amp;amp; B.&lt;/P&gt;&lt;P&gt;cluster A - HDP 2.3 - not kerberised&lt;/P&gt;&lt;P&gt;cluster B - HDP 2.4 - kerberised&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Action: &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;we are trying to list the directories in cluster A by issuing the command from one of the client machine of cluster B.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: 40px;"&gt;"&lt;EM&gt;hadoop fs -Dfs.defaultFS=&amp;lt;A namenode IP:port&amp;gt; -ls / &lt;/EM&gt;" &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;OR &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;"&lt;EM&gt;hadoop fs -ls hdfs://&amp;lt;A namenode IP:port&amp;gt;/&lt;/EM&gt;" &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;we are able to list the directories of cluster B from cluster A client machine.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Expectation Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;should list the directories from cluster A HDFS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we are getting the list of files in the current B instead of cluster A. Reverse listing is working fine!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please provide some pointers on what could have been the issue to enable -D option or what actually is stopping us to list the directories in the remote cluster.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:11:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124692#M47293</guid>
      <dc:creator>sundarm1988</dc:creator>
      <dc:date>2016-11-28T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: could not list the files in remote HDFS cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124693#M47294</link>
      <description>&lt;P&gt;My guess is that your local "Cluster A" config values are superseding your use of the "-D" option to overwrite the defaultFS parameter. E.g. your local Cluster A values may have higher priority.&lt;/P&gt;&lt;P&gt;I would have expected that your second command with "hadoop fs -ls" should work to display the remote clusters file directory. Perhaps there was a typo or some other reason why this is not being picked up?&lt;/P&gt;&lt;P&gt;Could you alternatively use WebHDFS command via REST API (bash or Python) to list directories?&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#LISTSTATUS" target="_blank"&gt;https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#LISTSTATUS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 03:57:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124693#M47294</guid>
      <dc:creator>wfloyd</dc:creator>
      <dc:date>2016-11-29T03:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: could not list the files in remote HDFS cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124694#M47295</link>
      <description>&lt;P&gt;Thanks for the alternatives Wes Floyd, It works one way again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;WEB HDFS :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes WEBHDFS works from cluster A again.&lt;/P&gt;&lt;P&gt;From Cluster B we use a numeric UserID because of which webhdfs call is failing, I see a patch for this anyways &lt;A href="https://issues.apache.org/jira/browse/HDFS-4983"&gt;https://issues.apache.org/jira/browse/HDFS-4983&lt;/A&gt;. Is this patch not available as part HDP 2.4 !&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Other cases:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We tried to add -fs option same result &lt;/P&gt;&lt;P&gt;Most weird  part is hadoop fs -ls hdfs://a.a.a.a:8020, it still not throwing error it still gives the values of the cluster B.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Extra Cluster Info:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Cluster B has WanDisco installed, is this setup causing any issue. I hope we use WanDisco fusion client Jar instead of the hadoop Jars at the backend. Any pointers here!&lt;/P&gt;&lt;P&gt;core_site.xml Entries:&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;fs.hdfs.impl&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;com.wandisco.fs.client.FusionHdfs&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt; &lt;/P&gt;&lt;P&gt;    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;fusion.handshakeToken.dir&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;##SOME DIR##&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;fusion.ihc.http.policy&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;HTTP_ONLY&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt; &lt;/P&gt;&lt;P&gt;    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;fusion.ihc.ssl.enabled&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 09:18:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124694#M47295</guid>
      <dc:creator>sundarm1988</dc:creator>
      <dc:date>2016-11-29T09:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: could not list the files in remote HDFS cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124695#M47296</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;SOLUTION FOUND:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;since we copy the data from unsecure cluster to secure cluster we need to set the property &lt;STRONG&gt;"ipc.client.fallback-to-simple-auth-allowed"&lt;/STRONG&gt; to &lt;STRONG&gt;true &lt;/STRONG&gt;in the secured cluster. We added the host entries of the unsecured cluster in the secured cluster. Now everything is working fine!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124695#M47296</guid>
      <dc:creator>sundarm1988</dc:creator>
      <dc:date>2016-11-29T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: could not list the files in remote HDFS cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124696#M47297</link>
      <description>&lt;P&gt;What do you mean by "added host entries of the unsecured cluster in the secured cluster"?? Thats kind of weird. I thought we only add Hosts so that they can be a part of the current cluster.... If you did not add the unsecure host, what problem did you encounter?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:31:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/could-not-list-the-files-in-remote-HDFS-cluster/m-p/124696#M47297</guid>
      <dc:creator>stellium</dc:creator>
      <dc:date>2017-06-28T14:31:35Z</dc:date>
    </item>
  </channel>
</rss>

