当我尝试:
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.
我认为“在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)
你能帮帮我吗?