问题描述:
在idea上运行spark代码,连接kafka时,报java.io.IOException: (null) entry in command string: null chmod 0644 的错误。
原因:
缺失了hadoop.dll文件
解决方法:
将hadoop.dll文件拷贝到 C:\windows\system32 下
下载地址:https://github.com/4ttty/winutils
网盘地址:https://pan.baidu.com/s/1AK35wwhguFYUBD9H9BNcrA 密码:1234
亲测有效!!!