Sqoop的下载安装
sqoop下载地址:http://mirror.bit.edu.cn/apache/sqoop/
1、创建sqoop目录
[root@test1 /home]# mkdir sqoop mkdir sqoop
[root@test1 /home]# cd sqoop
2、解压sqoop
[root@test1 /home]# tar -zxvf sqoop-1.4.4.bin__hadoop-2.0.4-alpha.tar.gz -C /home/sqoop/
3、修改配置文件
修改sqoop-env.sh配置文件,添加Hadoop环境
[root@test1 /home]# mv sqoop-1.4.4.bin__hadoop-2.0.4-alpha/ sqoop-1.4.4
[root@test1 /home]# cd sqoop-1.4.4
[root@test1 /home]# cd conf
[root@test1 /home]# cp sqoop-env-template.sh sqoop-env.sh
[root@test1 /home]# vi sqoop-env.sh
#Set path to where bin/hadoop is available
export HADOOP_COMMON_HOME=/home/hadoop/hadoop //hadoop的安装目录
#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/home/hadoop/hadoop //hadoop的安装目录
4、环境变量修改
[root@test1 conf]# vi /etc/profile
export SQOOP_HOME=/home/sqoop/sqoop-1.4.4
export PATH=$PA