-
sqoop-1.4.6-cdh5.13.2.tar下载
资源介绍
sqoopCDH版本
1、sqoop的解压并配置环境变量:
tar -zxvf /bigdata/sqoop-1.4.6-cdh5.13.2.tar.gz -C /usr/local
配置环境变量:
vi /etc/profile
export SQOOP_HOME=/usr/local/sqoop-1.4.6-cdh5.13.2
export PATH=$PATH:$SQOOP_HOME/bin:
重新加载环境变量:
source /etc/profile
which sqoop
2、配置sqoop的环境配置文件:
mv /usr/local/sqoop-1.4.6-cdh5.13.2/conf/sqoop-env.template.sh /usr/local/sqoop-1.4.6-cdh5.13.2/conf/sqoop-env.sh
vi /usr/local/sqoop-1.4.6-cdh5.13.2/conf/sqoop-env.sh
export HADOOP_COMMON_HOME=/usr/local/hadoop-2.6.0-cdh5.13.2
export HADOOP_MAPRED_HOME=/usr/local/hadoop-2.6.0-cdh5.13.2
export HBASE_HOME=/usr/local/hbase-1.2.0-cdh5.13.2
export HIVE_HOME=/usr/local/hive-1.1.0-cdh5.13.2
#export ZOOCFGDIR=
3、将mysql的驱动包copy到sqoop目录中的lib目录下:
cp /bigdata/mysql-connector-java-5.1.32.jar /usr/local/sqoop-1.4.6-cdh5.13.2/lib
4、测试
sqoop version
- 上一篇: 10款精品HTML5模板源代码
- 下一篇: 新闻文本分类libsvm格式数据