Oozie SSH Action

前端 未结 4 1017
情深已故
情深已故 2021-02-09 01:08

Oozie SSH Action Issue:

Issue: We are trying to run few commands on a particular host machine of our cluster. We chose SSH Action for the same. We have been fa

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 01:48

    I just hit a similar problem. I had a case where I could run as USER:

    ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=no -o StrictHostKeyChecking=no -o ConnectTimeout=20 USER@1.2.3.4 mkdir -p oozie-oozi/0000000-131008185935754-oozie-oozi-W/action1--ssh/
    

    by hand on the command line and it worked, but when launched via Oozie as USER it failed.

    The reason, in my case, it failed is that I set up passwordless ssh between USER on the oozie server and USER on the remote machine. What one needs to do is set up passwordless ssh between oozie on the oozie server and USER on the remote machine. In other words, su to oozie on the oozie server and run the above command by hand. If it fails, it will fail in Oozie. If it works, then it should work in Oozie (assuming all else is correct, like dir permissions, etc.)

    Take a look at what user your oozie server is running as:

    ps -ef | grep oozie
    

    Whatever user that is needs passwordless ssh to USER on the remote machine.

提交回复
热议问题