hi:

When I use Oozie(5.2.0) Encountered the follow problem.
please give me some advice,Thanks!



Operation Environment:
Apache Oozie 5.2.0 
Apache Hadoop 3.1.1 with Kerberos authentication 

Runing Map-reduce exmaple Action:GET JHS_DELEGATION_TOKEN FAIL
2020-11-09 10:24:27,193 DEBUG JHSCredentials:526 - SERVER[hadoop301] 
USER[hadoop] GROUP[-] TOKEN[] APP[shell-wf] 
JOB[0000000-201109102404406-oozie-hado-W] 
ACTION[0000000-201109102404406-oozie-hado-W@shell-node] exception in 
updateCredentials
java.io.IOException: DestHost:destPort hadoop301:10020 , LocalHost:localPort 
hadoop301.bonc.com/172.16.13.11:0. Failed on local exception: 
java.io.IOException: org.apache.hadoop.security.AccessControlException: Client 
cannot authenticate via:[TOKEN, KERBEROS] 




If modify this part of the code,just shell action will normal 
running,Map-reduce action Still failed.
    org.apache.oozie.action.hadoop.JavaActionExecutor
...
    private void 
addHadoopCredentialPropertiesToActionConf(Map<String, CredentialsProperties&gt; 
credentialsProperties) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOG.info("Adding default credentials 
for action: hdfs, yarn and jhs");
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
addHadoopCredentialProperties(credentialsProperties, 
CredentialsProviderFactory.HDFS);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
addHadoopCredentialProperties(credentialsProperties, 
CredentialsProviderFactory.YARN);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//addHadoopCredentialProperties(credentialsProperties, 
CredentialsProviderFactory.JHS);
&nbsp;&nbsp;&nbsp; }
...

Reply via email to