升级表在DSE Cassandra升级中不起作用

时间:2018-11-20 13:18:39

标签: cassandra datastax datastax-enterprise cassandra-3.0

我将DSE cassndra从4.8.16升级到5.0.15,但是当我执行nodetool upgradesstables时,我得到了以下错误:

error: commitlog directory '/var/lib/cassandra/commitlog' or, if it does not already exist, an existing parent directory of it, is not readable and writable for the DSE. Check file system and configuration.
-- StackTrace --
org.apache.cassandra.exceptions.ConfigurationException: commitlog directory '/var/lib/cassandra/commitlog' or, if it does not already exist, an existing parent directory of it, is not readable and writable for the DSE. Check file system and configuration.
        at org.apache.cassandra.config.DatabaseDescriptor.resolveAndCheckDirectory(DatabaseDescriptor.java:798)
        at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:535)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:131)
        at org.apache.cassandra.tools.NodeProbe.checkJobs(NodeProbe.java:274)
        at org.apache.cassandra.tools.NodeProbe.upgradeSSTables(NodeProbe.java:328)
        at org.apache.cassandra.tools.nodetool.UpgradeSSTable.execute(UpgradeSSTable.java:54)
        at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:253)
        at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:167)

2 个答案:

答案 0 :(得分:0)

我遇到了问题,我的安装目录和软件包目录不同。我从软件包目录运行命令,这就是为什么它选择错误路径的原因。为了解决这个问题,我将属性“ CASSANDRA_CONF”设置为正确的路径,从而解决了该问题。

答案 1 :(得分:0)

提交与新版本不兼容的先前版本的日志。 要刷新旧安装的提交日志,请使用

nodetool -h hostname drain

还要在cassandra.yml中检查提交日志目录路径。