<?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: I am trying to create HDFS directory using  java . I get java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy exception . in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158964#M41099</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@ssainath&lt;/A&gt;&lt;P&gt;This is usually a pom issue where it's missing some jar. I am assuming that's not your case. How do you run the app? do you run it using "java -jar ....." or "hadoop jar...." command? You should be running it as "hadoop jar.....".&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2016 20:49:52 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2016-09-19T20:49:52Z</dc:date>
    <item>
      <title>I am trying to create HDFS directory using  java . I get java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy exception .</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158963#M41098</link>
      <description>&lt;P&gt;FileSystem.getConfig(config) throws org.apache.hadoop.ipc.RPC.getProxy exception while trying to create HDFS directories.&lt;/P&gt;&lt;P&gt;config.addResource(new Path(String.format("%s/core-site.xml",TestProperties.HDFS_CONF_DIR))); config.addResource(new Path(String.format("%s/hdfs-site.xml",TestProperties.HDFS_CONF_DIR))); &lt;/P&gt;&lt;P&gt;config.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName() ); &lt;/P&gt;&lt;P&gt;config.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName() ); &lt;/P&gt;&lt;P&gt;FileSystem dfs = FileSystem.get(config);&lt;/P&gt;&lt;P&gt;Attached the complete stack trace :&lt;/P&gt;&lt;P&gt;java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy(Ljava/lang/Class;JLjava/net/InetSocketAddress;Lorg/apache/hadoop/security/UserGroupInformation;Lorg/apache/hadoop/conf/Configuration;Ljavax/net/SocketFactory;ILorg/apache/hadoop/io/retry/RetryPolicy;Z)Lorg/apache/hadoop/ipc/VersionedProtocol; at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:135) at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:280) at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:245) at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:100) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2761) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2795) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2777) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:386) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179) at org.apache.atlas.regression.util.HDFSUtil.createDirectory(HDFSUtil.java:46) at org.apache.atlas.regression.tests.FalconIntegrationTest.setUp(FalconIntegrationTest.java:43)&lt;/P&gt;&lt;P&gt;hadoop version in the cluster is 2.7.3 and in pom.xml 2.7.3 . What could be the issue ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 20:22:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158963#M41098</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2016-09-19T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to create HDFS directory using  java . I get java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy exception .</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158964#M41099</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@ssainath&lt;/A&gt;&lt;P&gt;This is usually a pom issue where it's missing some jar. I am assuming that's not your case. How do you run the app? do you run it using "java -jar ....." or "hadoop jar...." command? You should be running it as "hadoop jar.....".&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 20:49:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158964#M41099</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-09-19T20:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to create HDFS directory using  java . I get java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy exception .</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158965#M41100</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; . The code is a part of test . I run it as a maven command (mvn test).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 21:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158965#M41100</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2016-09-19T21:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to create HDFS directory using  java . I get java.lang.NoSuchMethodError: org.apache.hadoop.ipc.RPC.getProxy exception .</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158966#M41101</link>
      <description>&lt;P&gt;Adding this dependency resolved the issue .&lt;/P&gt;&lt;P&gt;&amp;lt;dependency&amp;gt;&lt;/P&gt;&lt;P&gt;
    &amp;lt;groupId&amp;gt;org.apache.hadoop&amp;lt;/groupId&amp;gt; &lt;/P&gt;&lt;P&gt;    &amp;lt;artifactId&amp;gt;hadoop-client&amp;lt;/artifactId&amp;gt; &lt;/P&gt;&lt;P&gt;    &amp;lt;version&amp;gt;2.7.3&amp;lt;/version&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:05:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-trying-to-create-HDFS-directory-using-java-I-get-java/m-p/158966#M41101</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2016-09-20T12:05:44Z</dc:date>
    </item>
  </channel>
</rss>

