title: HDFS INotify and Kerberos authentication in Java client
body: <p>I'm using this example from Internet: <a href="https://github.com/onefoursix/hdfs-inotify-example" rel="nofollow noreferrer">hdfs-inotify-example</a>, build completes with no error but execution ends with error:</p>
  
  <pre><code>Exception in thread "main" org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): SIMPLE authentication is not enabled.  Available:[TOKEN, KERBEROS]
  </code></pre>
  
  <p>Kerberos system is working and I have a fresh Kerberos ticket which works perfectly. So I'm not so sure that this is a problem about Kerberos.
  I also set this env var: </p>
  
  <pre><code>export HADOOP_CONF_DIR=/etc/hadoop/conf  
  </code></pre>
  
  <p>which point to core-site.xml where the security settings, AFAIK, are correct:</p>
  
  <pre><code>  &lt;property&gt;
      &lt;name&gt;hadoop.security.authentication&lt;/name&gt;
    &lt;value&gt;kerberos&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
       &lt;name&gt;hadoop.security.authorization&lt;/name&gt;
    &lt;value&gt;true&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
       &lt;name&gt;hadoop.rpc.protection&lt;/name&gt;
    &lt;value&gt;authentication&lt;/value&gt;
   &lt;/property&gt;
  </code></pre>
  
  <p>What's going wrong? Every suggestion is appreciated ( a lot ).</p>
  
  <p>I'm using <strong>Hadoop 2.6.0-cdh5.10.1</strong></p>