Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How i can import workflow by command line?

avatar
Explorer

Hi! I'm new in hue.
I have a workflow in json format. I need automaticaly import the workflow, without using UI HUE
Hou i can import the workflow to hue? (api? java? sh command?)
May be i can skip hue and import the workflow directly to oozie?

 

1 ACCEPTED SOLUTION

avatar
Explorer

Everybody thank you! ><

I get it by command 

oozie job -oozie http://oozieHost:11000/oozie -config ~/.job.properties -run

View solution in original post

3 REPLIES 3

avatar
Super Guru
Maybe you are after this JIRA: https://issues.cloudera.org/browse/HUE-1450?

I don't think Hue currently supports it through API call, and you might have to import through Hue UI again.

avatar
Explorer

Ohh
I found ./build/env/bin/hue loaddata data.json comand. I think it may be usefull
But i have other problem.
I don't have permissions of logs files, command was faled((
IOError: [Errno 13] Permission denied: '/u01/cloudera/parsels1/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/build/env/bin/logs/loaddata.log'
I am trying make ansible palybook for import workflow to hue, and the ansible playbook will run on machine where i can't give permissions for every file wich i want...
In other words - i can't make
chmod 777 -R <path>/hue/build/env/bin/logs/

 

 

avatar
Explorer

Everybody thank you! ><

I get it by command 

oozie job -oozie http://oozieHost:11000/oozie -config ~/.job.properties -run