Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon ec2 Datastax Opscenter-代理未连接_Amazon Ec2_Cassandra_Datastax_Opscenter - Fatal编程技术网

Amazon ec2 Datastax Opscenter-代理未连接

Amazon ec2 Datastax Opscenter-代理未连接,amazon-ec2,cassandra,datastax,opscenter,Amazon Ec2,Cassandra,Datastax,Opscenter,我在EC2亚马逊机器上设置了Cassandra、OpsCenter和所需的DataStax代理。目前只有一台机器 除了节点列表为空以及Opscenter中的键空间为空之外,所有操作似乎都正常运行。cassandra、datastax和opscenter日志显示没有错误,我仔细地遵循了安装/配置。然后尝试了所有建议的修复方法 我猜问题在于代理和opscenter之间的通信 一段时间后,这些请求失败: etc/cassandra/cassandra.yaml:(简化) etc/opscenter

我在EC2亚马逊机器上设置了Cassandra、OpsCenter和所需的DataStax代理。目前只有一台机器

除了节点列表为空以及Opscenter中的键空间为空之外,所有操作似乎都正常运行。cassandra、datastax和opscenter日志显示没有错误,我仔细地遵循了安装/配置。然后尝试了所有建议的修复方法

我猜问题在于代理和opscenter之间的通信

一段时间后,这些请求失败:

etc/cassandra/cassandra.yaml:(简化)

etc/opscenter/opscenterd.conf:(简化)

var/lib/datastax agent/conf/address.yaml:(简化)

nodetool状态输出:

Note: Ownership information does not include topology; for complete information, specify a keyspace
Datacenter: eu-west_1_cassandra
===============================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address       Load       Tokens  Owns   Host ID                               Rack
UN  1.2.3.4       2.06 MB    256     100.0%  8a121c12-7cbf-4a2a-b111-4ad111c111d8  1a
除了agent.log中重复出现以下行之外,日志中没有显示任何奇怪的内容:

 INFO [install-location-finder] 2015-03-11 15:26:04,690 New JMX connection (127.0.0.1:7199)
 INFO [install-location-finder] 2015-03-11 15:27:04,698 New JMX connection (127.0.0.1:7199)
 INFO [install-location-finder] 2015-03-11 15:28:04,709 New JMX connection (127.0.0.1:7199)
 INFO [install-location-finder] 2015-03-11 15:29:04,716 New JMX connection (127.0.0.1:7199)
 INFO [install-location-finder] 2015-03-11 15:30:04,724 New JMX connection (127.0.0.1:7199)
 INFO [install-location-finder] 2015-03-11 15:31:04,731 New JMX connection (127.0.0.1:7199)
要在此处提供所有信息,请参阅以下日志:


  • 在某些环境中,浏览器和opscenterd之间的持久连接可能会失败。我们正在致力于实现一种在所有环境下都能工作的更健壮的连接,但与此同时,您可以使用以下解决方法:


    我发现工作的最低配置是在下面为address.yaml设置此选项

    stomp_interface: [opscenter-ip]
    stomp_port: 61620
    use_ssl: 0
    cassandra_conf: /etc/cassandra/cassandra.yaml
    jmx_host: [cassandra-node-ip]
    jmx_port: 7199
    

    确保还安装了sysstat。

    OpsCenter是否在代理后运行?不,不是在代理后运行。web接口在公共ip上侦听,而somp接口是私有ip。这不正确吗?这些/tcp故障几乎总是指向与反向代理相关的Web服务器配置。您能否提供访问OpsCenter的url(省略ip)?我认为stomp接口可以是一个私有IP,只要OpsCenter机器可以访问它。结果是AVG antivrus阻止了从浏览器到OpsCenter的传出流量。
    Note: Ownership information does not include topology; for complete information, specify a keyspace
    Datacenter: eu-west_1_cassandra
    ===============================
    Status=Up/Down
    |/ State=Normal/Leaving/Joining/Moving
    --  Address       Load       Tokens  Owns   Host ID                               Rack
    UN  1.2.3.4       2.06 MB    256     100.0%  8a121c12-7cbf-4a2a-b111-4ad111c111d8  1a
    
     INFO [install-location-finder] 2015-03-11 15:26:04,690 New JMX connection (127.0.0.1:7199)
     INFO [install-location-finder] 2015-03-11 15:27:04,698 New JMX connection (127.0.0.1:7199)
     INFO [install-location-finder] 2015-03-11 15:28:04,709 New JMX connection (127.0.0.1:7199)
     INFO [install-location-finder] 2015-03-11 15:29:04,716 New JMX connection (127.0.0.1:7199)
     INFO [install-location-finder] 2015-03-11 15:30:04,724 New JMX connection (127.0.0.1:7199)
     INFO [install-location-finder] 2015-03-11 15:31:04,731 New JMX connection (127.0.0.1:7199)
    
    stomp_interface: [opscenter-ip]
    stomp_port: 61620
    use_ssl: 0
    cassandra_conf: /etc/cassandra/cassandra.yaml
    jmx_host: [cassandra-node-ip]
    jmx_port: 7199