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

标签 java database azure cassandra

我正在按照文档创建 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来通信

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/

相关文章:

java - 从 javascript 调用的 applet 方法中的 return 语句

php - 将输入的信息发送到数据库中的 MySQL 表的 HTML 表单

django - 为 QuerySet 手动选择数据库会覆盖 Django 中的数据库路由器方法吗?

ruby-on-rails - 如何使用 database.yml 在 Rails 应用程序中使用多个数据库

azure - Docker 镜像无法推送到 azure 注册表

azure - ADF 中的管道对齐会自动重新排列

azure - 如何在azure发布管道上创建自定义参数

java - Xuggler 视频到音频转换

java - BouncyCaSTLe 签名 : java. security.InvalidKeyException: key 格式无效

JavaCV检测二进制图像上的验证码字母