标签:get spark http style targe tail div 内容 data
https://blog.csdn.net/wengyupeng/article/details/52808503
2种方式:
1 rdd.collect().foreach {println}
2 rdd.take(10).foreach { println } //take(10) 取前10个
val logData = sparkcontext.textFile(logFile, 2).cache()
logData.collect().foreach {println}
logData.take(10).foreach { println }
标签:get spark http style targe tail div 内容 data
原文地址:https://www.cnblogs.com/Lee-yl/p/11082591.html