IllegalArgumentException: Can not create a Path from an empty string

在mapreduce程序中

//设置输入和输出路径
FileInputFormat.setInputPaths(job,new Path("E:\\Date\\input"));
FileOutputFormat.setOutputPath(job,new Path("E:\\Date\\out"))
明明路径没有写错,但是却报错
IllegalArgumentException: Can not create a Path from an empty
string

这可能是因为你的本地电脑用户名是中文造成的

右键桌面电脑,点击管理,会出现如下界面:
点击本地用户和组,将中文名字改成英文名字即可

 

 



 


 

 
posted on 2020-02-15 17:21  吴玉川  阅读(2232)  评论(0)    收藏  举报