阿里云 安装 sqoop 1.99

阿里云 安装 sqoop 1.99_第1张图片
image.png

sqoop还是比较简单 首先官网下载 tar 包 并解压
tar -zxvf sqoop-1.99.7-bin-hadoop200.tar.gz -C /usr/local
重命名
mv sqoop-1.99.7-bin-hadoop200 sqoop

配置环境变量 和 PATH 在 /etc/profile ~/.bashrc
export SQOOP_HOME=/usr/local/sqoop
export PATH=$PATH:$SQOOP_HOME/bin

source /etc/profile
source ~/.bashrc
进入sqoop 根目录 的conf 目录
配置 sqoop的属性 【注意在1.46版本 才有修改配置文件sqoop-env.sh】
vi sqoop.properties 配置 hadoop的目录

Hadoop configuration directory

org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/usr/local/hadoop/etc/hadoop/

然后 把 mysql-connector-java jar包 copy到 server/lib 中

然后 测试 sqoop是否安装成功
sqoop2-tool verify
Sqoop tool executor:
Version: 1.99.7
Revision: 435d5e61b922a32d7bce567fe5fb1a9c0d9b1bbb
Compiled on Tue Jul 19 16:08:27 PDT 2016 by abefine
Running tool: class org.apache.sqoop.tools.tool.VerifyTool
0 [main] INFO org.apache.sqoop.core.SqoopServer - Initializing Sqoop server.
5 [main] INFO org.apache.sqoop.core.PropertiesConfigurationProvider - Starting config file poller thread
Verification was successful.
Tool class org.apache.sqoop.tools.tool.VerifyTool has finished correctly.

或者执行
sqoop2-tool version

1.46版本执行这个

sqoop version

参考 https://sunilmistri.wordpress.com/2015/01/19/installing-sqoop-1-99-4-4/

http://www.jianshu.com/p/ee721f804724
http://www.jianshu.com/p/99301eeedd91
http://www.jianshu.com/p/c8e9fb03f60f sqoop 导入mysql
http://www.jianshu.com/p/bba8b320a6ad sqoop 命令
http://www.jianshu.com/p/98c6c3cf0e1a 安装手册
http://www.jianshu.com/p/bb78ccd0252f Sqoop使用笔记

https://sqoop.apache.org/docs/1.4.6/SqoopUserGuide.html
http://sqoop.apache.org/docs/1.99.7/admin/Installation.html
https://stackoverflow.com/questions/45777771/sqoop-1-99-7-installation-on-centos-7

你可能感兴趣的:(阿里云 安装 sqoop 1.99)