简体   繁体   中英

user logouts and hadoop server shut down automatically when importing data from mysql to hive

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM