linux python开发环境sql数据迁移到mysql,使用Python将数据从MySQL(内部部署)迁移到COSMOS(SQL api)...

Hello everyone,

I have been assigned to do such tasks, but I am extremely new to this.

Firstly, I want to transform a table into a document type (JSON) using Python, or any better ways as suggested.

Secondly, then I will store those docs in COSMOS DB for further use.

My questions are how can I use Python script to perform such tasks? Can Python scripts be injected to Data Factory for this?

I am really open to all suggestions here.

Thank you in advance,

解决方案Hello nat236919.  Thank you for your question.  There are a number of ways to accomplish your task.

Here are some tutorials for copying data from on premise to the cloud.  Although the tutorials use BLOB storage as a sink in their example, switching to use a different service as a sink is easy.

https://docs.microsoft.com/en-us/azure/data-factory/tutorial-hybrid-copy-portal

https://docs.microsoft.com/en-us/azure/data-factory/tutorial-hybrid-copy-data-tool

If these tutorials satisfy your needs, please mark this as answered.  Otherwise feel free to ask more questions.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
很抱歉,我似乎没有完全理解你的问题。你是想了解如何使用 Studio 3T 连接到 Azure Cosmos DB 的 API for MongoDB 吗?如果是的话,可以参考 Microsoft Docs 上的以下步骤: 1. 登录 Azure 门户,打开 Cosmos DB 资源,选择“连接字符串”选项卡,并复制“Primary Connection String”值。 2. 打开 Studio 3T,单击“Connect”按钮,然后选择“New Connection”。 3. 在“Connection Manager”窗口中,选择“MongoDB”作为“Connection Type”。 4. 在“Connection”选项卡中,将“Connection Name”设置为所需的名称,并将“Server Address”设置为 Cosmos DB 的主机名和端口号(格式为“<hostname>:<port>”)。 5. 在“Authentication”选项卡中,选择“Username/Password”作为身份验证方法,并输入 Cosmos DB 资源的用户名和密码。 6. 在“SSL”选项卡中,选择“Use SSL/TLS”选项,并将“SSL/TLS Protocol”设置为“TLSv1.2”。 7. 在“Advanced”选项卡中,将“Database”设置为 Cosmos DB 资源的数据库名称,并将“Authentication Database”设置为“admin”。 8. 最后,在“Connection String”选项卡中,将复制的“Primary Connection String”值粘贴到“Connection String”字段中,并将其中的“{username}”和“{password}”分别替换为 Cosmos DB 资源的用户名和密码。 9. 单击“Test”按钮测试连接,如果一切正常,单击“Save”按钮保存连接设置。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值