Contents

1 import (sql server -> hive)
2 export (hdfs -> sql server)
3 谿瑚襭



1 import (sql server -> hive) #

sqoop import --connect 'jdbc:sqlserver://192.168.201.36;databaseName=sqlbook;username=襦蠏語;password=れ;currentSchema=dbo' \
 --table Actors -m 1 --hive-import
\ 譴覦蠖

2 export (hdfs -> sql server) #

sqoop export --connect 'jdbc:sqlserver://192.168.201.36;databaseName=sqlbook;username=襦蠏語;password=れ;currentSchema=dbo' \
 --export-dir  /user/hive/warehouse/actors --table actors --input-fields-terminated-by '\001' --direct
* \ 譴覦蠖
* 蠍磯蓋朱 蟲覿 '\001' . 願 覓語 襾轟 蠍一旧 .

3 谿瑚襭 #