Exception message: CreateSymbolicLink error (1314): ???????????
window下运行任务报错:Exception message: CreateSymbolicLink error (1314): ???????????
报错信息如下:
Diagnostics: Exception from container-launch.
Container id: container_1655531508531_0001_02_000001
Exit code: 1
Exception message: CreateSymbolicLink error (1314): ???????????
Stack trace: ExitCodeException exitCode=1: CreateSymbolicLink error (1314): ???????????
at org.apache.hadoop.util.Shell.runCommand(Shell.java:575)
at org.apache.hadoop.util.Shell.run(Shell.java:478)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:766)
at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Shell output: 移动了 1 个文件。
解决方案
使用管理员身份打开CMD,执行start-yarn.cmd脚本,启动Yarn服务即可。
提交mapreduce任务:
bin\hadoop jar share\hadoop\mapreduce\hadoop-mapreduce-examples-2.6.5.jar pi 12 3