java - I get this error in Hadoop, Could not locate executable null\bin\winutils.exe -


i new hadoop system , running following error when attempting file system of hadoop (hdfs) setup hadoop running on ubuntu server 15.05. , java program running on windows using java connect , add files hadoop system.

the error is:

    15/07/14 11:23:30 warn util.nativecodeloader: unable load native-hadoop library platform... using builtin-java classes applicable     15/07/14 11:23:30 error util.shell: failed locate winutils binary in hadoop binary path     java.io.ioexception: not locate executable null\bin\winutils.exe in hadoop binaries. 

with following line reference:

    filesystem hdfs = filesystem.get(new uri("hdfs://10.0.0.1:54310"), configuration); 

update: answered own question after spending 3 hours googling problem, if else experiences problem found answer here

i downloaded winutils.exe , placed in c:/bin/winutils.exe

i added following line project @ start of function

    system.setproperty("hadoop.home.dir", "c:\\winutil\\"); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -