Opscenter 5.0:添加群集时出错,无论如何都添加了群集,没有显示群集

我有一个新的Opscenter安装。 在我的“现有的集群”添加到opscenter后,我得到以下错误对话框:

Error creating cluster: Cannot read property 'datasource' of undefined

接着

Error getting basic OpsCenter information: Timeout exceeded

我的集群是一个Ec2MultiRegionSnitch集群,我给了一个外部IP地址。 文件/etc/opscenter/clusters/my_cluster.conf被创build,以下输出在/var/log/opscenter/opscenterd.log中,我不明白为什么Opscenter没有显示我的集群:

2014-07-27 08:51:19+0000 [] INFO: Starting factory <opscenterd.ThriftService.NoReconnectCassandraClientFactory instance at 0x279bbd8> 2014-07-27 08:51:19+0000 [] INFO: Adding new cluster 'my_cluster': {u'jmx': {u'username': u'', u'password': '*****', u'port': u'7199'}, 'kerberos_client_principals': None, 'kerberos': None, u'agents': None, 'kerberos_hostnames': None, 'kerberos_services': None, u'cassandra': {u'username': u'', u'seed_hosts': u'54.xyz', u'api_port': u'9160', u'password': '*****'}} 2014-07-27 08:51:19+0000 [] INFO: Starting new cluster services for my_cluster 2014-07-27 08:51:19+0000 [my_cluster] INFO: Starting services for cluster my_cluster 2014-07-27 08:51:19+0000 [my_cluster] INFO: Loading event plugins 2014-07-27 08:51:19+0000 [my_cluster] INFO: Loading event plugin conf /etc/opscenter/event-plugins/posturl.conf 2014-07-27 08:51:19+0000 [my_cluster] INFO: Successfully loaded event plugin conf /etc/opscenter/event-plugins/posturl.conf 2014-07-27 08:51:19+0000 [my_cluster] INFO: Loading event plugin conf /etc/opscenter/event-plugins/email.conf 2014-07-27 08:51:19+0000 [my_cluster] INFO: Successfully loaded event plugin conf /etc/opscenter/event-plugins/email.conf 2014-07-27 08:51:19+0000 [my_cluster] INFO: Done loading event plugins 2014-07-27 08:51:19+0000 [] INFO: Metric caching enabled with 50 points and 1000 metrics cached 2014-07-27 08:51:19+0000 [] INFO: Starting PushService 2014-07-27 08:51:19+0000 [my_cluster] INFO: Starting CassandraCluster service 2014-07-27 08:51:19+0000 [my_cluster] INFO: agent_config items: {'cassandra_log_location': '/var/log/cassandra/system.log', 'thrift_port': 9160, 'jmx_pass': '*****', 'thrift_ssl_truststore': None, 'rollups86400_ttl': -1, 'api_port': '61621', 'use_ssl': 0, 'rollups7200_ttl': 31536000, 'kerberos_debug': False, 'storage_keyspace': 'OpsCenter', 'thrift_user': '', 'provisioning': 0, 'metrics_ignored_column_families': '', 'metrics_ignored_keyspaces': 'system, system_traces, system_auth, dse_auth, OpsCenter', 'jmx_user': '', 'cassandra_install_location': '', 'kerberos_use_keytab': True, 'rollups300_ttl': 2419200, 'thrift_pass': '*****', 'jmx_port': 7199, 'metrics_ignored_solr_cores': '', 'metrics_enabled': 1, 'kerberos_use_ticket_cache': True, 'thrift_ssl_truststore_type': 'JKS', 'rollups60_ttl': 604800, 'ec2_metadata_api_host': '169.254.169.254', 'kerberos_renew_tgt': True, 'thrift_ssl_truststore_password': '*****'} 2014-07-27 08:51:19+0000 [] INFO: Stopping factory <opscenterd.ThriftService.NoReconnectCassandraClientFactory instance at 0x279bbd8> 2014-07-27 08:51:21+0000 [my_cluster] INFO: Enterprise functionality: False 2014-07-27 08:51:21+0000 [my_cluster] INFO: Cluster Name: my_cluster 2014-07-27 08:51:21+0000 [my_cluster] INFO: Snitch: org.apache.cassandra.locator.Ec2MultiRegionSnitch 2014-07-27 08:51:21+0000 [my_cluster] INFO: Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 2014-07-27 08:51:22+0000 [my_cluster] INFO: Recognizing new node 54.xyz ('1518911012250133') 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 54.xyz has multiple tokens (vnodes). Only one picked for display. 2014-07-27 08:51:22+0000 [my_cluster] INFO: Recognizing new node 50.xyz ('-5708006418797709') 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 50.xyz has multiple tokens (vnodes). Only one picked for display. 2014-07-27 08:51:22+0000 [my_cluster] INFO: Recognizing new node 55.xyz ('1514538487336164') 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 55.xyz has multiple tokens (vnodes). Only one picked for display. 2014-07-27 08:51:22+0000 [my_cluster] INFO: Version: {'search': None, 'jobtracker': None, 'tasktracker': None, 'spark': {u'master': None, u'version': None, u'worker': None}, 'dse': None, 'cassandra': u'2.0.9'} 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 50.xyz changed its mode to normal 2014-07-27 08:51:22+0000 [my_cluster] INFO: Adding Thrift connections to 50.xyz 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 54.xyz changed its mode to normal 2014-07-27 08:51:22+0000 [my_cluster] INFO: Node 55.xyz changed its mode to normal 2014-07-27 08:51:22+0000 [my_cluster] INFO: Adding Thrift connections to 55.xyz 2014-07-27 08:51:22+0000 [my_cluster] INFO: Using 50.xyz as the RPC address for node 50.xyz 2014-07-27 08:51:22+0000 [my_cluster] INFO: Using 55.xyz as the RPC address for node 55.xyz 2014-07-27 08:51:22+0000 [my_cluster] INFO: Using 54.xyz as the RPC address for node 54.xyz 2014-07-27 08:51:22+0000 [my_cluster] INFO: Keyspaces: {'system_traces': CassandraKeyspace(name=system_traces, column_families=[], tables=[u'events', u'sessions'], attributes={'strategy_options': {'replication_factor': '2'}, 'replica_placement_strategy': 'org.apache.cassandra.locator.SimpleStrategy'}), 'system': CassandraKeyspace(name=system, column_families=['IndexInfo', 'NodeIdInfo', 'schema_keyspaces', 'hints'], tables=[u'peers', u'range_xfers', u'schema_keyspaces', u'schema_columns', u'IndexInfo', u'schema_triggers', u'sstable_activity', u'peer_events', u'paxos', u'batchlog', u'NodeIdInfo', u'compaction_history', u'compactions_in_progress', u'schema_columnfamilies', u'local', u'hints'], attributes={'strategy_options': {}, 'replica_placement_strategy': 'org.apache.cassandra.locator.LocalStrategy'}), 'OpsCenter': CassandraKeyspace(name=OpsCenter, column_families=['events_timeline', 'settings', 'rollups60', 'rollups86400', 'bestpractice_results', 'pdps', 'rollups7200', 'events', 'rollups300'], tables=[u'events_timeline', u'settings', u'rollups60', u'rollups86400', u'bestpractice_results', u'pdps', u'rollups7200', u'events', u'rollups300'], attributes={'strategy_options': {'replication_factor': '2'}, 'replica_placement_strategy': 'org.apache.cassandra.locator.SimpleStrategy'})} 2014-07-27 08:51:27+0000 [my_cluster] INFO: Persisting agent configuration to Cassandra 2014-07-27 08:51:27+0000 [my_cluster] INFO: Initializing event storage. 2014-07-27 08:51:27+0000 [my_cluster] INFO: Attempting to load all persisted alert rules 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] WARN: Ignoring scheduled job with type=best-practice, which is only supported with DataStax Enterprise. 2014-07-27 08:51:27+0000 [my_cluster] INFO: Done loading persisted scheduled job descriptions 2014-07-27 08:51:27+0000 [] INFO: Starting to update agents' configuration 2014-07-27 08:51:27+0000 [my_cluster] INFO: Done initializing event storage. 2014-07-27 08:51:27+0000 [my_cluster] INFO: Done loading persisted alert rules 2014-07-27 08:51:27+0000 [my_cluster] INFO: OpsCenter starting up. 2014-07-27 08:51:27+0000 [] INFO: Finished starting new cluster services for my_cluster 2014-07-27 08:51:27+0000 [my_cluster] INFO: Stopping repair service

我是OpsCenter产品的开发人员。 这似乎是一个错误,我们正在调查它(OPSC-3252是内部票号,为您的logging)。 在挖掘此特定path的源代码时,它看起来可能是权限问题。 尝试添加一个群集作为pipe理员用户或禁用身份validation,看看是否会为你工作。