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
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值