Using Oozie ssh action with private key

对着背影说爱祢 提交于 2019-12-24 04:15:30

问题


I am trying to run a workflow in cloudera cluster using oozie ssh action. What I need is to run my scripts only from specific node. For this purposes I have found next solution - oozie ssh action. Configuring this workflow, I have faced with a problem that in configs, oozie takes only "user" and "host name" while I also need to use private ssh key for ssh connection.

Is it possible to perform oozie ssh action with private key? Or maybe there are some other variants, how to run oozie workflow from specific node?


回答1:


  1. switch to a Shell Action
  2. create a very simple shell script invoking ssh client w/ private key, the key file being expected in the current working dir
  3. upload the shell and the key to HDFS -- using adequate permissions to make the key as "private" as you can
  4. tell Oozie to download both the script and the key at exec time, in the container CWD, with two <file> instructions
  5. ...
  6. profit :-)


来源:https://stackoverflow.com/questions/32249837/using-oozie-ssh-action-with-private-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!