zoukankan      html  css  js  c++  java
  • 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的配置最后页末尾。

  • 相关阅读:
    《编写可维护的JavaScript》读书笔记
    第十四天:还是看代码
    第十三天:过了一遍rt_thread,看代码架构
    第十二天:rt_thread系统
    第十一天:要做stm32了
    第十天:没太专注工作
    第九天:rtc问题查找与测试
    第八天:android编译环境搭建
    第七天:终于看到板子了
    第六天和周末:感慨下这周
  • 原文地址:https://www.cnblogs.com/30go/p/13821193.html
Copyright © 2011-2022 走看看