I'm looking to log all logs in Cassandra 3.4.4 (for instance, to log if query was ok, bad, but also connection timed out or bad credentials). Thanks
Unfortunately Cassandra 3 doesn’t have a feature for that. However, there is an open source 3rd party plugin that does this.
Check out Ericsson’s Cassandra Query Logger:
https://github.com/Ericsson/ecaudit/
Basically, you download the JAR, add it to lib/, reference it in the Cassandra-env.sh, and that should do it.
Related
I referred this Documentation
https://www.javatpoint.com/talend-jdbc-connection
For how to config DB connection on Talend. In the documentation mentioned, MySQL JDBC Connector is used to connect the MySQL DB to Talend. In my case, I need to connect with Cassandra JDBC Connector is used to connect the Cassandra DB to Talend, and the connection is also established successfully.
The documentation mentioned when we right-click on the database connection it will show the popup menu. The pop-menu shows the retrieve schema option. This option is used to show the table. But when I right-click on the DB connection it's not showing a pop-menu on the Talend Open Studio. How to fix this issue.
I suspect the problem is that you're using the wrong JDBC driver although I'm unable to confirm that since you didn't actually say which one you're using.
You will need to download the Simba JDBC Driver for Apache Cassandra from DataStax Downloads in order to connect to a Cassandra cluster. Then you'll need to install the driver on to your Talend.
I don't have the detailed steps for doing that but I've previously written instructions for connecting clients like Pentaho Data Integration and DBeaver to Astra DB which is a Cassandra-as-a-service. The instructions for those should give you an idea of how to configure Talend. Cheers!
I encountered the same problem, you're supposed to make the connection under the 'NoSQL Connections' Tab since Cassandra is a NoSQL database.
I followed the instructions here
I'm trying to use DSBulk to load data into ScyllaDB. I know officially DSBulk doesn't support Scylla, but I found a post of someone using it instead of cqlsh.
When I'm trying to connect, I'm always getting this error init query OPTIONS: error writing )
Has anyone ever used it with Scylla and know how to fix that?
Here's the post: http://mail-archives.apache.org/mod_mbox/cassandra-user/201903.mbox/%3CCALrZ4T1wkpyKcinfo6N_pAPXyn-gkV2FbkkM3ot8XOUAKd4cUQ#mail.gmail.com%3E
Hmm, interesting, worth to see the log on the scylla side and even to run wireshark with CQL plugin.
For upload, the spark migrator is a valid, tested option for Scylla
I need to provide similar utility functions such as is available through
nodetool tablestats
I've gone over their source code but didn't find a convenient solution to accessing it through code.
Is there a library available for this?
https://github.com/mariusae/cassandra/blob/master/src/java/org/apache/cassandra/tools/NodeProbe.java
The nodetool utility is connecting Cassandra via JMX and fetch all necessary data from corresponding beans. You can fetch necessary data from your program via JMX as well, but I wouldn't say that this is recommended way to do - it's better to setup some "standard" monitoring solution, like, Prometheus, connect it to Cassandra, and fetch data via it...
I have installed cassandra CQL shell on my local system, I am using jmeter v3.0 for testing the queries per second(QPS) on cassandra CQL shell. I have installed "cassandra support" plugin available in "plugin manager" with jmeter.
I have created keyspace in cassandra(keyspace1), created a table(student) and added some data in CQL shell.
I have added "cassandra properties" from config elements and entered the properties in jmeter.
Here are the properties:
I have added "cassandra get" sampler.
added "view results tree" listener.
when I run it I am getting the following error:
ERROR: java.lang.RuntimeException:
org.apache.thrift.transport.TTransportException: Read a negative frame
size (-2080374784)!
I have given the "schema properties" as seen on github.
but no use. I am getting the same error.
Can anyone suggest me how to resolve this error?
ERROR: java.lang.RuntimeException:
org.apache.thrift.transport.TTransportException: Read a negative frame
size (-2080374784)!
I want to use the cassandra samplers for put, get and delete operations on the database.
It looks like the Netflix plugin you are using is somewhat deprecated because it uses the Cassandra thrift API which is deprecated (the plugin did not have a lot of recent commits in github too).
See announcements here and here
Even if you succeed in your test with this plugin, it would not be very representative of a current client use (hence load).
IMHO you should make your test with JSR223 groovy scripts (preprocessor and samplers) and use the Datastax standard java driver + CQL in your script. I did it some time ago, it works fine.
(update: documented here)
Or may be try this JMeter plugin from a Datastax guy, it seems to use CQL . I didn't tried it, but it looks fine.
HTH,
Alain
I am connecting from Wso2DSS to CassandraDB, i added the (apache-cassandra-cql-1.0.3,cassandra-all-0.8.0-beta2) jar files, still I am getting the following error.
java.sql.SQLException: org.apache.cassandra.cql.jdbc.CassandraDriver.
How can I solve this error?
If you are using the latest versions of DSS (> v.3.0.0), the Cassandra JDBC driver which is used to connect to Cassandra via JDBC, is by default shipped with DSS. Therefore, it's just a matter of configuring your data source in DSS (as a carbon datasource or an inline datasource in the data service descriptor file) with the driverClassName "org.apache.cassandra.cql.jdbc.CassandraDriver" and other relevant parameters like JDBC URL, username, password, etc, and pointing to it within the data service descriptor. (.dbs file)
However, if you're using any other WSO2 product such as ESB or an older version of DSS, then you will have to download the cassandra JDBC driver and the other dependency jars (if any) to CARBON_HOME/repository/components/lib, restart the server and then configure your datasources pointing to Cassandra.
Hope this helps.
Regards,
Prabath