杜龙少(sdvdxl)

Apache-Sqoop 安装

Word count: 195 / Reading time: 1 min
2016/03/09 Share

准备

首先当然是下载sqoop
sqoop 依赖以下软件,点击链接可以直接下载

hadoop
accumulo
apache-hive
hbase
zookeeper

配置

配置JAVA环境变量

JAVA_HOME=/home/du/software/dev/jdk1.7.0_45

1
2
3
export JAVA_HOME=/usr/install/java  #此处换成自己的jdk目录
export CLASSPATH=.:$JAVA_HOME/jre/lib
export PATH=$PATH:$JAVA_HOME/bin

配置sqoop运行依赖

1
2
3
4
5
6
7
8
export HADOOP_COMMON_HOME=/home/du/software/dev/hadoop-2.6.0
export HADOOP_MAPRED_HOME=$HADOOP_COMMON_HOME/share/hadoop/mapreduce
export ZOOKEEPER_HOME=/home/du/software/dev/zookeeper-3.4.6
export ACCUMULO_HOME=/usr/install/accumulo-1.6.2
export HIVE_HOME=/usr/install/apache-hive-1.0.0-bin
export HCAT_HOME=/usr/install/apache-hive-1.0.0-bin/hcatalog
export HBASE_HOME=/usr/install/hbase-1.0.0
export SQOOP_HOME=/usr/install/sqoop-1.4.4.bin__hadoop-2.0.4-alpha

测试

切换到sqoop目录运行bin/sqoop help 如果打印帮助文档则说明成功

CATALOG
  1. 1. 准备
  2. 2. 配置
    1. 2.1. 配置 JAVA 环境变量
    2. 2.2. 配置 sqoop 运行依赖
  3. 3. 测试