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.