当前位置:网站首页>CDH6之Sqoop添加数据库驱动
CDH6之Sqoop添加数据库驱动
2022-07-02 09:42:00 【小基基o_O】
场景
CDH6.3.2装好后,默认有Sqoop,而且环境变量都配好了

因为当初装CDH时把
mysql-connector-java.jar放到/usr/share/java/,所以Sqoop默认就能连上MySQL
数据中台不只对接MySQL,还有其它数据源,不一定能直连,需要配置对应的数据库连接器
添加数据库驱动
cd /opt/cloudera/parcels/CDH/lib/sqoop/lib
把数据库连接器放到这,下面以
SAP / HANA为例
1、下载驱动,我是借助DBeaver来下载的
2、找到驱动,并上传
- 因为Sqoop支持直连MySQL,所以连MySQL时不需要配置
--driver
而某些数据库不能直连,连SAP / HANA时还要加上--driver com.sap.db.jdbc.Driver
补充
/opt/cloudera/parcels/CDH是软链,实际是CDH-6.3.2-1.cdh6.3.2.p0.1605554
/usr/bin/sqoop是软链
实际是/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/bin/sqoop
其中内容如下:
实际执行/opt/cloudera/parcels/CDH/lib/sqoop/里的bin/sqoop
边栏推荐
- Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
- Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
- This article takes you to understand the operation of vim
- Maximum profit of jz63 shares
- (C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
- [untitled] how to mount a hard disk in armbian
- Mish shake the new successor of the deep learning relu activation function
- conda常用命令汇总
- Natural language processing series (II) -- building character level language model using RNN
- File operation (detailed!)
猜你喜欢

GGPlot Examples Best Reference

conda常用命令汇总

5g era, learning audio and video development, a super hot audio and video advanced development and learning classic

文件操作(详解!)

Jenkins用户权限管理

PyTorch nn.RNN 参数全解析

XSS labs master shooting range environment construction and 1-6 problem solving ideas

HOW TO ADD P-VALUES TO GGPLOT FACETS

PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing

SVO2系列之深度滤波DepthFilter
随机推荐
YYGH-BUG-04
Those logs in MySQL
Leetcode14 longest public prefix
Industry analysis
Pytorch builds LSTM to realize clothing classification (fashionmnist)
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
Time format display
How to Add P-Values onto Horizontal GGPLOTS
(C language) input a line of characters and count the number of English letters, spaces, numbers and other characters.
PyTorch搭建LSTM实现服装分类(FashionMNIST)
Take you ten days to easily finish the finale of go micro services (distributed transactions)
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
Larvel modify table fields
GGPlot Examples Best Reference
CONDA common command summary
行業的分析
刷题---二叉树--2
Yygh-10-wechat payment
