title: Couldn't create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
body: <p>I am trying to read to check if a file exists on HDFS. I am using eclipse IDE and have all the required hadoop jars and hadoop configuration in class path. When i execute the program i see the below exception.</p>
  <pre><code>
      Configuration conf = new Configuration(true);
              conf.addResource(new File(&quot;core-site.xml&quot;).toURI().toURL());
              conf.addResource(new File(&quot;hdfs-site.xml&quot;).toURI().toURL());
              conf.addResource(new File(&quot;mapred-site.xml&quot;).toURI().toURL());
              FileSystem hdfs = FileSystem.get(conf);
              boolean isExists = hdfs.exists(source);
  </code></pre>
  <p>Exception:</p>
  <pre><code>java.io.IOException: Couldn't create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
      at org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.&lt;init&gt;(ConfiguredFailoverProxyProvider.java:93)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  </code></pre>
  <p>Can anyone help me fix this issue?</p>