我正在使用Oozie Java Client Api从Oozie读取作业元数据 . 我收到了以下错误 .

System.setProperty("java.security.auth.login.config","/user/abc/conf/jaas.conf");
System.setProperty("java.security.krb5.conf","/user/abc/conf/krb5.conf");
AuthOozieClient wc = new AuthOozieClient(OOZIE_SERVER_URL.toString());
wc.setDebugMode(1);
Properties conf = wc.createConfiguration();
if(System.getenv("HADOOP_TOKEN_FILE_LOCATION")!=null){
conf.setProperty("mapreduce.job.credentials.binary",System.getenv("HADOOP_TOKEN_FILE_LOCATION"));   
}
String yarnAppId = wc.getWorkflowActionInfo(wfActionId).getExternalId();

获得以下错误:Oozie Launcher失败,主类[org.apache.oozie.action.hadoop.JavaMain],main()抛出异常,IO_ERROR:java.io.IOException:连接Oozie服务器时出错 . 否则重试= 1.异常=无法进行身份验证,GSSException:未提供有效凭据(机制级别:无法找到任何Kerberos tgt)