当前位置:网站首页>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
边栏推荐
- lombok常用注解
- Yygh-10-wechat payment
- Dynamic debugging of multi file program x32dbg
- php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
- 测试左移和右移
- easyExcel和lombok注解以及swagger常用注解
- Mish-撼动深度学习ReLU激活函数的新继任者
- B high and beautiful code snippet sharing image generation
- HOW TO ADD P-VALUES TO GGPLOT FACETS
- CMake交叉编译
猜你喜欢

Jenkins voucher management

Applet link generation

Data analysis - Matplotlib sample code

H5, add a mask layer to the page, which is similar to clicking the upper right corner to open it in the browser

YYGH-9-预约下单

Some problems encountered in introducing lvgl into esp32 Arduino

还不会安装WSL 2?看这一篇文章就够了

Mish-撼动深度学习ReLU激活函数的新继任者

FLESH-DECT(MedIA 2021)——一个material decomposition的观点

How to Visualize Missing Data in R using a Heatmap
随机推荐
PyTorch搭建LSTM实现服装分类(FashionMNIST)
全链路压测
FastDateFormat为什么线程安全
自然语言处理系列(三)——LSTM
倍增 LCA(最近公共祖先)
动态内存(进阶四)
[QT] Qt development environment installation (QT version 5.14.2 | QT download | QT installation)
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
Easyexcel and Lombok annotations and commonly used swagger annotations
conda常用命令汇总
自然语言处理系列(二)——使用RNN搭建字符级语言模型
(C language) 3 small Codes: 1+2+3+ · · +100=? And judge whether a year is a leap year or a normal year? And calculate the circumference and area of the circle?
PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing
YYGH-9-预约下单
to_bytes与from_bytes简单示例
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
ES集群中节点与分片的区别
文件操作(详解!)
Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
B high and beautiful code snippet sharing image generation
