"Can't get Kerberos realm" on yarn cluster
<p>The situation is as follows:</p>

<p>I'm doing this on Windows 7, with MIT Kerberos client kfw 4.0.1. I'm connecting to a YARN cluster, via OpenVPN, that is secured with Kerberos 5. This cluster has been around for a while and it's been in use by other people, so the error is not likely to be on that side of things. </p>

<p>I can get a ticket via kinit (returns without error). However, once I try to do any of the following commands:</p>

<ul>
<li>hdfs dfs -ls</li>
<li>spark-shell --master yarn</li>
<li>spark-submit anything --master yarn --deploy-mode cluster</li>
<li>essentially any spark or hadoop command on the cluster</li>
</ul>

<p>I get the error: Can't get Kerberos realm (or Unable to locate Kerberos realm).</p>

<p>My krb5.ini file is in C:\ProgramData\MIT\Kerberos5</p>

<p>How can I further troubleshoot this?</p>