Member since
06-16-2017
2
Posts
0
Kudos Received
0
Solutions
06-16-2017
06:48 PM
Try this to access local file in Yarn Mode: import subprocess rdata =subprocess.check_output("cat /home/xmo3l1n2/pyspark/data/yahoo_stocks.csv", shell=True) pdata=sc.parallelize(rdata.split('\n'))
... View more