Last active
July 29, 2019 16:23
-
-
Save lukleh/dc861417f89b2255bf97be8606f2a430 to your computer and use it in GitHub Desktop.
spark use shuffle service
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
df = spark.sql('select abs(n1 - n2) as rdiff, count(1) as cnt from tempsampledata group by rdiff order by cnt desc') | |
df.persist() | |
df.show(n=100, truncate=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment