一,搭建大数据集群环境
1.4 Sqoop安装
1.sqoop安装
(1)上传安装包
(2)解压安装包
tar -zxvf sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz -C /export/servers
(3)重命名
mv sqoop-1.4.6.bin__hadoop-2.0.4-alpha sqoop
(4)复制cpsqoop-env-template.sh并修改名字为sqoop-env.sh
cp sqoop-env-template.sh sqoop-env.sh
(5)修改sqoop-env.sh的配置
(6)修改系统环境变量,添加Sqoop环境
vi /etc/profile
(7)上传jdbc驱动包至lib目录下
(8)测试
sqoop list-databases \ -connect jdbc:mysql://localhost:3306/ \ --username root --password 123456 |