0

I'm attempintg to consume a SparkListenerJobStart object in Python, but the py4j bindings do not understand ArrayBuffers (or, I guess, scala.collection.Seqs in general). What do?

badp
  • 11,409
  • 3
  • 61
  • 89

1 Answers1

3

Convert the object like so:

list = [arrayBuffer.apply(i)
        for i in range(arrayBuffer.length())]
badp
  • 11,409
  • 3
  • 61
  • 89