I am trying to run SSH Commands using Oozie Workflow.xml in Oozie4.0.0:
Workflow.xml
<action name="sshjob">
<ssh xmlns="uri:oozie:ssh-action:0.1">
<host>XXX.XX.XX.XXX</host>
<command>cp</command>
<args>a.txt</args>
<args>b.txt</args>
</ssh>
<ok to="end"/>
<error to="kill"/>
</action>
*But Get this Error:*
AUTH_FAILED: Not able to perform operation [ssh -o
PasswordAuthentication=no -o KbdInteractiveDevices=no -o
StrictHostKeyChecking=no -o ConnectTimeout=20 [email protected] mkdir -p
oozie-oozi/0000067-130808155814753-oozie-oozi-W/sshjob--ssh/ ] |
EErrorStream: Warning: Permanently added 10.121.48.94 (RSA) to the list of
known hosts.
*by hand on the command line in Oozie server host and it worked, but when
launched via Oozie SSH action it failed.*