--
You received this message because you are subscribed to the Google Groups "DataStax C++ Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-user+unsubscribe@lists.datastax.com.
You are not printing out your results correctly; the strings returned from `cass_value_get_string` are not null terminated which is why the length is provided. Since you are using C++ functionality, convert the value with length to a std::string before printing.
~Fero
--
You received this message because you are subscribed to the Google Groups "DataStax C++ Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-user+unsubscribe@lists.datastax.com.
Glad to help.
In order to interface your external C++ application to a web server you will need to determine your requirements and choose the web server that is applicable to those requirements; see FastCGI wiki to get yourself started (https://en.wikipedia.org/wiki/FastCGI). As far as examples, you can utilize the resources in the C/C++ driver repository (https://github.com/datastax/cpp-driver/tree/master/examples) and the DataStax Academy (https://academy.datastax.com) to portal to help further your knowledge and experience with Cassandra.
~Fero
~Fero
It sounds like you do not have JMX enabled. You will want to modify the cassandra.bat file and restart the Cassandra instance; see https://github.com/apache/cassandra/blob/cassandra-3.7/bin/cassandra.bat#L71-L75. You may also need to add -Djava.rmi.server.hostname=127.0.0.1.
~Fero
~Fero
From the looks of things you are running through PowerShell (which is good), so the changes to the cassandra.bat file are not necessary and you will need to edit cassandra-env.ps1 (which it looks like you have already done so).
The steps I am providing below will allow you to use nodetool locally, but this is also unsecure due to the disabling of the security; please read up on JMX security measures and consult the documentation for enabling JMX https://docs.datastax.com/en/cassandra_win/3.x/cassandra/configuration/secureJmxAuthentication.html.
1. Uncomment https://github.com/apache/cassandra/blob/cassandra-3.7/conf/cassandra-env.ps1#L448
2. Uncomment https://github.com/apache/cassandra/blob/cassandra-3.7/conf/cassandra-env.ps1#L452 and change the value to false
3. Uncomment https://github.com/apache/cassandra/blob/cassandra-3.7/conf/cassandra-env.ps1#L463 and change the value to false
4. Restart your Cassandra instance
With these steps completed you should now be able to run commands like `nodetool status` and `nodetool ring` on the same machine the Cassandra instance is running. If you have further issues with Apache Cassandra please direct your questions to the Apache Cassandra mailing list http://www.mail-archive.com/us...@cassandra.apache.org/info.html and utilize this forum for C/C++ driver related questions.
Thank you.
~Fero
~Fero