cassandra

Multiple Cassandra in same node

五迷三道 提交于 2020-01-17 12:24:18
问题 I have 3 nodes. I would like to bring up a 3node cassandra ( 1 Cassandra in 1 node ) and 3 single node cassandra (1 in each node ). So in 1 node, there is an instance of a 3 node cassandra and single node cassandra. Can I deploy like this by changing the port number is in use? Can I use same port number across single node deployments. 回答1: I would not recommend this unless you give each cassandra node its own data and commit log volume(s). Cassandra is optimized for sequential read and write

Spark Streaming App stucks while writing and reading to/from Cassandra simultaneously

偶尔善良 提交于 2020-01-17 08:11:28
问题 I was doing some benchmarking that consists of the following data flow: Kafka --> Spark Streaming --> Cassandra --> Prestodb Infrastructure : My spark streaming application runs on 4 executors (2 cores 4g of memory each). Each executor runs on a datanode wherein Cassandra is installed. 4 PrestoDB workers are also co-located in the datanodes. My cluster has 5 nodes, each of them with an Intel core i5, 32GB of DDR3 RAM, 500GB SSD and 1gigabit network. Spark streaming application : My Spark

Solr query issue with Faceting and Stats in dse

独自空忆成欢 提交于 2020-01-16 18:02:06
问题 Query : http://localhost:8983/solr/trackfleet_db.location/select?q=*:*&facet=true&facet.pivot={!stats=piv1}date,latitude,longitude&stats=true&stats.field={!tag=piv1}gpsdt When I execute this query on a separate solr instance (which is not an instance of DSE) then this query works fine. But in case of dse (Now I am using in built Solr of DSE) then it does not return anything ....And when I execute this query using curl command then it is giving following error <?xml version="1.0" encoding="UTF

Single node Cassandra behaving like multinode Cassandra

坚强是说给别人听的谎言 提交于 2020-01-16 11:08:10
问题 I have a single node Cassandra cluster which hits to ReadTimeOutException and I observe the following logs in server which seems weird to me, ERROR [SharedPool-Worker-91] 2018-05-29 12:09:53,023 ErrorMessage.java:338 - Unexpected exception during request java.lang.RuntimeException: org.apache.cassandra.exceptions.ReadTimeoutException: Operation timed out - received only 1 responses. at org.apache.cassandra.auth.CassandraRoleManager.getRole(CassandraRoleManager.java:489) ~[apache-cassandra-3.0

CqlStorage generates wrong Pig schema

最后都变了- 提交于 2020-01-16 04:50:07
问题 I'm loading some simple data from Cassandra into Pig using CqlStorage . The CqlStorage loader defines a schema based on the Cassandra schema, but it seems to be wrong. If I do: data = LOAD 'cql://bookdata/books' USING CqlStorage(); DESCRIBE data; I get this: data: {isbn: chararray,bookauthor: chararray,booktitle: chararray,publisher: chararray,yearofpublication: int} However, if I DUMP data , I get results like these: ((isbn,0425093387),(bookauthor,Georgette Heyer),(booktitle,Death in the

I have three node dse graph cluster. Two node graph enabled one is search enabled. The problem is when i run api request goes on it does not response

a 夏天 提交于 2020-01-16 03:29:08
问题 I have three node dse Cassandra cluster. One node is search enabled, Two node is graph enabled. When I run APIs(which is coded in scala play framework), POST or GET request keeps going and going it does gives a response. There is no any information in logs of Cassandra it is working normally. Earlier i used to use single node cluster where is graph enabled. 回答1: You need to have same workload on all nodes of the same data center, so you need to enable both graph and search on all nodes. 来源:

Installing cassandra spark connector

♀尐吖头ヾ 提交于 2020-01-16 03:04:17
问题 As per https://github.com/datastax/spark-cassandra-connector http://spark-packages.org/package/datastax/spark-cassandra-connector I did the command but at the end it looks like there are errors. Are these fatal or do I need to resolve them? [idf@node1 bin]$ spark-shell --packages datastax:spark-cassandra-connector:1.6.0-M1-s_2.11 Ivy Default Cache set to: /home/idf/.ivy2/cache The jars for the packages stored in: /home/idf/.ivy2/jars :: loading settings :: url = jar:file:/opt/spark-1.6.1-bin

Cassandra gives no data even if data exists

江枫思渺然 提交于 2020-01-16 00:38:18
问题 I have a keyspace with replication factor of 3. I am inserting data into Cassandra (4 node cluster with single data center) with write consistency level one. After completion of insertions I am reading data with consistency level quorum (2). But I am not getting data sometimes even if data exists, after some time I am getting data with same query. I don't know why Cassandra behaves like this. My column family schema CREATE TABLE input_data_profile.input_log_profile_1 ( cid text, ctdon bigint,

pagination in cassandra based web application

时光怂恿深爱的人放手 提交于 2020-01-15 23:03:08
问题 How can i do a pagination in cassandra based web application. I am using spring MVC on server side and jquery on client side. I tried this but was not sutisfied. My row key is UUIDType and every time i am sending the start key as string from client browser so dont know how to convert it back to UUID. A simple example will be appriciated. 回答1: Spring-data has this functionality pre-rolled : http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/repositories.html#web

pagination in cassandra based web application

岁酱吖の 提交于 2020-01-15 22:59:39
问题 How can i do a pagination in cassandra based web application. I am using spring MVC on server side and jquery on client side. I tried this but was not sutisfied. My row key is UUIDType and every time i am sending the start key as string from client browser so dont know how to convert it back to UUID. A simple example will be appriciated. 回答1: Spring-data has this functionality pre-rolled : http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/repositories.html#web