当前位置:网站首页>Sqoop安装
Sqoop安装
2022-07-05 02:41:00 【一个正在努力的菜鸡】
1.下载
2.移动到Linux,解压,重命名

- 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.配置环境变量
- 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.配置sqoop/conf/sqoop-env.sh
- cd /usr/local/sqoop147/conf
- cp sqoop-env-template.sh sqoop-env.sh

5.导入mysql8驱动文件到Sqoop的lib下
- 到之前保存的驱动仓库种找

6.sqoop.jar放入Hadoop的lib下


7.测试sqoop
- 成功

- 查看警告



边栏推荐
- Design and practice of kubernetes cluster and application monitoring scheme
- 【微服务|SCG】Filters的33种用法
- Security level
- Moco V2 literature research [self supervised learning]
- Cut! 39 year old Ali P9, saved 150million
- 【附源码】基于知识图谱的智能推荐系统-Sylvie小兔
- Application and Optimization Practice of redis in vivo push platform
- Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘
- 100 basic multiple choice questions of C language (with answers) 04
- spoon插入更新oracle数据库,插了一部分提示报错Assertion botch: negative time
猜你喜欢

Zabbix

A label making navigation bar

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

How to make a cool ink screen electronic clock?

Security level

Avoid material "minefields"! Play with super high conversion rate

spoon插入更新oracle数据库,插了一部分提示报错Assertion botch: negative time

Spark SQL learning bullet 2

Can you really learn 3DMAX modeling by self-study?

Character painting, I use characters to draw a Bing Dwen Dwen
随机推荐
Application and Optimization Practice of redis in vivo push platform
Matrixone 0.2.0 is released, and the fastest SQL computing engine is coming
Application and Optimization Practice of redis in vivo push platform
Zabbix
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Go RPC call
[200 opencv routines] 99 Modified alpha mean filter
Security level
Redis distributed lock, lock code logic
Icu4c 70 source code download and compilation (win10, vs2022)
Exploration of short text analysis in the field of medical and health (I)
A label colorful navigation bar
Avoid material "minefields"! Play with super high conversion rate
【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
Process scheduling and termination
[機緣參悟-38]:鬼穀子-第五飛箝篇 - 警示之一:有一種殺稱為“捧殺”
openresty ngx_lua变量操作
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety