当前位置:网站首页>Sqoop installation

Sqoop installation

2022-07-05 02:45:00 A vegetable chicken that is working hard

1. download

2. Move to Linux, decompression , rename

 Insert picture description here

  • tar -xvf sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz
  • mv sqoop-1.4.7.bin__hadoop-2.6.0 sqoop147

3. Configure environment variables

  • vim /etc/profile
JAVA_HOME=/usr/java/jdk1.8.0_152
JRE_HOME=/usr/java/jdk1.8.0_151/jre
HADOOP_HOME=/usr/local/hadoop-2.7.1
ZOOKEEPER_HOME=/usr/local/zookeeper-3.3.6
FLUME_HOME=/usr/local/flume-1.9.0
NGINX_HOME=/usr/local/nginx
TOMCAT_HOME=/usr/local/tomcat-8.5.81
MYSQL8_HOME=/usr/local/mysql8
SQOOP_HOME=/usr/local/sqoop147

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$ZOOKEEPER_HOME/bin:$FLUME_HOME/bin:$NGINX_HOME/sbin:$TOMCAT_HOME/bin:$MYSQL8_HOME/bin:$SQOOP_HOME/bin
export PATH CLASSPATH JAVA_HOME JRE_HOME HADOOP_HOME ZOOKEEPER_HOME FLUME_HOME NGINX_HOME TOMCAT_HOME MYSQL8_HOME SQOOP_HOME
  • source /etc/profile

4. To configure sqoop/conf/sqoop-env.sh

  • cd /usr/local/sqoop147/conf
  • cp sqoop-env-template.sh sqoop-env.sh
     Insert picture description here

5. Import mysql8 Drive file to Sqoop Of lib Next

  • Go to the previously saved drive warehouse to find
     Insert picture description here

6.sqoop.jar Put in Hadoop Of lib Next

 Insert picture description here
 Insert picture description here

7. test sqoop

  • success
     Insert picture description here
  • View warnings
     Insert picture description here
     Insert picture description here
     Insert picture description here
原网站

版权声明
本文为[A vegetable chicken that is working hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050240120672.html