bin/sqoop import --connect jdbc:mysql://localhost/user_db --username asdf --password asdf --table hotels --hive-import --hive-home /opt/hive --m 1
Able to import data from mysql to HDFS but could not import to hive directly rather user logout occurs . I use Ubuntu operating system.
您需要使用--hive-table
选项
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.