Hawkular: Could not connect to Cassandra DB on LocalHost - cassandra

Im tring t build up an Hawkular Server in Windows 7 - unfortunately this server works with a Cassandra DB - ive installed the newest version and in the starting process of Hawkular I got following error:
14:57:20,102 ERROR [org.hawkular.alerts.bus.log] (Thread-195 (ActiveMQ-client-global-threads-205387390)) HAWKALERT210009: Error accesing to DefinitionsService. Description: [java.lang.RuntimeException: Cassandra session is null]
14:57:19,843 WARN [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200004: [18] Retrying connecting to Cassandra cluster in [2]s...
14:57:19,839 ERROR [org.hawkular.alerts.engine.log] (EE-ManagedExecutorService-default-Thread-10) HAWKALERT220009: Definitions Service error in [Triggers]. Msg: [java.lang.RuntimeException: Cassandra session is null]
14:57:20,354 ERROR [org.hawkular.alerts.bus.log] (Thread-190 (ActiveMQ-client-global-threads-205387390)) HAWKALERT210009: Error accesing to DefinitionsService. Description: [com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for qu
ery failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))]
14:57:22,104 INFO [org.hawkular.inventory.impl.tinkerpop] (ServerService Thread Pool -- 111) HAWKINV001000: Using graph provider: org.hawkular.inventory.impl.tinkerpop.provider.TitanProvider
14:57:22,360 INFO [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200002: Initializing metrics service
14:57:22,396 WARN [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200003: Could not connect to Cassandra cluster - assuming its not up yet: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.d
atastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
14:57:22,397 WARN [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200004: [19] Retrying connecting to Cassandra cluster in [3]s...
14:57:23,102 WARN [org.hawkular.inventory.cdi] (ServerService Thread Pool -- 111) HAWKINV003501: Inventory backend failed to initialize in an attempt 10 of 15 with message: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.th
rift.CassandraThriftStoreManager.
14:57:25,398 INFO [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200002: Initializing metrics service
14:57:25,438 WARN [org.hawkular.metrics.api.jaxrs.MetricsServiceLifecycle] (metricsservice-lifecycle-thread) HAWKMETRICS200003: Could not connect to Cassandra cluster - assuming its not up yet: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.d
atastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
Cassandra DB is online and I can connect to localhost:9160 with the Cassandra CQL Shell - but not the hawkular server - have I forgotten something?

From the log, the port Hawkular is trying to use is 9042. Make sure of this setting in your cassandra.yaml
start_native_transport: true
native_transport_port: 9042
The port you are using (9160) is thrift port.

I can only take a stab in the dark with such limited information.
However you said you connected to localhost:9160. In the log it mentions "127.0.0.1:9042".

Related

Unable to load data into cassandra database

In my Cassandra cluster of 30 nodes, having datacenter 1, replication factor 3.
We are facing issues when tried to load data into cassandra.
Error from log:
ERROR [pool-1-thread-8] 2022-09-23 16:44:29,430 CassandraLoader.java (line 392) Hector error while inserting
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:Keyspace 'huawei' does not exist)
WARN [Hector.me.prettyprint.cassandra.connection.CassandraHostRetryService-1] 2022-09-23 16:44:31,498 CassandraHostRetryService.java (line 217) Downed dmbas-r410-26(10.173.226.43):9160 host still appears to be down: Unable to open transport to dmbas-r410-26(10.173.226.43):9160 , java.net.NoRouteToHostException: No route to host
WARN [pool-1-thread-10] 2022-09-23 16:44:39,458 HConnectionManager.java (line 303) Exception:
me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException(acknowledged_by:1)
Can someone suggest how to fix these warnings and errors.
Thanks,

Add a Cassandra OSS 4.0 RC1 node into a cluster with DSE 6.0.14 nodes

Every nodes of the cluster are in Version DSE 6.0.14, they set in ssl mode (listen on port 7001).
We're trying to add a node in version open Sources 4.0 RC1.
We force the port communication on this node:
storage_port: 7001
else the node try to communicate on the 7000 port that is closed.
We encountered the following error, when I try to start the service of the new node :
INFO [main] 2021-05-10 16:22:00,985 StorageService.java:528 - Gathering node replacement information for /10.135.66.204:7001
DEBUG [main] 2021-05-10 16:22:00,986 YamlConfigurationLoader.java:112 - Loading settings from file:/etc/cassandra/default.conf/cassandra.yaml
DEBUG [main] 2021-05-10 16:22:00,996 YamlConfigurationLoader.java:112 - Loading settings from file:/etc/cassandra/default.conf/cassandra.yaml
INFO [Messaging-EventLoop-3-1] 2021-05-10 16:22:01,138 InboundConnectionInitiator.java:281 - peer /10.137.65.201:54916 only supports messaging versions lower (2) than this node supports (10)
ERROR [Messaging-EventLoop-3-2] 2021-05-10 16:22:01,237 NoSpamLogger.java:98 - /xx.xxx.xx.xxx:7001->/xx.xxx.xx.xxx:7001-URGENT_MESSAGES-[no-channel] failed to connect
java.nio.channels.ClosedChannelException: null
[...]
INFO [ScheduledTasks:1] 2021-05-10 16:22:02,398 TokenMetadata.java:525 - Updating topology for all endpoints that have changed
ERROR [Messaging-EventLoop-3-1] 2021-05-10 16:22:09,467 InboundConnectionInitiator.java:360 - Failed to properly handshake with peer /xx.xxx.xx.xxx:54922. Closing the channel.
java.lang.AssertionError: null
[...]
I don't know if the error come from a mistake in the config of the node oss 4.0 or if there is an incompatibility between the new node version and the version of the existing node in the cluster.

Can't connect to Cassandra (All host(s) tried for query failed

I am trying to setup Datastax OpsCenter.
When I tried to run datastax-agent I get the following error:
Can't connect to Cassandra (All host(s) tried for query failed (tried:
/X.X.X.X1:9042 (com.datastax.driver.core.exceptions.TransportException:
[/X.X.X.X1:9042] Cannot connect), /X.X.X.X2:9042
(com.datastax.driver.core.exceptions.TransportException:
[/X.X.X.X2:9042] Cannot connect), /X.X.X.X3:9042
(com.datastax.driver.core.exceptions.TransportException:
[/X.X.X.X3:9042] Cannot connect), /X.X.X.X4:9042, /X.X.X.X5:9042,
/X.X.X.X6:9042 [only showing errors of first 3 hosts, use getErrors()
for more details])), retrying soon.
Please let me know if any other details are required.

Cassandra opscenter is not communicating with cluster

I have 2 node Cassandra cluster with datastax-agent up and running(one seed node) also nodetool status showing healthy.
In the 3 node I have opscenter install and the UI is loading fine with a blank screen, when I saw the var log it's complaining 'NO cassandra connection available for hostlist with a invalid unsupported version'(paster the log details message below). Any help is highly appreciated
2017-02-25 06:33:06+0000 [CLUSTER_NAME] ERROR: Control connection failed to connect, shutting down Cluster: ('Unable to connect to any servers', {'SEED-IP': })
2017-02-25 06:33:06+0000 [CLUSTER_NAME] WARN: No cassandra connection available for hostlist ['SEED-IP'] . Retrying.
I was using an old version of opscenter which was not matching the version of dse. Here is the map for your refference.
Reference: datastax doc

opscenter agent not connecting to opscenter

I am facing issue when I try to connect opscenter-agent to opscenter . In UI when we put any node ip it's shows Error creating cluster: Timeout while adding cluster. Please check the log for details on the problem.
In opscenter log I getting below error
2016-10-18 09:35:12+0000 [MW_Dev_Cluster] WARN: Unable to collect datacenter, rack information: Failed query to http://10.164.120.116:61621/cluster/topology?node_ip=10.184.27.237 : [<twisted.python.failure.Failure <class 'twisted.internet.error.ConnectionDone'>>]
2016-10-18 09:35:12+0000 [MW_Dev_Cluster] WARN: HTTP request http://10.185.183.5:61621/cluster/topology?node_ip=10.112.73.35 failed: [<twisted.python.failure.Failure <class 'twisted.internet.error.ConnectionDone'>>]
In opscenter agent conf. file address.yaml only below entry is there
stomp_interface: "10.166.71.92"

Resources