Re: Stream sstables hosted on a node from client using streaming protocol

2015-05-11 Thread Yuki Morishita
Yeah, at least you need to set up Schema for loading SSTable. If you find anything that we can improve, please file JIRA. On Sun, May 10, 2015 at 5:27 AM, Pierre Devops wrote: > OK so I know a little more now, it's not doable in client mode ATM because > it rely to much on server side stuff. > >

Re: Stream sstables hosted on a node from client using streaming protocol

2015-05-10 Thread Pierre Devops
OK so I know a little more now, it's not doable in client mode ATM because it rely to much on server side stuff. It needs to initialize ColumnFamilyStore and use an instance of it afterwards, which will require to much server-side configuration initialization. Secondly the way it streams is ineff

Re: Stream sstables hosted on a node from client using streaming protocol

2015-05-09 Thread Pierre Devops
Thanks yuki, copying SSLTableLoader was the first thing I try, but without success. I checked BulkLoadConnectionFactory ( https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tools/BulkLoadConnectionFactory.java) and I don't see what it provide over the DefaultConnectionFac

Re: Stream sstables hosted on a node from client using streaming protocol

2015-05-09 Thread Jeremy Hanna
You may also be interested in this going forward: https://issues.apache.org/jira/browse/CASSANDRA-9259 > On May 9, 2015, at 3:31 PM, Yuki Morishita wrote: > > Hi Pierre, > > I haven't tried writing that kind of client, but I think it should work. > Try providing your own connection provider as

Re: Stream sstables hosted on a node from client using streaming protocol

2015-05-09 Thread Yuki Morishita
Hi Pierre, I haven't tried writing that kind of client, but I think it should work. Try providing your own connection provider as in SSTableLoader (https://github.com/apache/cassandra/blob/cassandra-2.1/src/java/org/apache/cassandra/io/sstable/SSTableLoader.java#L159). If you encounter any excepti

Stream sstables hosted on a node from client using streaming protocol

2015-05-09 Thread Pierre Devops
Hi guys, I don't know if it's possible but I need to export a raw sstable from a node in client mode via streaming protocol (the opposite of bulk load), what I want to do : public static void main(String[] args) throws Exception { > Config.setClientMode(true); > StreamPlan pl