【问题标题】:Problems starting Cassandra with “./bin/cassandra -f”使用“./bin/cassandra -f”启动 Cassandra 时出现问题
【发布时间】:2011-09-05 19:28:11
【问题描述】:

由于某种原因,当我尝试使用以下命令启动 Cassandra 时:

bin/cassandra -f

终端卡住了:

聆听节俭的客户...

正常吗?是不是说 Thrift 也会说话 Thrift?

我正在使用 Ubuntu 服务器。

【问题讨论】:

    标签: ubuntu cassandra thrift ubuntu-server


    【解决方案1】:

    这听起来很正常。 Cassandra -f 不创建交互式会话,它只是在前台运行 Cassandra,但作为服务器进程。

    要与 Cassandra 交互,您可以在另一个终端窗口中启动 CLI 会话。有关如何执行此操作以及可以运行的命令的详细信息,请参阅http://wiki.apache.org/cassandra/CassandraCli

    还有各种编程语言的客户端 - 见http://wiki.apache.org/cassandra/ClientOptions

    另见start cassandra with "./bin/cassandra -f", how to have back the terminal window?

    【讨论】:

    • 或者一开始就省略 -f。告诉 Cassandra 在前台运行(-f)然后立即将其置于后台(&)是没有意义的
    • 我喜欢 -f 选项,因为它不断告诉我服务器终端发生了什么,如果有错误,它会显示给我。
    • 如何在我的系统中重新启动 Cassandra,当我通过 ~/<CASSANDRA_INSTALLATION_FOLDER/bin$ sudo sh cassandra 启动它时,因为每当我在 cassandra.yaml 文件中进行更改时,比如说 ex。更改native_transport_port,这些更改不会在我运行我的应用程序时反映出来,对于可用的解决方案,我必须重新启动我的系统以反映这些更改!在这种情况下,如何从终端重新启动 Cassandra?
    • 如果您直接运行 cassandra(而不是作为服务),那么您需要终止该进程,然后重新启动它。见stackoverflow.com/questions/21433802/…docs.datastax.com/en/cassandra/2.0/cassandra/reference/…
    猜你喜欢
    • 2012-09-03
    • 2011-04-21
    • 2018-08-17
    • 2011-06-23
    • 2012-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-28
    相关资源
    最近更新 更多