如何在Windows上运行ccm(Cassandra集群管理器)命令

toiithl6  于 2022-11-05  发布在  Cassandra
关注(0)|答案(2)|浏览(201)

我已经按照Datastax网站上的说明安装了ccm。-
https://www.datastax.com/dev/blog/ccm-2-0-and-windows

https://pypi.org/project/ccm/3.1.4/
ccm已成功安装,但当我尝试运行它时,我得到错误消息,ccm不是可识别的命令。

c:\..\ccm-3.1.4.tar\dist\ccm-3.1.4>pip install ccm
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting ccm
  Downloading https://files.pythonhosted.org/packages/fc/ab/b51afd466cc4acf2192e230ddb6fd3adb56066f05c7be1852af7bd655068/ccm-3.1.4.tar.gz (72kB)
     |################################| 81kB 640kB/s
Requirement already satisfied: pyYaml in c:\python27\lib\site-packages (from ccm) (5.1)
Requirement already satisfied: six>=1.4.1 in c:\python27\lib\site-packages (from ccm) (1.12.0)
Installing collected packages: ccm
  Running setup.py install for ccm ... done
Successfully installed ccm-3.1.4

C:\...\dist\ccm-3.1.4>ccm create test -v 3.11.3
'ccm' is not recognized as an internal or external command,
operable program or batch file.

我已经在PATH变量中添加了路径C:\Users\manu\Documents\manu\ccm-3.1.4.tar\dist\ccm-3.1.4
如何在Windows上运行ccm

slwdgvem

slwdgvem1#

我必须在PATH变量中设置PYTHON_HOME -> C:\<python_root>\

o2gm4chl

o2gm4chl2#

你可以考虑CCM的替代方法,它不需要依赖python,比如在docker容器中运行cassandra,用docker-compose进行管理。
这里举个例子:https://github.com/digitalis-io/ccc

相关问题