Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Can Oozie jobs execute scripts from the sandbox version 2.5 through DockerSSH port 2222?

avatar
New Member

I am having trouble since my script was trying to call other scripts from the dockerSSH of the sandbox. I would like to leave them there and not have them in the hdfs if possible. Is there a way to have Oozie use those scripts?

1 ACCEPTED SOLUTION

avatar
New Member

Hey, so in order to get it to work; I was doing the mistake of creating the pwdless keygen in root@sandbox.hortonworks.com but I was suppose to be in oozie host in order to get it to work. so to go into the steps sudo su - oozie ssh-keygen -t rsa (for pwdless) just press enter twice then ssh-copy-id 'user'@'ipAddress' once that is done -- test it "ssh 'user'@ipAddress' " **don't remember if it asked for a password for user@ipAddress after ssh-copy-id or when you first connect either way it should be the password you have for the sandbox.**

in case that didn't work, I did add that property you mention @Kuldeep Kulkarni.

View solution in original post

2 REPLIES 2

avatar
Master Guru

@Ashley Galvan

If you are able to do ssh from Oozie server to docker node via 2222 then its possible using oozie's ssh action.

please refer https://community.hortonworks.com/articles/7413/oozie-ssh-action.html

Note - you might need to add oozie.action.ssh.command.port to 2222 in oozie-site.xml in order to get this stuff working.

Please try this and let me know how it goes.

avatar
New Member

Hey, so in order to get it to work; I was doing the mistake of creating the pwdless keygen in root@sandbox.hortonworks.com but I was suppose to be in oozie host in order to get it to work. so to go into the steps sudo su - oozie ssh-keygen -t rsa (for pwdless) just press enter twice then ssh-copy-id 'user'@'ipAddress' once that is done -- test it "ssh 'user'@ipAddress' " **don't remember if it asked for a password for user@ipAddress after ssh-copy-id or when you first connect either way it should be the password you have for the sandbox.**

in case that didn't work, I did add that property you mention @Kuldeep Kulkarni.