“~/.cassandra”文件夹——它有什么用?
"~/.cassandra" folder - what is it used for?
我想创建一个包含 Cassandra 的自动安装脚本。我之前遇到了一些麻烦,之前我通过删除“~/.cassandra”解决了这个问题。每次我 运行 脚本时自动删除它是否安全?
通常,.whatever 文件夹和文件 are "hidden" by convention and are typically used for storing shell history and things like that。有时它们可用于存储配置,但这是基于每个应用程序的。
.cassandra 文件夹不是 mentioned in the documentation,,所以我怀疑您可以安全地删除它,只要您不介意丢失 shell 历史记录即可。
我不太了解 Cassandra,但我怀疑它用于 shell 历史。你可以随时查看它。
Is it safe to delete it automatically every time I run the script?
安全吗?当然可以,但可能不是个好主意。
.cassandra
目录保存您的 cqlsh
、cli
和 nodetool
会话的命令历史记录。它也是 .cqlshrc
文件的默认位置,该文件(如果创建)allows you to persist various settings 用于您的 cqlsh
会话(用户名、默认密钥空间、时间戳格式等)。
因此,虽然我认为删除它不会对您造成任何伤害,但我不会这样做。
I had some trouble before which I solved before by deleting "~/.cassandra".
你的 cqlsh
历史记录中可能曾有过一些愚蠢的事情,删除整个文件夹可以防止它因解析错误而崩溃(如果我不得不猜测的话)。
我想创建一个包含 Cassandra 的自动安装脚本。我之前遇到了一些麻烦,之前我通过删除“~/.cassandra”解决了这个问题。每次我 运行 脚本时自动删除它是否安全?
通常,.whatever 文件夹和文件 are "hidden" by convention and are typically used for storing shell history and things like that。有时它们可用于存储配置,但这是基于每个应用程序的。
.cassandra 文件夹不是 mentioned in the documentation,,所以我怀疑您可以安全地删除它,只要您不介意丢失 shell 历史记录即可。
我不太了解 Cassandra,但我怀疑它用于 shell 历史。你可以随时查看它。
Is it safe to delete it automatically every time I run the script?
安全吗?当然可以,但可能不是个好主意。
.cassandra
目录保存您的 cqlsh
、cli
和 nodetool
会话的命令历史记录。它也是 .cqlshrc
文件的默认位置,该文件(如果创建)allows you to persist various settings 用于您的 cqlsh
会话(用户名、默认密钥空间、时间戳格式等)。
因此,虽然我认为删除它不会对您造成任何伤害,但我不会这样做。
I had some trouble before which I solved before by deleting "~/.cassandra".
你的 cqlsh
历史记录中可能曾有过一些愚蠢的事情,删除整个文件夹可以防止它因解析错误而崩溃(如果我不得不猜测的话)。