🌀 技术人生
凡事有交代,件件有着落,事事有回音
Sqoop中脚本打包

1.创建一个.opt文件 touch test.opt;

2.编写Sqoop脚本

vi test.opt;

将下面代码写入脚本文件中

export \ –connect jdbc:mysql://172.17.0.6:3306/ys \ –username root \ –password root \ –table test \ –num-mappers 1 \ –export-dir /user/hive/warehouse/staff_hive \ –input-fields-terminated-by “\t”

3.运行脚本

bin/sqoop –options-file 脚本所在目录


最后修改于 2018-09-13

知识共享许可协议
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。