New answers tagged

0

Q2: If I understand your question correctly, I don't think you want to do that nor should you use Cassandra if that's what you're trying to do. Cassandra is meant to spread data across nodes so that if one node fails then you don't lose your data or crash the entire cluster. If you are putting only specific data one one single hard drive, than you're ...


0

I don't think this is possible natively. The Cassandra role-based permissions as shown here show that granting a user MODIFY includes both UPDATE (which is effectively INSERT) and DELETE. You can't select which one you want. Check out this blog entry I found, though and see if there's anything useful there. It looks like you could do read or write only ...


1

Since you're using Datastax Enterprise search nodes, solr is integrated with cassandra. What has happened here is that when you changed your solr schema, you did not change the associated cassandra schema. The error message is telling you that there is a mismatch between your new solr schema and the cassandra schema for the same table. Check the cassandra ...


0

Cassandra 2.0 and above have provided snitch specific to cloud proveder. Ec2Snitch Use with Amazon EC2 in a single region. Ec2MultiRegionSnitch Use this snitch for deployments on Amazon EC2 where the cluster spans multiple regions. GoogleCloudSnitch Use this snitch for Cassandra deployments on Google Cloud Platform across one or more regions. ...


1

You (and other future readers) might also try using the COPY command of cqlsh. For example, if you have a local file named "filedata.csv", containing e.g.: 123-45-678-9,some file data here abc-de-fgh-1,some other file data here where the CSV fields corresponding to the columns in your file_uuids table, then you should be able to use: cqlsh> COPY ...


0

My implementation was next. Create table to be used for data: cqlsh:testkeyspace> CREATE TABLE files_uuids (id uuid, file blob, PRIMARY KEY ((id))); Next - some Python code to upload file called hello using Python Cassandra driver: >>> from cassandra.cluster import Cluster >>> cluster = Cluster() >>> session = ...


1

By Default cql will convert the table/keyspace/column name in lowercase. If you have table/keyspace/column in uppercase you have to enclose it in double quotes. alter KEYSPACE "HiveMetaStore" with replication = {'class': 'NetworkTopologyStrategy', 'DCassandra1': 1}; Opscenter handled it for you:) CQL UpperCase/lowercase



Top 50 recent answers are included