sqoop1安装过程

  1. 下载地址:http://mirror.bit.edu.cn/apache/sqoop/
  2. 解压文件:tar -xzvf sqoop-1.4.5.bin__hadoop-2.0.4-alpha.tar.gz
  3. 将mysql的jdbc驱动放入$SQOOP_HOME/lib下:mv mysql-connector-java-5.1.27.jar lib/
  4. cp sqoop-env-template.sh sqoop-env.sh
  5. tar -zxvf zookeeper-3.5.0-alpha.tar.gz
  6. tar -zxvf hbase-0.98.7-hadoop2-bin.tar.gz
  7. 下载并安装accumulo-1.6.1
  8. 配置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
  9. 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安装过程)