String path
) throws IOException {
if (!isSecurityEnabled())
return;
keytabFile = path;
<BUG>keytabPrincipal = user;
try {</BUG>
login =
<BUG>new LoginContext(HadoopConfiguration.KEYTAB_KERBEROS_CONFIG_NAME);
</BUG>
login.login();

String path
) throws IOException {
if (!isSecurityEnabled())
return;
keytabFile = path;
keytabPrincipal = user;
Subject subject = new Subject();
LoginContext login;
try {
login =
new LoginContext(HadoopConfiguration.KEYTAB_KERBEROS_CONFIG_NAME, subject);
