Executing spark streaming actions sequentially

Viewed 648

I am reading data from kafka in spark streaming application and doing two actions

  1. Insert dstreams into hbase table A
  2. Update another hbase table B

I want to make sure that for each rdd in dstream Insert into hbase table A will happen before update operation on hbase table B (above two action happen sequentially for each rdd)

How to achieve this in spark streaming application

2 Answers
Related