You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val m1 = Map(...)
val m2 = Map(...)
spark.makeRDD(Seq(m1, m2)).saveToEs(...)
However, I couldn't convert my method to Seq
def myMethod(s: String): Map[String, String] = { ... }
def main(args: Array[String]) {
...
val mine = prev.map(myMethod) // I'd like to put this result into makeRDD
spark.makeRDD(???).saveToEs(...)
}
I did various ways, just got several errors including Task not serializable
Let me know, please. Thanks.