Support Questions
Find answers, ask questions, and share your expertise

shell action in oozie

shell action in oozie

Expert Contributor

I am creating a workflow in oozie and need to add a shell action through hue.

My shell command looks like this:

sudo -u test scp user@hostIP:/FILELOCATIONINremoteServer /LOCALfolder

How do I create this in hue?

3 REPLIES 3

Re: shell action in oozie

@Simran Kaur

Which part do you have trouble with? Hue is relatively self explanatory - you should be able to find a button that says create new workflow and then just drag and drop a Shell Action from the actions menu into your workflow. Then in the text of the shell action, just drop in your command

It might be a bit difficult to issue a sudo command if it needs a password, though...

Re: shell action in oozie

Expert Contributor

@Ana Gillan: I have enabled password-less ssh for the user I am sudoing into.How do I go about it now?

Re: shell action in oozie

@Simran Kaur ok perfect - have you created an oozie workflow as I said above? Do you get errors or anything?