Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P6368
Running spark on jupyter in SWAP
Active
Public
Actions
Authored by
EBernhardson
on Nov 22 2017, 7:32 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F10942756:
Nov 22 2017, 7:32 PM
2017-11-22 19:32:34 (UTC+0)
Subscribers
None
!pip install findspark
import os
import findspark
os.environ['SPARK_HOME'] = '/usr/lib/spark2';
findspark.init()
import pyspark
import pyspark.sql
conf = pyspark.SparkConf()
sc = pyspark.SparkContext(conf=conf)
sqlContext = pyspark.sql.HiveContext(sc)
df = sqlContext.read.parquet('hdfs://analytics-hadoop/user/ebernhardson/mjolnir/20171023')
df.show()
Event Timeline
EBernhardson
created this paste.
Nov 22 2017, 7:32 PM
2017-11-22 19:32:34 (UTC+0)
EBernhardson
changed the title of this paste from untitled to
Running spark on jupyter in SWAP
.
Nov 22 2017, 8:57 PM
2017-11-22 20:57:37 (UTC+0)
Log In to Comment