- 下载地址:http://mirror.bit.edu.cn/apache/sqoop/
- 解压文件:tar -xzvf sqoop-1.4.5.bin__hadoop-2.0.4-alpha.tar.gz
- 将mysql的jdbc驱动放入$SQOOP_HOME/lib下:mv mysql-connector-java-5.1.27.jar lib/
- cp sqoop-env-template.sh sqoop-env.sh
- tar -zxvf zookeeper-3.5.0-alpha.tar.gz
- tar -zxvf hbase-0.98.7-hadoop2-bin.tar.gz
- 下载并安装accumulo-1.6.1
- 配置sqoop-env.sh如下:
#Set path to where bin/hadoop is available export HADOOP_COMMON_HOME=/usr/local/hadoop-2.5.0 #Set path to where hadoop-*-core.jar is available export HADOOP_MAPRED_HOME=/usr/local/hadoop-2.5.0 #set the path to where bin/hbase is available export HBASE_HOME=<span style="font-family: Arial, Helvetica, sans-serif;">/usr/local/</span><span style="font-family: Arial, Helvetica, sans-serif;">hbase-0.98.7-hadoop2-bin</span> #Set the path to where bin/hive is available export HIVE_HOME=/usr/local/apache-hive-0.13.1-bin #Set the path for where zookeper config dir is export ZOOCFGDIR=/usr/local/zookeeper-3.5.0-alpha
vim /etc/profile export HCAT_HOME=/usr/local/apache-hive-0.13.1-bin/hcatalog export ACCUMULO_HOME=/usr/local/accumulo-1.6.1 export ZOOKEEPER_HOME=/usr/local/zookeeper-3.5.0-alpha export SQOOP_HOME=/usr/local/sqoop-1.4.5.bin__hadoop-2.0.4-alpha export PATH=$PATH:$SQOOP_HOME/bin
sqoop1安装过程
最新推荐文章于 2023-11-29 09:19:14 发布