sqoop-1.4.6-cdh5.9.0安装

时间:2022-10-25 16:56:19

1.环境准备

hadoop环境

2.安装

tar zxvf sqoop-1.4.6-cdh5.9.0.tar.gz
mv sqoop-1.4.6-cdh5.9.0 /usr/local/

3.修改配置文件

sqoop的配置文件同样存放在/usr/local/sqoop-1.4.6-cdh5.9.0/conf目录下,但是安装过程并不需要修改配置文件,我们需要修改/usr/local/sqoop-1.4.6-cdh5.9.0/bin/目录下的configure-sqoop文件,将其中的Zookeep和HBase的行注释掉,除非集群中已经安装了Zookeep和HBase

cd /usr/local/sqoop-1.4.6-cdh5.9.0/bin

注释掉HCAT_HOME 、ACCUMULO_HOME、ZOOKEEPER_HOME、HBASE_HOME相关的

vim configure-sqoop

sqoop-1.4.6-cdh5.9.0安装

sqoop-1.4.6-cdh5.9.0安装

sqoop-1.4.6-cdh5.9.0安装

sqoop-1.4.6-cdh5.9.0安装

4.添加环境变量

vim /etc/profile
export SQOOP_HOME=/usr/local/sqoop-1.4.6-cdh5.9.0
PATH=$SQOOP_HOME/bin

sqoop-1.4.6-cdh5.9.0安装

source /etc/profile

5.将mysql的jar包复制到sqoop/lib目录下

cp mysql-connector-java-5.1.38-bin.jar /usr/local/sqoop-1.4.6-cdh5.9.0/lib

6.将java-json的jar包复制到sqoop/lib目录下

cp java-json.jar /usr/local/sqoop-1.4.6-cdh5.9.0/lib

7.测试是否安装成功

sqoop help

sqoop-1.4.6-cdh5.9.0安装