本文介绍了如何重新启动apache cassandra 2.0.4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在运行的节点Cassandra 2.0.4,我需要在配置更改后重新启动它,我厌倦了通过引用但不起作用

I have one node Cassandra 2.0.4 up and running i need to restart it after configuration change i tired restarting it by referring this but not working

>cassandra/bin/cassandra -p new
 Error: Exception thrown by the agent :java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
    java.net.BindException: Address already in use
 >kill $(cat new)
-bash: kill: (10404) - No such process

我确实参考

到现在,当我不得不重新启动它时,我正在通过重新启动运行Cassandra的服务器来做。

Till now when I have to restart it, I am doing by restarting server on which Cassandra is running.

请告诉我重新启动Apache Cassandra的正确方法是什么2.0.4

Please tell me what is the proper way to restart apache Cassandra 2.0.4

推荐答案

如果这只是一个过程而不是一项服务,则可以执行以下操作

If it's only a process and not a service you could do something like

$ ps auwx | grep cassandra
$ sudo kill <pid>

其中< pid> 是您的意思从 ps auwx获得| grep cassandra

这将停止该过程。然后,您必须重新启动

This will stop the process. Then you have to start it again

$ cd <install_location>
$ bin/cassandra

其中< install_location> 是您安装cassandra的位置

where <install_location> is where you have installed cassandra

如果是一项服务: service cassandra restart

这篇关于如何重新启动apache cassandra 2.0.4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 17:40