sqoop语句

sqoop import     /* 从外部数据库导入到hdfs   */
--connect jdbc:mysql://master:3306/hive        /*创建数据库连接     代表下一行 */
--username root        /*用户名 */
--password 123456     /*密码*/
--table student     /*mysql表格*/
--fields-terminated-by ','                         /*指定数据分割方式*/
--m 1         /*mapreduce 的个数 */
--delete-target-dir
--direct                   /*快速模式 */
--hive-import                   /*导入hive*/
--hive-database hive           /*hive数据库*/
--hive-table student             /*hive 表*/

原文地址:https://www.cnblogs.com/A-Nan-q/p/14164800.html