java.io.FileNotFoundException: File does not exist: hdfs ://sxt/home/sqoop-1.4.6/lib/commons-codec-1

错误显示要去hdfs寻找jar包,但是hdfs上面没有,直接将整个sqoop包上传到hdfs

1.新建home目录

hdfs dfs -mkdir /home

2.上传sqoop到hdfs的home目录下

hdfs dfs -put /home/sqoop-1.4.6 /home/

3.sqoop import --connect jdbc:mysql://node3/test_db --username root --password **** --table sqoop_test

导入成功!可以在NameNode的web界面直接查看

java.io.FileNotFoundException: File does not exist: hdfs ://sxt/home/sqoop-1.4.6/lib/commons-codec-1_第1张图片

也可以运行hadoop命令:hadoop fs -ls 直接查看

谢谢stackoverflow的大神们!

http://stackoverflow.com/questions/28717193/java-io-filenotfoundexception-file-does-not-exist-hdfs-localhost9000-home-h


你可能感兴趣的:(sqoop,hadoop)