BadRequestException: Object Chunk storeage - InvalidRequestException - Astyanax

5 views
Skip to first unread message

deepak dabi

unread,
Jun 24, 2016, 12:33:23 PM6/24/16
to Astyanax Cassandra Client
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
  
Reply all
Reply to author
Forward
0 new messages