如果是在WINDOWS的ECLIPSE中,运行HBASE的MAPREDUCE,会出现异常,这是由于默认运行MAPREDUCE任务是在本地运行,而由于会建立文件赋权限是按照UNIX的方式进行,因此会报错:
java.lang.RuntimeException: Error while running command to get file permissions : java.io.IOException: Cannot run program "ls": CreateProcess error=2,
<property>
<name>mapred.job.tracker</name> <value>master:9001</value> </property>
<property>
<name>dfs.permissions</name> <value>false</value> </property>
conf.set("tmpjars", "d:/aaa.jar");
System.setProperty("path.separator", ":");
|