Sqoop安装与配置

来源:互联网 发布:ccd对位算法 编辑:程序博客网 时间:2024/06/06 05:32

下载

sqoop-1.4.6 安装包

配置

sqoop-env.sh

#Set path to where bin/hadoop is available 配置Hadoopexport HADOOP_COMMON_HOME=/csh/link/hadoop#Set path to where hadoop-*-core.jar is availableexport HADOOP_MAPRED_HOME=/csh/link/hadoop#set the path to where bin/hbase is available 配置HBaseexport HBASE_HOME=/csh/link/hbase#Set the path to where bin/hive is available 配置Hiveexport HIVE_HOME=/csh/link/hive#Set the path for where zookeper config dir is 配置Zookeeperexport ZOOCFGDIR=/csh/link/zookeeper/conf

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

mysql-connector-java-5.1.31-bin.jar

验证

[root@node1 sqoop]# bin/sqoop-versionWarning: /csh/link/sqoop/../hcatalog does not exist! HCatalog jobs will fail.Please set $HCAT_HOME to the root of your HCatalog installation.Warning: /csh/link/sqoop/../accumulo does not exist! Accumulo imports will fail.Please set $ACCUMULO_HOME to the root of your Accumulo installation.16/04/10 05:31:47 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6Sqoop 1.4.6git commit id c0c5a81723759fa575844a0a1eae8f510fa32c25Compiled by root on Mon Apr 27 14:38:36 CST 2015

个人博客原文:
Sqoop安装与配置

0 0
原创粉丝点击