'Sqoop Import: Sqoop show import success, but HDFS don't have data

When I try:

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

It show:

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

INFO mapreduce.ImportJobBase: Retrieved 2 records.

Sqoop import

I think "Transferred 0 bytes in 2.4714 seconds(0 bytes/sec)" is not true. So I try: hadoop fs -ls. It show:

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

Can you help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source