How do I get a SparkSession object from inside a MapFunction on a dataframe?

前端 未结 0 1144
野的像风
野的像风 2021-01-27 13:53

I have a SparkSession handle, which I use to create a dataframe, in my main function in Java.

SparkSession sparkSession = SparkSession.builder.getOrCreate();
Data         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题