HI There,
I have been trying to implement Object chunk store implementation with Cassandra 2.2 , (tried same with 3.6 as well getting same error)
1. Table schema :-
CREATE TABLE test.employees1(empid int PRIMARY KEY, deptid int, first_name text, last_name text) WITH COMPACT STORAGE;
2. Below is the code:-
ChunkedStorageProvider provider = new CassandraChunkedStorageProvider(keyspace,EMP_CF_NAME);
String objName = "first_name";
InputStream someInputStream = new FileInputStream(new File(fPath));
ObjectMetadata meta = ChunkedStorage.newWriter(provider, objName, someInputStream )
.withChunkSize(0x1000) // Optional chunk size to override
.withConcurrencyLevel(3) // Optional. Upload chunks in 8 threads
.withTtl(60) // Optional TTL for the entire object
.call();
Done anyone has implemented this with C* 3.0 ?
1. to insert primary key with this mehtod ?
https://github.com/Netflix/astyanax/wiki/Chunked-Object-Store - ref
Thx in advance
Deepak