您好我以某种方式设法在我的Windows机器上安装ccm。运行命令 - > python ccm start我得到一个错误
UnavailableSocketError("Inet address %s:%s is not available: %s" % (addr, port, msg)) ccmlib.common.UnavailableSocketError: Inet address 127.0.0.1:9042 is not available: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
我的ccm存储在此文件夹---> C:\ ccm \ ccm-master
中以下是我使用CCM的步骤: -
1.C:\Windows\system32>cd C:\ccm\ccm-master
我正在创建一个像这样的新集群
2.C:\ccm\ccm-master>python ccm create test_cluster -v 2.0.9
Current cluster is now: test_cluster
向test_cluster添加2个节点,如下所示
3.C:\ccm\ccm-master>python ccm populate -n 2
我正在检查这样的状态
4.C:\ccm\ccm-master>python ccm status
Cluster: 'test_cluster'
-----------------------
node1: DOWN (Not initialized)
node2: DOWN (Not initialized)
因为两个节点都已关闭,所以我运行此命令来启动集群。
5.C:\ccm\ccm-master>python ccm start
Traceback (most recent call last):
File "ccm", line 72, in <module>
cmd.run()
File "C:\ccm\ccm-master\ccmlib\cmds\cluster_cmds.py", line 492, in run
profile_options=profile_options) is None:
File "C:\ccm\ccm-master\ccmlib\cluster.py", line 249, in start
p = node.start(update_pid=False, jvm_args=jvm_args, profile_options=profile_options)
File "C:\ccm\ccm-master\ccmlib\node.py", line 434, in start
common.check_socket_available(itf)
File "C:\ccm\ccm-master\ccmlib\common.py", line 331, in check_socket_available
raise UnavailableSocketError("Inet address %s:%s is not available: %s" % (addr, port, msg))
ccmlib.common.UnavailableSocketError: Inet address 127.0.0.1:9042 is not available: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
所以有人可以告诉我为什么会出现这个错误?我怎么能让它工作?还有其他任何设置,我忘记了吗?请提供有价值的解决方案 注意 - 我的防火墙已关闭且防病毒已禁用,但仍然出现此错误。