三多
技术领域的难题往往代表着经典 而我只是一个伪技术宅!!!

下载

sqoop-1.4.5 安装包

配置

sqoop-env.sh

#Set path to where bin/hadoop is available 配置Hadoop

export HADOOP_COMMON_HOME=

#Set path to where hadoop-*-core.jar is available

export HADOOP_MAPRED_HOME=

#set the path to where bin/hbase is available 配置HBase

export HBASE_HOME=

#Set the path to where bin/hive is available 配置Hive

export HIVE_HOME=

#Set the path for where zookeper config dir is 配置Zookeeper

export ZOOCFGDIR=

注意:具体路径自行配置

添加MySQL连接jar包到$SQOOP_HOME/lib目录中

Mysql连接包下载

验证

[hadoop@hadoop sqoop-1.4.5.bin__hadoop-2.0.4-alpha]$ bin/sqoop-version
Warning: /home/hadoop/sqoop-1.4.5.bin__hadoop-2.0.4-alpha/bin/../../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /home/hadoop/sqoop-1.4.5.bin__hadoop-2.0.4-alpha/bin/../../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/08/25 15:06:25 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5
Sqoop 1.4.5
git commit id 5b34accaca7de251fc91161733f906af2eddbe83
Compiled by abe on Fri Aug  1 11:19:26 PDT 2014

posted on 2017-08-25 15:25  SanDuo1314  阅读(851)  评论(0编辑  收藏  举报