<?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: ViewFS use in java application in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174770#M46267</link>
    <description>&lt;P&gt;In your code, you may have to add the following line:&lt;/P&gt;&lt;PRE&gt;conf.set("dfs.nameservices", "HadoopTestHA")&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Dec 2016 03:57:27 GMT</pubDate>
    <dc:creator>cstanca</dc:creator>
    <dc:date>2016-12-27T03:57:27Z</dc:date>
    <item>
      <title>ViewFS use in java application</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174768#M46265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have already tested my HDFS HA cluster with my java application (i.e simple file upload/download).&lt;/P&gt;&lt;P&gt;Now that I have configured federated cluster, How can I use it in same code with few necessary modifications. Here is my code example for HDFS HA cluster. Please suggest for Federation HA cluster. Problem is I think my Configuration object is getting null while getting the FileSystem object for federated cluster.&lt;/P&gt;&lt;PRE&gt;conf.set("fs.defaultFS", "hdfs://HadoopTestHA");

conf.set("dfs.replication","4");
conf.set("dfs.ha.namenodes.HadoopTestHA", "nn1,nn2");
conf.set("dfs.namenode.rpc-address.HadoopTestHA.nn1","hadoop4ind.india:8020");
conf.set("dfs.namenode.rpc-address.HadoopTestHA.nn2","hadoop5ind.india:8020");
conf.set("dfs.client.failover.proxy.provider.HadoopTestHA","org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider");
copyFromLocalHDFS(conf,"Fed_Java_Test");  // File uploading code&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 18:53:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174768#M46265</guid>
      <dc:creator>viruvekariya</dc:creator>
      <dc:date>2016-11-15T18:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: ViewFS use in java application</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174769#M46266</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3195/viruvekariya.html" nodeid="3195"&gt;@Viraj Vekaria&lt;/A&gt; could you please try setting these properties in conf and see if it helps?&lt;/P&gt;&lt;P&gt;dfs.nameservices=HadoopTestHA&lt;/P&gt;&lt;P&gt;dfs.ha.namenodes.HadoopTestHA=nn1,nn2&lt;/P&gt;&lt;P&gt;dfs.namenode.rpc-address.HadoopTestHA.namenode1=hadoop4ind.india:8020&lt;/P&gt;&lt;P&gt;dfs.namenode.rpc-address.HadoopTestHA.namenode2=hadoop5ind.india:8020&lt;/P&gt;&lt;P&gt;dfs.client.failover.proxy.provider.HadoopTestHA=org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 00:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174769#M46266</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-27T00:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: ViewFS use in java application</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174770#M46267</link>
      <description>&lt;P&gt;In your code, you may have to add the following line:&lt;/P&gt;&lt;PRE&gt;conf.set("dfs.nameservices", "HadoopTestHA")&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Dec 2016 03:57:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ViewFS-use-in-java-application/m-p/174770#M46267</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-27T03:57:27Z</dc:date>
    </item>
  </channel>
</rss>

