Exception message: ‘/tmp/hadoop-Daniel’ is not recognized as an internal or external command, operable program or batch file

  hadoop, hadoop-yarn, java, mapreduce, windows

I’m working on Hadoop on Windows 10 and
I am getting an error when I am trying run my MapReduce through Hadoop using hadoop jar myjarfile.jar myJavaPackage.myJavaClass /input_dir /output_dir

The main error I am getting is Exception message: '/tmp/hadoop-Daniel' is not recognized as an internal or external command, operable program or batch file.

I thought the cause of this problem would be the fact that my user name has spaces for my first and last name "Daniel XXXXX". I’ve tried changing set HADOOP_IDENT_STRING=Daniel in hadoop-env.cmd as well as adding dfs.user.home.dir.prefix with value /Daniel in hdfs-site.xml

Any help will be appreciated

Source: Windows Questions

LEAVE A COMMENT