当前位置:网站首页>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
- 成功

- 查看警告



边栏推荐
- Talk about the things that must be paid attention to when interviewing programmers
- Can you really learn 3DMAX modeling by self-study?
- Start the remedial work. Print the contents of the array using the pointer
- Naacl 2021 | contrastive learning sweeping text clustering task
- Design and implementation of community hospital information system
- [Yu Yue education] National Open University spring 2019 0505-22t basic nursing reference questions
- Use the difference between "Chmod a + X" and "Chmod 755" [closed] - difference between using "Chmod a + X" and "Chmod 755" [closed]
- From task Run get return value - getting return value from task Run
- LeetCode --- 1071. Great common divisor of strings problem solving Report
- Last words record
猜你喜欢

Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)

How to make a cool ink screen electronic clock?

Matrixone 0.2.0 is released, and the fastest SQL computing engine is coming

ELK日志分析系统

Chinese natural language processing, medical, legal and other public data sets, sorting and sharing

【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)

Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘

Acwing第 58 场周赛【完结】

【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)

8. Commodity management - commodity classification
随机推荐
Pytest (4) - test case execution sequence
Some query constructors in laravel (2)
100 basic multiple choice questions of C language (with answers) 04
Elfk deployment
Uniapp navigateto jump failure
LeetCode 314. Binary tree vertical order traversal - Binary Tree Series Question 6
Android advanced interview question record in 2022
[daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
Summary and practice of knowledge map construction technology
GFS分布式文件系统
Data guard -- theoretical explanation (III)
LeetCode --- 1071. Great common divisor of strings problem solving Report
Design of kindergarten real-time monitoring and control system
Hmi-32- [motion mode] add light panel and basic information column
Pytorch register_ Hook (operate on gradient grad)
Collection of gmat750 wrong questions
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
2022/02/13
Cut! 39 year old Ali P9, saved 150million