
我执行Driver时,它会报错 no such filr or directory
我试了将hadoop.dll 和winunits.exe 复制到system 32解决不了
然后我试了以管理员身份运行IDEA,报错变成了 Can not create a Path from an empty string
再试了将用户名改成英文,还是不行😭

我执行Driver时,它会报错 no such filr or directory
我试了将hadoop.dll 和winunits.exe 复制到system 32解决不了
然后我试了以管理员身份运行IDEA,报错变成了 Can not create a Path from an empty string
再试了将用户名改成英文,还是不行😭
因为用户名有空格所以报错
在Driver中加入
System.setProperty("user.name","root");
System.setProperty("HADOOP_USER_NAME","root");