How to pass parameters to Hadoop ToolRunner (or any MapReduce Action) from Oozie workflow

Chaos

From the command line, parameters can be passed to ToolRunner as follows:

hadoop jar myJar.jar com.Main -Dprop1=prop1value -Dprop2=prop2value

I want to invoke my MapReduce job as part of a MapReduce action from Oozie.

I tried defining properties in the workflow as follows:

<property>
     <name>param1</name>
     <value>Hello World</value>
</property>

EDIT This is how I'm trying to read the parameters from my MapReduce job:

Job job = new Job();
Configuration conf = job.getConfiguration();
System.out.println(conf.get("param1"));

But I'm unable to read it from the mapreduce program.

Although My question says passing parameters to ToolRunner, I don't think this is specific to toolrunner. It is general to a MapReduce job invoked using an Oozie MapReduce action. Any help will be appreciated!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to pass Hive set parameters in oozie workflow

From Dev

How can I run MapReduce ToolRunner jobs with Oozie?

From Dev

MapReduce oozie workflow using Hue

From Dev

Hadoop Oozie Workflow not getting Coordinator properties

From Dev

How to copy data from HDFS to Local FS using oozie workflow?

From Dev

How do I pass arguments to an Oozie action using oozie.launcher.action.main.class?

From Dev

Case conversion from oozie workflow

From Dev

Need to pass Variable from Shell Action to Oozie Shell using Hive

From Dev

Not able to run oozie workflow with java action

From Dev

Not able to run oozie workflow with java action

From Dev

How to pass parameters to a controller action method from a jquery callback?

From Java

How to pass parameters to action in Flutter

From Dev

How to pass parameters to the custom action?

From Dev

How to deploy code from an edge node to an hadoop cluster to schedule it with Oozie?

From Dev

How to trigger ServiceNow workflow from ui action?

From Dev

How to trigger ServiceNow workflow from ui action?

From Dev

Sitecore workflow publish action parameters

From Dev

Can a MapReduce job in Oozie read from a file?

From Dev

Pass some parameters from the action to a form view

From Dev

How to run a Hive command from within Oozie Java action?

From Dev

How to use a Oozie job property in a Oozie workflow EL function?

From Java

How to pass different value of parameters for each Step in Argo Workflow DAG

From Dev

how to use logical operators in OOZIE workflow

From Dev

How to add a classpath in a workflow of Oozie on Cloudera

From Dev

How to pass multiple parameters in Url.Action()

From Dev

how to trigger an Oozie workflow when previous workflow completes

From Dev

How can I use Oozie workflow configuration property in the workflow itself?

From Dev

how to create output files from hadoop mapreduce program?

From Dev

How to pass parameters with the action Helper of Ember.js inside an input field from an Handlebars template?

Related Related

  1. 1

    How to pass Hive set parameters in oozie workflow

  2. 2

    How can I run MapReduce ToolRunner jobs with Oozie?

  3. 3

    MapReduce oozie workflow using Hue

  4. 4

    Hadoop Oozie Workflow not getting Coordinator properties

  5. 5

    How to copy data from HDFS to Local FS using oozie workflow?

  6. 6

    How do I pass arguments to an Oozie action using oozie.launcher.action.main.class?

  7. 7

    Case conversion from oozie workflow

  8. 8

    Need to pass Variable from Shell Action to Oozie Shell using Hive

  9. 9

    Not able to run oozie workflow with java action

  10. 10

    Not able to run oozie workflow with java action

  11. 11

    How to pass parameters to a controller action method from a jquery callback?

  12. 12

    How to pass parameters to action in Flutter

  13. 13

    How to pass parameters to the custom action?

  14. 14

    How to deploy code from an edge node to an hadoop cluster to schedule it with Oozie?

  15. 15

    How to trigger ServiceNow workflow from ui action?

  16. 16

    How to trigger ServiceNow workflow from ui action?

  17. 17

    Sitecore workflow publish action parameters

  18. 18

    Can a MapReduce job in Oozie read from a file?

  19. 19

    Pass some parameters from the action to a form view

  20. 20

    How to run a Hive command from within Oozie Java action?

  21. 21

    How to use a Oozie job property in a Oozie workflow EL function?

  22. 22

    How to pass different value of parameters for each Step in Argo Workflow DAG

  23. 23

    how to use logical operators in OOZIE workflow

  24. 24

    How to add a classpath in a workflow of Oozie on Cloudera

  25. 25

    How to pass multiple parameters in Url.Action()

  26. 26

    how to trigger an Oozie workflow when previous workflow completes

  27. 27

    How can I use Oozie workflow configuration property in the workflow itself?

  28. 28

    how to create output files from hadoop mapreduce program?

  29. 29

    How to pass parameters with the action Helper of Ember.js inside an input field from an Handlebars template?

HotTag

Archive