cdh中oozie配置org.apache.oozie.action.ActionExecutorException以及时区问题

org.apache.oozie.action.ActionExecutorException: AUTH_FAILED: Not able to perform operation [ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=no -o StrictHostKeyChecking=no -o ConnectTimeout=20 hadoop@dwpro-name1  mkdir -p oozie-oozi/0000004-201015144247965-oozie-oozi-W/ssh-4911--ssh/ ] | ErrorStream: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

    at org.apache.oozie.action.ssh.SshActionExecutor.execute(SshActionExecutor.java:615)
    at org.apache.oozie.action.ssh.SshActionExecutor.start(SshActionExecutor.java:219)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:232)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
    at org.apache.oozie.command.XCommand.call(XCommand.java:286)
    at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:332)
    at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:261)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:179)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Not able to perform operation [ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=no -o StrictHostKeyChecking=no -o ConnectTimeout=20 hadoop@dwpro-name1  mkdir -p oozie-oozi/0000004-201015144247965-oozie-oozi-W/ssh-4911--ssh/ ] | ErrorStream: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

1. 错误问题解决方法

vi /etc/passwd
oozie:x:973:967:Oozie User:/var/lib/oozie:/bin/false
改为oozie:x:973:967:Oozie User:/var/lib/oozie:/bin/bash 
然后就可以执行:su - oozie啦
ssh-keygen
生成秘钥:
su - hadoop
cat /var/lib/oozie/.ssh/id_rsa.pub >> /home/hadoop/.ssh/authorized_keys
验证免密登录:
su - oozie 
ssh hadoop@dwpro-name1就可以啦!

2. 时区问题

这个在oozie的配置最后页末尾。

原文地址:https://www.cnblogs.com/30go/p/13821193.html