Using Pyspark RDD How to extract the header record .. in the given format

后端 未结 0 849
天命终不由人
天命终不由人 2020-12-03 05:16

I have tried the below pyspark code to read the header and trailer records from fixed length file:

path = "/axx/yy/test"
rdd = spark.read.text(path)         


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