Sometimes it is desirable for a Hadoop job to be configurable without recompiling/rewriting the source. This can be achieved:
/net/projects/hadoop/bin/hadoop job.jar -Dname1=value1 -Dname2=value2 … input output.job.getConfiguration.get(“name”, default) to get the value as String, or use one of getInt, getLong, getFloat, getRange, getFile, getStrings, ….copy_environment => ['VARIABLE1', 'VARIABLE2', … ].VARIABLE1=value1 VARIABLE2=value2 … perl script.pl input output.$ENV{VARIABLE1} to access the value.