利用sqoop从mysql导入数据到hdfs出错?

0
老师,您好,我现在一直在看你的hadoop视频,现在碰到一个问题,不知道怎么解决?
就是利用sqoop从win10上的mysql导数据到linux下的hdfs出现错误?请老师帮助我一下,谢谢。
 Application application_1489829163713_0002 failed 2 times due to AM Container for appattempt_1489829163713_0002_000002 exited with exitCode: 1
For more detailed output, check application tracking page:http://localhost:18088/cluster ... 2Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1489829163713_0002_02_000001
Exit code: 1
Exception message: /bin/mv: 目标"/nm-local-dir/nmPrivate/application_1489829163713_0002/container_1489829163713_0002_02_000001/container_1489829163713_0002_02_000001.pid" 不是目录
Stack trace: ExitCodeException exitCode=1: /bin/mv: 目标"/nm-local-dir/nmPrivate/application_1489829163713_0002/container_1489829163713_0002_02_000001/container_1489829163713_0002_02_000001.pid" 不是目录
at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
at org.apache.hadoop.util.Shell.run(Shell.java:456)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
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)
Container exited with a non-zero exit code 1
Failing this attempt. Failing the application.
已邀请:
0

regan - run! run! run! happy runner! 我是奔跑的小米~ 2017-03-19 回答

看一下你的sqoop脚本喃
0

lishui88 2017-03-19 回答

我的sqoop脚本是sqoop import --connect jdbc:mysql://192.168.159.1:3306/caocao --username root --password root --table tb_driverbaseinfo -m 1
 

要回复问题请先登录注册