1、启动Hadoop集群
2、将Sqoop2的安装包上传到合适的目录中解压
tar -zxvf sqoop-1.99.7-bin-hadoop200.tar.gz
3、修改Hadoop的配置文件core-site.xml
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
4、将JDBC的驱动包放到%SQOOP2_HOME%/server/lib/
下
- MySQL:mysql-connector-java-8.0.20.jar
- Oracle:ojdbc8-21.5.0.0.jar
5、修改conf/sqoop.properties
# Hadoop configuration directory
org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/data/hadoop/hadoop/etc/hadoop/
6、进行验证
bin/sqoop2-tool verify
未完待续……
— 要养成终生学习的习惯 —
标签:01,tar,部署,sqoop,hadoop,Hadoop,Sqoop2 From: https://www.cnblogs.com/houhuilinblogs/p/18086036