当前位置:网站首页>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
边栏推荐
- PHP 2D and multidimensional arrays are out of order, PHP_ PHP scrambles a simple example of a two-dimensional array and a multi-dimensional array. The shuffle function in PHP can only scramble one-dim
- conda常用命令汇总
- (C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
- PyTorch中repeat、tile与repeat_interleave的区别
- qt 仪表自定义控件
- Dynamic debugging of multi file program x32dbg
- Pytorch builds LSTM to realize clothing classification (fashionmnist)
- How to Create a Beautiful Plots in R with Summary Statistics Labels
- [visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl
- Implementation of address book (file version)
猜你喜欢

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

PyTorch搭建LSTM实现服装分类(FashionMNIST)

堆(优先级队列)

Depth filter of SvO2 series

Deep understanding of NN in pytorch Embedding

Yygh-9-make an appointment to place an order

How to Visualize Missing Data in R using a Heatmap

【工控老马】西门子PLC Siemens PLC TCP协议详解

BEAUTIFUL GGPLOT VENN DIAGRAM WITH R

Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
随机推荐
K-Means Clustering Visualization in R: Step By Step Guide
输入一个三位的数字,输出它的个位数,十位数、百位数。
动态内存(进阶四)
Leetcode122 the best time to buy and sell stocks II
HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
Filtre de profondeur de la série svo2
[untitled] how to mount a hard disk in armbian
Time format display
How to Easily Create Barplots with Error Bars in R
深入理解P-R曲线、ROC与AUC
倍增 LCA(最近公共祖先)
CONDA common command summary
Larvel modify table fields
YYGH-10-微信支付
YYGH-BUG-05
easyExcel和lombok注解以及swagger常用注解
CDA数据分析——Excel数据处理的常见知识点归纳
Dynamic debugging of multi file program x32dbg
文件操作(详解!)
Leetcode topic [array] -540- single element in an ordered array
