Guest User

Untitled

a guest
Sep 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. conn_a = rdd.filter(
  2. lambda r: r[1]['header']['op'] == 7
  3. ).map(
  4. lambda r: r[1]
  5. ).collect()
  6. conn_d = {str(k['header']['topic']):k for k in conn_a}
  7.  
  8. # see topic names
  9. conn_d.keys()e
  10.  
  11. def topic( a:org.apache.hadoop.io.MapWritable) : Boolean = {
  12. // return true if we have a header/topic
Add Comment
Please, Sign In to add comment