在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
這可能是因為你的本地電腦用戶名是中文造成的
右鍵桌面電腦,點擊管理,會出現如下界面:
點擊本地用戶和組,將中文名字改成英文名字即可