python core-spark-preview-rdd.py

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python core-spark-preview-rdd.py相关的知识,希望对你有一定的参考价值。

#Check out our lab for practice: https://labs.itversity.com
#Previewing the data
orders = sc.textFile("/public/retail_db/orders")
orders.first()
for order in orders.take(100): print(order)

# Converts distributed RDD to single threaded collection. Be careful when using collect
for order in orders.collect: print(order) 

orders.count()

#Raise any issues on https://discuss.itversity.com - make sure to categorize properly

以上是关于python core-spark-preview-rdd.py的主要内容,如果未能解决你的问题,请参考以下文章

Python代写,Python作业代写,代写Python,代做Python

Python开发

Python,python,python

Python 介绍

Python学习之认识python

python初识