码迷,mamicode.com
首页 > 其他好文 > 详细

IllegalArgumentException: Can not create a Path from an empty string

时间:2020-02-15 19:03:16      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:font   cep   设置   桌面   div   image   rom   inf   mapred   

在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

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

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

技术图片

 

 



 


 

 

IllegalArgumentException: Can not create a Path from an empty string

标签:font   cep   设置   桌面   div   image   rom   inf   mapred   

原文地址:https://www.cnblogs.com/wuyuchuan/p/12312772.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!