sqoop安装

sqoop 安装

  • 解压sqoop-1.4.7.bin__hadoop-2.6.0.tar
  • 解压依赖zookeeper-3.4.6.tar
  • 复制commons-lang-2.6.jar到lib/
  • 复制mysql-connector-java-8.0.20.jar到lib
  • 复制ojdbc6.jar到lib
  • 配置
    cp $SQOOP_HOME/conf/sqoop-env-template.sh $SQOOP_HOME/conf/sqoop-env.sh
    vi $SQOOP_HOME/conf/sqoop-env.sh
#Set path to where bin/hadoop is available
export HADOOP_COMMON_HOME=/home/hadoop/program/hadoop

#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/home/hadoop/program/hadoop

#set the path to where bin/hbase is available
#export HBASE_HOME=

#Set the path to where bin/hive is available
export HIVE_HOME=/home/hadoop/program/hive

#Set the path for where zookeper config dir is
export ZOOCFGDIR=/home/hadoop/program/zookeeper

你可能感兴趣的:(hadoop大数据)