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 <mor.y...@gmail.com> 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 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 exception, please let me know. > I'm willing to help. > > Yuki > >> On Sat, May 9, 2015 at 2:07 PM, Pierre Devops <pierredev...@gmail.com> wrote: >> 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 plan = new StreamPlan("SST Import"); >>> plan.requestRanges( >>> InetAddress.getByName("127.0.0.1"), >>> InetAddress.getByName(targetedNode), >>> keyspace, >>> Arrays.asList(new Range(new LongToken(Long.MIN_VALUE), new >>> LongToken(Long.MAX_VALUE))), // fetch everything this node handle for this >>> CF >>> columnFamily >>> ); >>> plan.execute().get(); >>> // expect to receive the sstable(s) somewhere... >>> } >> >> >> >> However now I'm stuck, I don't know how to handle this part in client mode, >> help appreciated. > > > > -- > Yuki Morishita > t:yukim (http://twitter.com/yukim)