I'm newbie in the Ubutu(linux) + Cassandra.
I tested Cassandra on my ubuntu machine with OpenJdk. There are some nice articles to explain how to install a Cassandra on ubuntu, so I could do that. I changed some config values and checked it run correctly.
And, I decided to remove the cassandra and reinstall for getting the clean one.
[What-I-Do]
I uninstall Cassandra with following steps:
uninstall Cassandra using apt-get
apt-get remove cassandra
remove data/log/ directories
rm -rf /var/lib/cassandra
rm -rf /var/log/cassandra
rm -rf /etc/cassandra
After that I tried to install new cassandra
apt-get install cassandra
[Error-Message]
sudo cassandra -f
Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.RuntimeException: Couldn't figure out log4j configuration: log4j-server.properties
at org.apache.cassandra.service.AbstractCassandraDaemon.initLog4j(AbstractCassandraDaemon.java:86)
at org.apache.cassandra.thrift.CassandraDaemon.(CassandraDaemon.java:62) Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon. Program will exit.`
and there are no files under "/var/lib/cassandra", "/var/log/cassandra" and "/etc/cassandra" directories OTL.
I want to know, what I miss.