Reply
Highlighted
New Contributor
Posts: 7
Registered: ‎09-19-2017
Accepted Solution

How i can import workflow by command line?

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?

 

Cloudera Employee
Posts: 158
Registered: ‎03-23-2015

Re: How i can import workflow by command line?

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.
New Contributor
Posts: 7
Registered: ‎09-19-2017

Re: How i can import workflow by command line?

[ Edited ]

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/

 

 

New Contributor
Posts: 7
Registered: ‎09-19-2017

Re: How i can import workflow by command line?

Everybody thank you! ><

I get it by command 

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

Announcements