13.sqoop的安装使用--RDBMS传统数据库和HadoopFile文件的导入导出工具

sqoop的安装使用

RDBMS传统数据库和HadoopFile文件的导入导出工具

1.启动hadoop平台

2.sqoop mysql-->> hive

导入时创建表

bin/sqoop import 
--connect jdbc:mysql://192.1xx.xx.xxx:3306/库名  
--username 账号  -password 密码 --table dw_ytb_org_base 
--create-hive-table 
--fields-terminated-by '01' 
--hive-database test001 
--hive-table dw_ytb_org_base_parquent  
--null-string '\N' 
--null-non-string '' 
--hive-import  
--as-parquetfile 
原文地址:https://www.cnblogs.com/star521/p/13565205.html