How to set hadoop tmp directories using java code -


to change hadoop.tmp.dir command line use

export hadoop_opts="-dhadoop.tmp.dir=/path/" 

but want implement in java code, dont know how it. there commands point hadoop tmp location in java if want specify heap space mapper, use conf.set("mapred.map.java.opts","-xmx1024m"). pointers appreciated.

i tried system.getproperty("hadoop.tmp.dir") check location of tmp directories returned null guess not way set tmp directories in hadoop.

try config.set("hadoop.tmp.dir","/new/path").


Comments