我正在按照文档创建 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 with public IP addresses, so to connect to your newly created Cassandra cluster, you will need to create another resource inside the VNet. This could be an application, or a Virtual Machine with Apache's open-source query tool CQLSH installed. You can use a template to deploy an Ubuntu Virtual Machine. When deployed, use SSH to connect to the machine, and install CQLSH using the below commands
我正在不同的VM中运行Java程序,如何在Java实例VM与Cassandra集群之间建立连接。什么是IP来通信
最佳答案
我也遇到了同样的问题,无法从本地计算机连接到 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/