title: Accessing a property entered at the command line in an Oozie job
body: <p>My problem is that I am unsuccessfully finding a property entered from the command line in an Oozie job. This is how I start the oozie job :</p>
  
  <pre><code>$ oozie job -config /home/mruser/conf/mapreduce.properties -Dsample.property.filename=/path/to/file/samplefile.txt -run -oozie http://server:11000/oozie
  </code></pre>
  
  <p>and this is the relevant code snippet from the java program.</p>
  
  <pre><code>Configuration conf = new Configuration();
  String configurationLocation = System.getProperty("oozie.action.conf.xml");
  Path localConfigurationPath = new Path(configurationLocation);
  conf.addResource(localConfigurationPath);
  Job job = new Job(conf, "Sample oozie data load");
  
  Configuration.dumpConfiguration(conf, new BufferedWriter(new OutputStreamWriter(System.out)));
  String samplePropertyFilenameFromJobConfig = job.getConfiguration().get("sample.property.filename");
  String samplePropertyFilenameFromProperty = System.getProperty("sample.property.filename");
  </code></pre>
  
  <p>In the above code <strong>"samplePropertyFilenameFromJobConfig"</strong> and <strong>"samplePropertyFilenameFromProperty"</strong> are both null. Also I could not find my property in the output of <strong>"Configuration.dumpConfiguration()"</strong>.</p>
  
  <p>When I find my job in the Oozie UI however, and I click on the "Job Configuration" tab I see</p>
  
  <pre><code>&lt;property&gt;
    &lt;name&gt;sample.resolution.filename&lt;/name&gt;
    &lt;value&gt;/path/to/file/samplefile.txt&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Please note that when I bring up the specific action that executed and click on the <strong>"Action Configuration"</strong> tab, I do NOT see this configuration.</p>
  
  <p>How do I get to this particular property in a Java program running under Oozie?</p>