gpt4 book ai didi

java - Azure 托管 cassandra 集群公共(public) IP

转载 作者:行者123 更新时间:2023-12-03 02:18:18 25 4
gpt4 key购买 nike

我正在按照文档创建 Azure 托管 Cassandra 集群

https://learn.microsoft.com/en-us/azure/managed-instance-apache-cassandra/create-cluster-portal

它成功创建了所有 3 个节点并分配了私有(private) IP。但通过java程序连接需要公共(public)IP才能与任何接触点连接。

文档也说。

Azure Managed Instance for Apache Cassandra does not create nodes withpublic IP addresses, so to connect to your newly created Cassandracluster, you will need to create another resource inside the VNet.This could be an application, or a Virtual Machine with Apache'sopen-source query tool CQLSH installed. You can use a template todeploy an Ubuntu Virtual Machine. When deployed, use SSH to connect tothe machine, and install CQLSH using the below commands

我正在不同的VM中运行Java程序,如何在Java实例VM与Cassandra集群之间建立连接。什么是IP来通信

enter image description here

最佳答案

我也遇到了同样的问题,无法从本地计算机连接到 Azure Managed Cassandra,根据我的研究,这些是连接到 Azure Managed Cassandra 的方法

1- 尝试使用与 Azure 托管 Cassandra 位于同一虚拟网络中的 VM。

2- 尝试对要在其中使用 Azure 托管 Cassandra 的虚拟网络连接到 Azure 托管 Cassandra 的 VM 的虚拟网络执行 V Net 对等

关于java - Azure 托管 cassandra 集群公共(public) IP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70175783/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com