Created
October 7, 2021 05:05
-
-
Save kaysush/65fdd9a5d5bb03a198d8fb1e23125bf1 to your computer and use it in GitHub Desktop.
Sample PySpark Job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark.sql import SparkSession | |
spark = SparkSession.builder.enableHiveSupport().getOrCreate() | |
print('Storing random numbers in a GCS bucket') | |
spark.range(100).write.mode("overwrite").parquet("gs://apt-task-314904/random") | |
print('complete') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment