伪分布式运行mapReduce程序时的一个小错误

伪分布式运行mapReduce程序,出现以下错误:

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.io.IOException: Failed to set permissions of path: \tmp\hadoop-hadoop\mapred\staging\hadoop1613881230\.staging to 0700
Exception in thread "main" java.io.IOException: Failed to set permissions of path: \tmp\hadoop-hadoop\mapred\staging\hadoop1613881230\.staging to 0700

解决方法如下:

conf.set("mapred.job.tracker", "192.168.5.10:9001");

你可能感兴趣的:(mapreduce)