Hi,
If I have RDD that counts something e.g.:

    JavaPairDStream<String, Integer> successMsgCounts = successMsgs
                .flatMap(buffer -> Arrays.asList(buffer.getType()))
                .mapToPair(txnType -> new Tuple2<String, Integer>("Success
" + txnType, 1))
                .reduceByKey((count1, count2) -> count1 + count2);

        successMsgCounts.print();

Instead of printing this output how can I push it to REST API? I have a
server which needs this information to be fed via REST.


thanks
LCassa

Reply via email to