If I am missing something, if you have an object Propertiescontaining all the properties that you need in your M / R task, you just need to write the contents of the object Propertiesto the Hadoop object Configuration, For example, something like this:
Configuration conf = new Configuration();
Properties params = getParameters();
for (Entry<Object, Object> entry : params.entrySet()) {
String propName = (String)entry.getKey();
String propValue = (String)entry.getValue();
conf.set(propName, propValue);
}
M/R Context, Configuration mapper ( map), ( reduce),
public void map(MD5Hash key, OverlapDataWritable value, Context context)
Configuration conf = context.getConfiguration();
String someProperty = conf.get("something");
....
}
, Configuration Context setup cleanup, .
, addResource Configuration, InputStream , , XML, Hadoop XML configs, .
EDIT. , String, : , (, , , Base64, , , ), / - , Configuration.
, HDFS, DistributedCache. , , , .