nutthanon
Contributor
Contributor

vCloud Director 9 can't connect to cassandra DB

Hi.

I just build new vcd 9 in my environment and it function work seem fine.

The problem is when I need vcd cell to send metric data to cassandra db for test matric in html5 but it can't as error below

vcloud command.png

So I check in cell manager tool log and it look like this.

vcloud log.png

Then I check on my cassandra db but everything seem fine, I can telnet to port 9042,9160 and run cqlsh on localhost or remotely from other cassandra node (firewalld disabled)

cassandra.png

2560-10-19 22_12_26-root@cassandra02_~.png

Are there any recommend for this case? I'm quite new for cassandra db,Thank you.

jonathanw
Enthusiast
Enthusiast

If you haven't configured SSL for your Cassandra cluster, you need to add the following to your vCloud Director global.properties file:

cassandra.use.ssl = 0

I know this caused issues for some people in the vCD 9 beta too.

View solution in original post

nutthanon
Contributor
Contributor

It's worked.

This solved my issue.

Thank you

Reply
0 Kudos
SebastianGrugel
Hot Shot
Hot Shot

If this command:

opt/vmware/vcloud-director/bin/cell-management-tool cassandra -configure -create-schema -cluster-nodes xxxxxxxxxx -username root -password xxxxxxxx -port 9042 -ttl 15

Should I perform on every CELLs ? or only on one?

I'm asking because on the first CELL we had success:

pastedImage_0.png

and next when we tried to perform that same command on 2nd CELL we received errors:

pastedImage_1.png

vExpert VSAN/NSX/CLOUD | VCAP5-DCA | VCP6-DCV/CMA/NV ==> akademiadatacenter.pl
Reply
0 Kudos
SebastianGrugel
Hot Shot
Hot Shot

OK i received sufficient answer on vExpert community slack from Tomas Fojta:

"All cells share the same Cassandra DB (keyspace), and the node list is store in vCloud DB. So you run the Cassandra configuration only from one cell."

Thanks

vExpert VSAN/NSX/CLOUD | VCAP5-DCA | VCP6-DCV/CMA/NV ==> akademiadatacenter.pl
Reply
0 Kudos