datastax

Could not initialize class com.datastax.spark.connector.types.TypeConverter$ while running job on apache spark 2.0.2 using cassandra connector

夙愿已清 提交于 2019-12-12 06:18:55
问题 I'm trying to run simple count on data set from apache spark shell that was previously fetched to my cassandra cluster. To do this I've created simple maven project that creates fat jar, there are my dependencies: <!-- https://mvnrepository.com/artifact/com.cloudera.sparkts/sparkts --> <dependency> <groupId>com.cloudera.sparkts</groupId> <artifactId>sparkts</artifactId> <version>0.4.1</version> </dependency> <!-- https://mvnrepository.com/artifact/com.datastax.spark/spark-cassandra-connector

InvalidQueryException when trying to create column family in Cassandra via unit

你。 提交于 2019-12-12 06:08:27
问题 I have a 3 node cassandra cluster and via my unit test in Java, I first create a keyspace and then create a column family within that keyspace. Sometimes the unit tests passes but randomly I keep getting the following error. I am using the latest datastax 2.1.4 java driver and the cassandra version in 2.1.0. com.symc.edp.database.nosql.NoSQLPersistenceException: com.datastax.driver.core.exceptions.InvalidQueryException: Cannot add column family 'testmaxcolumnstable' to non existing keyspace

Opsagent UnsupportedOperationException with PersistentHashMap

不问归期 提交于 2019-12-12 05:53:54
问题 I'm running Cassandra along with opscenter agent, and got the following error in the log when Opscenter tries to get general and CF metrics. INFO [jmx-metrics-1] 2015-08-02 21:55:20,555 New JMX connection (127.0.0.1:7199) INFO [jmx-metrics-1] 2015-08-02 21:55:20,558 New JMX connection (127.0.0.1:7199) ERROR [jmx-metrics-2] 2015-08-02 21:55:25,448 Error getting CF metrics java.lang.UnsupportedOperationException: nth not supported on this type: PersistentArrayMap at clojure.lang.RT.nthFrom(RT

Can't able to start Cassandra Services

 ̄綄美尐妖づ 提交于 2019-12-12 05:29:22
问题 I just downloaded tar ball and extracted it. Steps i have done is in this question path/dse/bin/cassandra-cli It says Connection refused at port 9160 netstat -plten returns no process on 9160. So cassandra service is not started. How to start it? DO i need to set any env variables or config changes? I am setting up just single node setup. org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:183)

Cassandra returns variable results when looking for time series data

人盡茶涼 提交于 2019-12-12 04:34:14
问题 When I give this query in DataStax DevCenter, 2 rows are returned. The rows returned are foe Dec 30th as they should be. SELECT * FROM abc.alerts_by_type_and_timestamp WHERE alert_type IN ('Permanent Fault', 'Temporary Fault') AND alert_timeStamp >= '2015-12-30T15:00+0000' AND alert_timeStamp <= '2015-12-31T15:00+0000' But running in PreparedStatement like this SELECT * FROM abc.alerts_by_type_and_timestamp WHERE alert_type IN :alertTypes AND alert_timeStamp >= :minTimestamp AND alert

Most efficient way to query cassandra in small time-based chunks

大城市里の小女人 提交于 2019-12-12 04:25:25
问题 My Cassandra-based application needs to read the rows changed since last read. For this purpose, we are planning to have a table changed_rows that will contain two columns - ID - The ID of the changed row and Updated_Time - The timestamp when it was changed. What is the best way to read such a table such that it reads small group of rows ordered by time. Example: if the table is: ID Updated_Time foo 1000 bar 1200 abc 2000 pqr 2500 zyx 2900 ... xyz 901000 ... I have shown IDs to be simple 3

OpsCenter not getting data after restart of server

三世轮回 提交于 2019-12-12 04:23:36
问题 we are using Datastax Enterprize edition. We are running a 2 node cluster. We get the message: After restarting of OpsCentre node getting below error. 2017-03-20 14:49:45,819 [opscenterd] ERROR: Unhandled error in Deferred: There are no clusters with name or ID 'tracking' File "/usr/share/opscenter/lib/py/twisted/internet/defer.py", line 1124, in _inlineCallbacks result = g.send(result) File "/usr/share/opscenter/jython/Lib/site-packages/opscenterd/WebServer.py", line 523, in

How to connect spark with cassandra using spark-cassandra-connector?

懵懂的女人 提交于 2019-12-12 03:46:22
问题 You must forgive my noobness but I'm trying to setup a spark cluster that connects to cassandra running a python script, currently I am using datastax enterprise to run cassandra on solr search mode. I understand that, in order to use the spark-cassandra connector that datastax provides, you must run cassandra in analytics mode (using -k option). Currently I have got it to work only using the dse spark version, for which, to make it work I followed the next steps: Start dse cassandra in

use datastax java driver to bind data for where in clause

流过昼夜 提交于 2019-12-12 02:55:22
问题 I know somebody has ask this question (http://www.datastax.com/support-forums/topic/java-driver-cql-3-bound-statements-in-clause#post-13114, Prepared Statement with collection in IN clause in Datastax Cassandra CQL driver) However, I still do not know how to bind data. for example, my preparedStatement is select * from cf where key in (?) What I want is bind data and the cql is looks like select * from cf where key in ('key1', 'key2') Now I have a boundStatement. when I use boundStatment.bind

How to connect datastax dev center to remote cluster in amazon EC2 instance?

南笙酒味 提交于 2019-12-12 02:49:22
问题 I have set the following. rpc_address to external public ip. Listen Address : internal ip address (not the local host), rpc_broad_cast: internal ip address On Dev center, I am using external ip and port 9042. Let me know, if am doing anything wrong. 回答1: Thank you snakecharmerb for trying to help me out on this. I was able to find a solution for this myself. The actual problem was I was using Dev Center 1.4 to connect to Cassandra 3. Once I upgraded to the Dev Center 1.5, it worked like a