【问题标题】:cassandra upgrade from 0.6 to 0.7.2cassandra 从 0.6 升级到 0.7.2
【发布时间】:2011-07-03 07:33:16
【问题描述】:

我按照 NEWS.txt 中的说明将 cassandra 0.6 升级到 0.7.2。 指令是: 升级过程如下: 1) 在每个 0.6 节点上运行“nodetool drain”。当排水完成时(日志 消息“节点已耗尽”出现),停止进程。 2) 使用将您的 storage-conf.xml 转换为新的 cassandra.yaml “bin/配置转换器”。 3) 重命名任何不符合的键空间或列族名称 到 '^\w+' 正则表达式约定。 4) 使用 0.7 版本启动集群。 5)使用初始化您的 Keyspace 和 ColumnFamily 定义 “bin/schematool 导入”。 你只需要做 这到一个节点

我做了前三个步骤。排水节点,停止 cassandra 0.6,将旧的 storage-conf.xml 转换为 cassandra.yaml。 我使用以下命令启动 cassandra 0.7.2:“bin/cassandra -f”。但它总是抱怨以下错误。我想知道我是否遵循了正确的指示。如果是这样,我该如何解决这个问题?

"致命的配置错误 org.apache.cassandra.config.ConfigurationException: saved_caches_directory 丢失"

【问题讨论】:

  • 你没有在日志前面看到类似“saved_caches_directory must not be the same as the commitlog_directory”之类的错误消息?

标签: upgrade cassandra


【解决方案1】:

saved_caches_directory 的默认位置是 /var/lib/cassandra/saved_caches(来自 wiki)。尝试手动创建(不要忘记用户权限)

【讨论】:

    【解决方案2】:

    我想通了。我应该删除系统目录中的旧 commitLog 和文件。

    【讨论】:

      猜你喜欢
      • 2014-09-25
      • 2015-08-04
      • 2018-08-20
      • 1970-01-01
      • 1970-01-01
      • 2017-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多