当前位置:网站首页>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
边栏推荐
- 测试左移和右移
- Fabric. JS 3 APIs to set canvas width and height
- Leetcode739 daily temperature
- Orb-slam2 data sharing and transmission between different threads
- HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
- Log4j2
- Gaode map test case
- to_ Bytes and from_ Bytes simple example
- Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
- FLESH-DECT(MedIA 2021)——一个material decomposition的观点
猜你喜欢
Larvel modify table fields
mysql表的增删改查(进阶)
【工控老马】西门子PLC Siemens PLC TCP协议详解
Depth filter of SvO2 series
Natural language processing series (III) -- LSTM
测试左移和右移
(C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
基于Arduino和ESP8266的连接手机热点实验(成功)
数据分析 - matplotlib示例代码
From scratch, develop a web office suite (3): mouse events
随机推荐
Dynamic debugging of multi file program x32dbg
lombok常用注解
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Easyexcel and Lombok annotations and commonly used swagger annotations
【工控老马】西门子PLC Siemens PLC TCP协议详解
行业的分析
基于Arduino和ESP8266的连接手机热点实验(成功)
Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
机械臂速成小指南(七):机械臂位姿的描述方法
HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
倍增 LCA(最近公共祖先)
[visual studio 2019] create and import cmake project
ES集群中节点与分片的区别
GGPLOT: HOW TO DISPLAY THE LAST VALUE OF EACH LINE AS LABEL
Analyse de l'industrie
mysql数据库基础
CDA数据分析——Excel数据处理的常见知识点归纳
Leetcode14 longest public prefix
行業的分析
ESP32 Arduino 引入LVGL 碰到的一些问题