[ https://issues.apache.org/jira/browse/CASSANDRA-15724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17083563#comment-17083563 ]
Jon Meredith commented on CASSANDRA-15724: ------------------------------------------ Looks like {{-Dcassandra.config}} is not set, so the server will use the default {{cassandra.yaml}} (in the working directory the cassandra process is started from). One way you could fix that is editing {{jvm.options}} in /etc/cassandra and adjusting this line {code:java} # The directory location of the cassandra.yaml file. -Dcassandra.config=/etc/cassandra/default.conf/cassandra.yaml {code} Personally I would take a copy of the default config and place it there, but I haven't looked at the redhat packaging closely to see how it is played out. The chosen location should be logged during startup, e.g. {code:java} INFO [main] 2020-04-14 13:39:29,141 YamlConfigurationLoader.java:89 - Configuration location: file:/etc/cassandra/cassandra.yaml {code} I suspect this is just a configuration issue rather than a bug. Please let me know how you get on and I'll close this issue if you're able to find and parse the configuration file. > Modify cassandra.yaml and replace the default data location, still data > stored in default location > -------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-15724 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15724 > Project: Cassandra > Issue Type: Bug > Components: Local/SSTable > Reporter: Boopalan > Priority: Normal > > I have created a separated directory (/mnt/) for cassandra data, commit log, > hint and saved_cache. But data are not created on created directory, stored > in default location /var/lib/cassandra/data. > > *Configuration File:* > [root@node-master cassandra]# cat /etc/cassandra/default.conf/cassandra.yaml > | grep /mnt/ > hints_directory: */mnt/*hints > - */mnt/*data > commitlog_directory: */mnt/*commitlog > cdc_raw_directory: */mnt/*cdc_raw > saved_caches_directory: */mnt/*saved_caches > > Please help me to resolve this issue. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org