Sqoop导入:Sqoop显示导入成功,但HDFS没有数据

时间:2017-02-10 18:08:26

标签: hdfs sqoop

当我尝试:

sqoop import --connect jdbc:mysql://localhost/userdb --username root --password 123 --table equipment

它显示:

INFO mapreduce.ImportJobBase: Transferred 0 bytes in 2.4714 seconds(0 bytes/sec)

INFO mapreduce.ImportJobBase: Retrieved 2 records.

Sqoop import

我认为“在2.4714秒内传输0字节(0字节/秒)”不成立。所以我尝试:hadoop fs -ls。它显示:

drwxr-xr-x  -  hduser supergroup  0  2017-02-11 00:34 equipment  -> (don't have data)

-rw-r--r--  1  hduser supergroup 140 2017-02-10 15:26 input1.txt (have data)

Show data in hdfs

你能帮帮我吗?

0 个答案:

没有答案