獲得OpsCenter監控3集羣,現在無法顯示其密鑰空間,因此我無法針對它運行f.ex操作。壓實否則監控似乎罰款對同一集羣的所有代理連接等OpsCenter無法從單個集羣獲取密鑰空間
我覺得這是在opscenterd.log:
2015-08-26 11:03:47+0200 [] ERROR: An error occurred while retrieving all keyspaces. Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/opscenterd/WebServer.py", line 933, in InspectKeyspaceController
File "/usr/lib/python2.6/site-packages/opscenterd/CassandraService.py", line 406, in keyspaces_as_data
File "/usr/lib/python2.6/site-packages/opscenterd/CassandraService.py", line 406, in <genexpr>
File "/usr/lib/python2.6/site-packages/opscenterd/CassandraService.py", line 360, in _to_table_bools
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 963, in export_as_string
ret += "\nApproximate structure, for reference:\n(this should not be used to reproduce this schema)\n\n%s" % self.all_as_cql()
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 969, in all_as_cql
ret = self.as_cql_query(formatted=True)
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 1000, in as_cql_query
columns.append("%s %s%s" % (protect_name(col.name), col.typestring, ' static' if col.is_static else ''))
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 1089, in protect_name
return maybe_escape_name(name)
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 1118, in maybe_escape_name
return escape_name(name)
File "/usr/share/opscenter/lib/py/cassandra/metadata.py", line 1122, in escape_name
return '"%s"' % (name.replace('"', '""'),)
AttributeError: 'NoneType' object has no attribute 'replace'
2015-08-26 11:03:47+0200 [] WARN: InternalError while calling InspectKeyspaceController: An error occurred while retrieving all keyspaces.
雖然集羣它的自我使我這個並沒有什麼在羣集將看到:
[cqlsh 4.1.1 | Cassandra 2.0.16 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
cqlsh> describe keyspaces;
KeyspaceMetadata system OpsCenter system_traces
cqlsh> select * from system.schema_keyspaces;
keyspace_name | durable_writes | strategy_class | strategy_options
------------------+----------------+------------------------------------------------------+----------------------------
KeyspaceMetadata | True | org.apache.cassandra.locator.NetworkTopologyStrategy | {"SPRAWL":"2"}
OpsCenter | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"2"}
system | True | org.apache.cassandra.locator.LocalStrategy | {}
system_traces | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"2"}
(4 rows)
想知道從哪裏開始,其他2個羣集不顯示問題,自上次操作以來未做任何更改。 按節點測試重啓節點。 datastax代理和OPsCenter,但沒有更改,仍然無法從這個集羣中獲取密鑰空間。
提示讚賞,TIA!
您運行的是哪個版本的OpsCenter? – arre
OpsCenter 5.2.0 –