Cassandra starting issue

后端 未结 3 2079
迷失自我
迷失自我 2021-01-22 06:41

I have problems starting Cassandra. The follow is my terminal output when I try to issue a start command:

root@gestion:~# cassandra -f
Exception in

3条回答
  •  -上瘾入骨i
    2021-01-22 07:01

    Actually the issue is that cassandra could not start up as it is not finding the file named "log4j-server.properties" in its configuration directory, to resolve the issue you have there, no need to reinstall it again but instead simply do the following to resolve the issue:

    1) Download the tarball file from here.

    2) Extract it:

    $ tar -xzvf apache-cassandra-1.2.5.tar.bin.gz 
    

    3) Check where is the configuration path of cassandra. you could get the config path from file named "/usr/share/cassandra/cassandra.in.sh", check out the key named "CASSANDRA_CONF".

    $ gedit /usr/share/cassandra/cassandra.in.sh
    

    4) copy the missing files manually from the extracted package (step 2) from a directory named "conf"

    $ sudo cp extracted_cassandra/conf/cassandra.yaml /etc/cassandra
    
    $ sudo cp extracted_cassandra/conf/log4j-server.properties /etc/cassandra
    

    Hints:

    For more info. how to install cassandra debian package, check this For more info. how to install cassandra from their repository, check this

    If you want to re-install it, simply you could do the following:

    $ sudo apt-get remove cassandra 
    
    $ sudo apt-get install cassandra
    

提交回复
热议问题