- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Falcon Passing parameters to existing Oozie Workflow with Hive Action
- Labels:
-
Apache Falcon
-
Apache Oozie
Created ‎09-29-2015 05:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got an existing oozie workflow that has Hive Action. When called through Falcon, its not dynamically substituting the job.properties values. the oozie job fails with the Variable name not found. anyone encountered the scenario ?
Created ‎09-29-2015 08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figured it out. We need to add the properties to the process XML. But the issue is it cannot be done via UI . I has to be done via CLI.
Created ‎09-29-2015 08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figured it out. We need to add the properties to the process XML. But the issue is it cannot be done via UI . I has to be done via CLI.
Created ‎09-30-2015 09:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ganesh - You are right that the process xml has to be changed but are you not able to edit the xml directly via UI ?
Created ‎10-02-2015 04:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you do this, the UI bindings seem to automatically revert the xml as soon as there is any interaction with the form side (e.g. save)
Created ‎10-02-2015 08:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No. If you edit the UI, the properties disappear automatically. Only CLI works. Looks like a bug on the UI.
Created ‎10-14-2015 05:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - Can you create a bug on Falcon UI for this - which version of the UI are you using
Created ‎12-09-2015 06:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, you should be able to pass any properties to the workflow.xml from Falcon's process.xml. Like this:
This would go before the <workflow> tag and after the <output> tags. They're used in the workflow.xml as ${workflowName}, ${hiveDB}, ${queueName}, and so on.
<properties> <property name="workflowName" value="1234-my-workflow" /> <property name="rawDataDirectoryHDFS" value="/path/to/hdfs/files/" /> <property name="hiveDB" value="my_db" /> <property name="jobTracker" value="hdpcluster003.company.com:8050"/> <property name="nameNode" value="hdfs://MYHA:8020"/> <property name="queueName" value="dev"/> </properties>
