一、 解压sqoop.tar压缩包至指定目录
二、配置
- 开启Zookeeper
- 开启集群服务
- 配置文件( sqoop-env.sh ):
#Set path to where bin/hadoop is available export HADOOP_COMMON_HOME=/usr/local/hadoop-2.7.3 #Set path to where hadoop-*-core.jar is available export HADOOP_MAPRED_HOME=/usr/local/hadoop-2.7.3 #set the path to where bin/hbase is available export HBASE_HOME=/usr/local/hbase-1.3.2 #Set the path to where bin/hive is available export HIVE_HOME=/usr/local/hive #Set the path for where zookeper config dir is export ZOOCFGDIR=/usr/local/zookeeper-3.4.6 export ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.6
- 拷贝jdbc驱动到sqoop的lib目录下