John58
Contributor
Contributor

vCloud Director v 9.5 cassandra configuring cell errors

Hello Team! Help please

When integrating cassandra with vCloud director v9.5 to cell, i have errors:

for integration i used this links

https://virtualhow.wordpress.com/2020/02/04/vcd97-cass/

[root@vcd01srv01-ast01 bin]# ./cell-management-tool cassandra --configure --create-schema --cluster-nodes 10.121.16.30,10.121.16.31,10.121.16.32,10.121.16.33 --username vcloud --password P@ssw0rd --ttl 30 --port 9042
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/vmware/vcloud-director/logs/cell-management-tool.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getRootLogger(Logger.java:135)
at com.vmware.vcloud.logging.helper.LoggerHelper.isLog4jConfigured(LoggerHelper.java:464)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLoggerFromLog4jLoggerFactoryService(LoggerHelper.java:443)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLogger(LoggerHelper.java:185)
at com.vmware.vcloud.cell.management.CellManagementTool.<clinit>(CellManagementTool.java:65)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/vmware/vcloud-director/logs/dbextract-tool.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getRootLogger(Logger.java:135)
at com.vmware.vcloud.logging.helper.LoggerHelper.isLog4jConfigured(LoggerHelper.java:464)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLoggerFromLog4jLoggerFactoryService(LoggerHelper.java:443)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLogger(LoggerHelper.java:185)
at com.vmware.vcloud.cell.management.CellManagementTool.<clinit>(CellManagementTool.java:65)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/vmware/vcloud-director/logs/dbextract-audit-info.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getRootLogger(Logger.java:135)
at com.vmware.vcloud.logging.helper.LoggerHelper.isLog4jConfigured(LoggerHelper.java:464)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLoggerFromLog4jLoggerFactoryService(LoggerHelper.java:443)
at com.vmware.vcloud.logging.helper.LoggerHelper.getLogger(LoggerHelper.java:185)
at com.vmware.vcloud.cell.management.CellManagementTool.<clinit>(CellManagementTool.java:65)

Verifying Cassandra settings...
Cassandra setting valid for node: 10.121.16.30
Cassandra setting valid for node: 10.121.16.31
Cassandra setting valid for node: 10.121.16.32
Cassandra setting valid for node: 10.121.16.33
Cassandra configuration settings verified successfully
vcloud_metrics keyspace created...
ERROR: Unable to create Cassandra schema
Unexpected error, exiting...

Tags (2)
0 Kudos
1 Reply
DjinjiRinji
Enthusiast
Enthusiast

Hi John,

You have a few errors that could be related to vcloud user permissions on Cassandra 

Have a look on these 2 articles we wrote and check if helps resolve your configuration

Bitnami Cassandra Database for Storing Historic vCloud Metrics Data - Part 1 - Baking Clouds

Bitnami Cassandra Database for Storing Historic vCloud Metrics Data - Part 2 - Baking Clouds

Regards,

Guillermo Ramallo

Kindly mark as solved if your questions are answered.
>>>>>
Guillermo R
LinkedIn: https://www.linkedin.com/in/gramallo
Web: http://bakingclouds.com/
0 Kudos