sqoop安装非常简单,先把安装包放到 opt/install 中,然后解压到opt/soft中
[root@gree139 ~]# tar -zxf /opt/install/sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz -C /opt/soft/
[root@gree139 ~]# cd /opt/soft
[root@gree139 soft]# cd ./sqoop146/conf/
[root@gree139 conf]# mv sqoop-env-template.sh sqoop-env.sh
[root@gree139 conf]# vi ./sqoop-env.sh
#Set path to where bin/hadoop is available
23 export HADOOP_COMMON_HOME=/opt/soft/hadoop260
24
25 #Set path to where hadoop-*-core.jar is available
26 export HADOOP_MAPRED_HOME=/opt/soft/hadoop260
27
28 #set the path to where bin/hbase is available
29 export Hbase_HOME=/opt/soft/hbase120
30
31 #Set the path to where bin/hive is available
32 export HIVE_HOME=/opt/soft/hive110
33
34 #Set the path for where zookeper config dir is
35 export ZOOCFGDIR=/opt/soft/zookeeper345/conf
复制 hive110/lib/mysql-connector包到lib目录
[root@gree139 conf]# cp /opt/soft/hive110/lib/mysql-connector-java-5.1.25.jar ../lib/
[root@gree139 conf]# vi /etc/profile
#sqoop
export SQOOP_HOME=/opt/soft/sqoop146
export PATH=$PATH:$SQOOP_HOME/bin
然后,source一下
[root@gree139 conf]# source /etc/profile
安装完毕,启动一下
[root@gree139 conf]# sqoop version
乐于奉献共享,帮助你我他!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)