Oozie SSH Action

前端 未结 4 1005
情深已故
情深已故 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 02:04

    Whatever quux00 has answered is right. I am just adding few points to that. As the command ssh in the ssh-action will be executed by oozie user, then you will need to set oozie as a bash user.

    To do that you need to change the /etc/passwd file on all the nodes of the cluster. Look for the below value (similar to it) in the /etc/passwd file.

    oozie:x:488:487:Oozie User:/var/lib/oozie:/bin/false 
    

    and change it to

    oozie:x:488:487:Oozie User:/var/lib/oozie:/bin/bash
    

    which will actually make oozie user a bash user. And then proceed with the password-less authentication between the oozie user and any other user that you want on any of the host machine.

    And then try to rerun the oozie job again. And let me know if it works. Hope it helps!!!

提交回复
热议问题