简体   繁体   English

Kairosdb没有运行

[英]Kairosdb not running

i am trying to run kairosdb and cassandra, but kairosdb shutsdown after i get the following error, i believe it is because kairosdb is not able to establish connection with cassandra. 我正在尝试运行kairosdb和cassandra,但是在我收到以下错误后kairosdb关闭,我相信这是因为kairosdb无法与cassandra建立连接。 Cassandra seems to be running fine and i cannot understand why this error is popping: Cassandra似乎运行正常,我无法理解为什么会出现这个错误:

18:33:08.463 [main] ERROR [HConnectionManager.java:71] - Could not start connection pool for host localhost(127.0.0.1):9160 18:33:08.463 [main] ERROR [HConnectionManager.java:71] - 无法启动主机localhost(127.0.0.1)的连接池:9160

Error injecting constructor, org.kairosdb.core.exception.DatastoreException: me.prettyprint.hector.api.exceptions.HectorException: All host pools marked down. 注入构造函数时出错,org.kairosdb.core.exception.DatastoreException:me.prettyprint.hector.api.exceptions.HectorException:标记为关闭的所有主机池。 Retry burden pushed out to client. 重试负担被推送给客户。 ... ...

Also, i noticed that kairos_cache ix not created which is mentioned in this link. 另外,我注意到没有创建kairos_cache ix,这个链接中提到了 I changed the permissions of the /tmp/ folder to user from root, still it is not working. 我从/ root将/ tmp /文件夹的权限更改为用户,但仍无法正常工作。

Open your cassandra.yaml file and do the following: 打开cassandra.yaml文件并执行以下操作:

  • Check if you have the apache thrift rpc server enabled and if it is listening on the port Kairos is listening. 检查您是否启用了apache thrift rpc服务器,以及它是否正在侦听Kairos正在侦听的端口。

start_rpc: true rpc_address: localhost rpc_port: 9160

The message is because KairosDB cannot reach Cassandra. 消息是因为KairosDB无法访问Cassandra。

Probably your cassandra DB is not listening on 127.0.0.1 (loopback). 可能你的cassandra DB没有监听127.0.0.1(环回)。

Check your cassandra.yaml file, probably it is using the IP Adress of your network interface as listen_adress and not 127.0.0.1. 检查你的cassandra.yaml文件,可能它使用你的网络接口的IP地址作为listen_adress而不是127.0.0.1。

Cassandra only listens on one address, by default it is the local host name of IP. Cassandra只侦听一个地址,默认情况下它是IP的本地主机名。

Otrherwise you may check your port just in case, but the ListenAddress is often the source of this problem. Otrherwise你可以检查你的端口以防万一,但ListenAddress通常是这个问题的根源。

I had the same issue with a docker deployment of cassandra with KairosDB. 我对使用KairosDB的cassandra的docker部署遇到了同样的问题。

As @JVasques said in his answer, the parameter "start_rpc" is disabled (set to false) in the newest cassandra.yaml file as default. 正如@JVasques在他的回答中所说,默认情况下,最新的cassandra.yaml文件中的参数“start_rpc”被禁用(设置为false)。

If anyone needs a default/standard YAML configuration file, it is recommended to download the latest release or the version you are using. 如果任何人需要默认/标准YAML配置文件,建议下载最新版本或您正在使用的版本。 You can download it from the official cassandra package on the Apache Website: http://cassandra.apache.org/download/ It is located under conf/cassandra.yaml 您可以从Apache网站上的官方cassandra软件包下载它: http//cassandra.apache.org/download/它位于conf/cassandra.yaml

Beware: Configuration files of older cassandra versions might not be compatible! 注意:较旧的cassandra版本的配置文件可能不兼容!

It worked with the following settings in Docker for me: 它对我来说在Docker中使用了以下设置:

start_rpc: true
rpc_address: 0.0.0.0
rpc_port: 9160

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM