Set hadoop configuration?

One Star

Set hadoop configuration?

I would like to integrate this code in a tJavaMR. (It reads a file from hdfs)
However i don't know how to integrate some Hadoop parameters as for example:
"Configuration conf = context.getConfiguration();"
"FileSystem fs = FileSystem.get(conf);"

Do you know where i can set these parameters please?

Best regards

Here is the code:
Configuration conf = context.getConfiguration();
String file = conf.get("my.own.file", "hdfs://file.xml");
Path path = new Path(file);
FileSystem fs = FileSystem.get(conf);

BufferedReader bread = new BufferedReader(new InputStreamReader(;
StringBuilder sb = new StringBuilder();
String line = bread.readLine();

while (line != null) {
line = bread.readLine();
String xml = sb.toString();

Re: Set hadoop configuration?

Hi djidji,
Of course ,you can do it.
Please to my attachment.