I am upgrading DSE cassndra from 4.8.16 to 5.0.15 , but when i execute nodetool upgradesstables I am getting below error:
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)
nodetoolis unable to act on the/var/lib/cassandra/commitlogdirectory. What are the permissions of/var/lib/cassandra/commitlog? - Jim Wrightnodetoolis clearly using/var/lib/cassandra/commitlog. What is the value ofcommitlog_directoryincassandra.yaml? - Jim Wrightnodetoolisn't using yourcassandra.yaml. Perhaps you've updated the wrong file? - Jim Wright