新手免责声明。我在Mac上使用自制软件安装了ccm。我能够设置集群并添加第一个节点,但是当我运行ccm start
时出现此错误Traceback (most recent call last):
File "/usr/local/Cellar/ccm/2.1.6/libexec/bin/ccm", line 74, in <module>
cmd.run()
File "/usr/local/Cellar/ccm/2.1.6/libexec/lib/python2.7/site-packages/ccmlib/cmds/cluster_cmds.py", line 583, in run
allow_root=self.options.allow_root) is None:
File "/usr/local/Cellar/ccm/2.1.6/libexec/lib/python2.7/site-packages/ccmlib/cluster.py", line 335, in start
p = node.start(update_pid=False, jvm_args=jvm_args, profile_options=profile_options, verbose=verbose, quiet_start=quiet_start, allow_root=allow_root)
File "/usr/local/Cellar/ccm/2.1.6/libexec/lib/python2.7/site-packages/ccmlib/node.py", line 528, in start
shutil.copy(launch_bin, self.get_bin_dir())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Users/mnj1222/.ccm/streamdemoapi/node1/bin/cassandra'
我知道问题是我的用户没有写入/ Users的权限。只有root有权写入root。所以问题是如何改变路径或以某种方式让ccm开始为我工作?我搜索了堆栈溢出,要么找不到答案,要么不知道要问的正确问题。感谢。