当前位置:网站首页>Cross tenant data integration link connection
Cross tenant data integration link connection
2022-06-23 03:20:00 【User 8613074】
background
In some customer scenarios, you need to use self built by other users MySQL perhaps CDB Data in the example ( Other data source types can also be referred to ), For example, in WeData The development platform needs to import the data of other tenants through the integration task , Or when the data warehouse task needs to import other user data sources , The target data source or... Cannot be directly connected in the development platform schema Or other information , This article provides a way to bypass the network restrictions , So as to obtain the target data information
Get ready
a) Get through to cross tenants CDB Instance and current execution resources (CVM) Where VPC The Internet , You can use peer-to-peer or cloud networking solutions
Reference resources :
Cloud networking https://cloud.tencent.com/document/product/877/30805
Peer to peer connection https://cloud.tencent.com/document/product/553
b) Create or use an existing... Under the current account CVM( Best with computing environments ( Performing computing tasks EMR perhaps CVM, This refers to one or more that need to access the target data source CVM) Located in the same VPC, Otherwise, it is necessary to ensure network interworking )
Install the network port mapping tool and configure
a) Log in to the prepared CVM On , Execute the following command to install and start the port mapping tool
yum install -y socat
nohup /usr/bin/socat TCP4-LISTEN:${LOCAL_PORT},reuseaddr,fork TCP4:${DB_IP}:${DB_PORT} &
notes : among LOCAL_PORT Is the local proxy port , DB_IP and DB_PORT It is the source side that needs proxy DB Information
b) Configure boot up
echo ‘/usr/bin/socat TCP4-LISTEN:11306,reuseaddr,fork TCP4:172.21.16.8:3306 &’ >> /etc/rc.d/rc.local
notes :
1、 If there are multiple data sources that need to be mapped , You need to start multiple socat process , And configure boot up , Otherwise, the data source will be abnormal after the host is restarted .
2、 Before repeating , To delete the previously added port mapping information , Do not add again .
Add data sources
go back to WeData platform , Add a data source using the mapped link information , Examples are as follows :
Link information after selecting the proxy IP+ port
边栏推荐
- JS asynchronous mechanism
- Use micro build to realize search function
- JS event delegation (event agent)
- The difference between code39 and code93
- Configuring multi cluster management using kubectl
- The cloud disk has been offline from the internal machine, but the console uninstall failed
- 2022-01-27: heater. Winter has come. Your task is to design a
- Concept and function of ES6 symbol
- What is the difference between JS undefined and null
- Build a weather forecast applet using a widget
猜你喜欢
![[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]](/img/f1/972a760459a6d599b5681aa634df09.jpg)
[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
![Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]](/img/4b/dd272f98b89a157180bf68570d2763.jpg)
Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]

Analysis on the development of China's graphene industry chain in 2021: with the support of energy conservation and environmental protection policies, the scale of graphene industry will continue to e
![Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]](/img/81/4d3cb059f700dd9243645e64023be7.jpg)
Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]
![Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]](/img/28/ebfc25ec288627706e15a07e6bdb77.jpg)
Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]

Analysis on the development of China's satellite navigation industry chain in 2021: satellite navigation is fully integrated into production and life, and the satellite navigation industry is also boo

Encryption related to returnee of national market supervision public service platform
![Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]](/img/ca/672bfe49c8123da8679b2abeb43a2e.jpg)
Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]
![Analysis of China's integrated circuit industry chain in 2021: huge downstream market demand [figure]](/img/de/d73805aaf4345ca3d2a7baf85aab8d.jpg)
Analysis of China's integrated circuit industry chain in 2021: huge downstream market demand [figure]
![Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]](/img/84/192d152ceb760264b6b555b321f129.jpg)
Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
随机推荐
How to share small programs released by wechat
Chapter IV open source projects and deployment
[SaaS examination certification] apaas_ Tencent Qianfan magic pen
How does native JS get the child elements of the parent element that the current element belongs to
Dynamic filling of drop-down box with micro overlap
CVE-2021-21973 Vmware Vcenter SSRF POC
JS asynchronous mechanism
1 approved, edit again
Bi skills - authority control
Chapter V kubernetes quick start
Reading redis source code (V) master-slave replication and sentinel mechanism
Analysis on the development of duty-free industry in Hainan Province in 2021: the implementation of the new policy makes the duty-free market in Hainan more "prosperous" [figure]
How to batch generate ean14 barcode through TXT file
I Arouter framework analysis
[Alibaba middleware technology series] "Nacos technology" service registration and discovery related principle analysis
How to store easydss version 3.0 video files in other free disks?
Account protection and use scheme
How to generate IATA barcode in batch through TXT file
Initial xxE
Implementing StdevP function of Excel with PHP