cassandra - cassandra 和 cqlsy 的错误和警告
问题描述
当我运行 cassandra 时,我得到如下输出:
D:\STUDIA\cassandra\apache-cassandra-3.11.9\bin>cassandra
Detected powershell execution permissions. Running with enhanced startup scripts.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
WARNING! Automatic page file configuration detected.
It is recommended that you disable swap when running Cassandra
for performance and stability reasons.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Failed 64-bit check. Re-running to get version from 32-bit
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
WARNING! Detected a power profile other than High Performance.
Performance of this node will suffer.
Modify conf\cassandra.env.ps1 to suppress this warning.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Cassandra 3.0 and later require Java 8u40 or later.
当我输入 cqlsh 时:
D:\STUDIA\cassandra\apache-cassandra-3.11.9\bin>cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(10061, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Nie mo\xbfna nawi\xb9za\xe6 po\xb3\xb9czenia, poniewa\xbf komputer docelowy aktywnie go odmawia")})
它说“无法建立连接,因为目标计算机正在积极拒绝它”
解决方案
该错误表明 Cassandra 没有运行。您需要检查 Cassandrasystem.log
以了解原因。
它可能无法启动或关闭。不查看日志就不可能知道原因。干杯!
推荐阅读
- c++ - Finding greatest power devisor using recursion?
- jquery - 在焦点上显示 div,但在单击页面上的任意位置时关闭
- angular - 另一个文件中的模块“AnotherModule”导入了意外的值“文件中的模块”。请添加@NgModule 注释
- markdown - 如何仅为源格式换行
- sql - 使用 GROUP BY 的情况
- flutter - 计时器正在跳过几分钟,几分钟后无法正常工作
- statistics - 循环遍历列以对每个列执行分析
- java - @Transactional 注释不起作用springboot
- node.js - How to create a HTTPS tunnel on my vps for my twitch bot event listen
- fluentd - Fluentd 将输出插件复制到 https 服务器