datastax

How do i check cassandra and solr is up?

只谈情不闲聊 提交于 2020-07-22 17:56:51
问题 I just installed datastax 2.2.2 on my ubuntu:12.04 machine from tarball I started services using bin/dse cassandra -s . I din't set any env variables.But it starts the service. bin/dse/bin/nodetool status It lists out list of valid commands where status is not there. How do i verify my cassandra and solr is up? AM i missing something? ANy ideas? 回答1: nodetool status should work. DSE 4.6 is the latest version, why are you on 2.2? Watch your system and output logs as the node starts up to see

Codec not found for requested operation: [map<varchar, int> <-> java.util.Map]; issue Apache Cassandra

浪尽此生 提交于 2020-07-09 05:30:23
问题 I have a table with the fields CREATE TABLE app_category_agg ( category text, app_count int, sp_count int, subscriber_count int, window_revenue bigint, top_apps frozen <list<map<text,int>>>, PRIMARY KEY (category) ); when I try to map it to kotlin model @Table("app_category_agg") class AppCategoryAggData { @PrimaryKeyColumn(name = "category", ordinal = 0, type = PrimaryKeyType.PARTITIONED) lateinit var category: String @Column("app_count") var appCount: Int = 0 @Column("sp_count") var spCount

Migrate Datastax Enterprise Cassandra to Apache Cassandra

流过昼夜 提交于 2020-06-27 10:24:09
问题 We have currently using DSE 4.8 and 5.12. we want to migrate to apache cassandra .since we don't use spark or search thought save some bucks moving to apache. can this be achieved without down time. i see sstableloader works other way. can any one share me the steps to follow to migrate from dse to apache cassandra. something like this from dse to apache. https://support.datastax.com/hc/en-us/articles/204226209-Clarification-for-the-use-of-SSTABLELOADER 回答1: Figure out what version of Apache

Cannot start Cassandra - Snitch's Datacenter Differs from Previous

爷,独闯天下 提交于 2020-06-10 12:54:41
问题 Im trying to start DSE 5.0.1 Cassandra (Single node) in my local. Getting below error: CassandraDaemon.java:698 - Cannot start node if snitch's data center (Cassandra) differs from previous data center (Graph). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true 回答1: If you are using GossipingPropertyFileSnitch, start Cassandra with the option -Dcassandra.ignore_dc=true If it starts successfully, execute: nodetool repair

java.lang.ClassNotFoundException: com.datastax.spark.connector.rdd.partitioner.CassandraPartition

房东的猫 提交于 2020-05-17 07:01:25
问题 I've been working with Cassandra for a little while and now I'm trying to setup spark and spark-cassandra-connector. I'm using IntelliJ IDEA to do that (first time with IntelliJ IDEA and Scala too) in Windows 10. build.gradle apply plugin: 'scala' apply plugin: 'idea' apply plugin: 'eclipse' repositories { mavenCentral() flatDir { dirs 'runtime libs' } } idea { project { jdkName = '1.8' languageLevel = '1.8' } } dependencies { compile group: 'org.apache.spark', name: 'spark-core_2.11',

Transferring data from one cluster to another in Cassandra

孤街醉人 提交于 2020-04-17 20:35:29
问题 I have an old Cassandra cluster that I want to get rid of, and want to transfer data from only few selected tables from old cluster to a new one that I have created. I have tried using Cassandra's COPY command on a table that has about 15 million rows (approx 20 columns for each row). When I try to import data from the csv file to the same table in our new cluster, I am getting this response constantly : Failed to import 20 rows: WriteTimeout - Error from server: code=1100 [Coordinator node

Cassandra batch query vs single insert performance

做~自己de王妃 提交于 2020-03-13 07:46:48
问题 I use Cassandra java driver . I receive 150k requests per second, which I insert to 8 tables having different partition keys. My question is which is a better way: batch inserting to these tables inserting one by one . I am asking this question because , considering my request size (150k), batch sounds like the better option but because all the tables have different partition keys, batch appears expensive. 回答1: Please check my answer from below link: Cassandra batch query performance on

relevance search in Solr

我的未来我决定 提交于 2020-02-02 14:37:24
问题 I am using DSE5.0.2 version and Solr ( integrated with dse) . I have to do relevance search using solr on the below tables/ data . I have a table in cassandra on which we have created a solr core - CREATE TABLE fullsearch ( launchedtime bigint, hashtag text, solr_query text, PRIMARY KEY (launchedtime)) Now we have created a solr core and searching on the field hashtag . but i want those result which contains max no of hashtag i am searching . for ex : - if data in cassandra is - launchedtime