问题一:scala程序报错Error:scalac: IO error while decoding E:\Eclipse\Idea\Spark\src\main\scala\WordCount\AdvUrlCount.scala with UTF-8
Please try specifying another one using the -encoding option
解决方案:在idea右下角修改编码格式改成utf-8
问题二:报错如下
Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate executable
null
\bin\winutils.exe in the Hadoop binaries.
解决方案:需要在本地安装Hadoop,并且配置环境变量,然后重启就好了,不想重启的话直接在代码中加入以下
System.setProperty(