七 sqoop 安装

1、准备环境

  sqoop-1.99.7-bin-hadoop200(https://mirror.bit.edu.cn/apache/sqoop/)

2、解压

  tar zxvf  /opt/software/sqoop-1.99.7-bin-hadoop200.tar.gz  -C /opt/module/

3、配置文件

cd /opt/module/sqoop-1.99.7/conf

org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/etc/hadoop/conf/

改为

org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/opt/module/hadoop-3.2.1/etc/hadoop

(此为hadoop 路径)

 

 4、系统环境变量

修改环境变量:vi /etc/profile

#sqoop
export SQOOP_HOME=/opt/module/sqoop-1.99.7
export PATH=$PATH:$SQOOP_HOME/bin

刷新配置:source /etc/profile

上一篇:Sqoop导入数据发生数据倾斜问题 及更好解决


下一篇:Sqoop—— 1.原理及架构