Guest User

Untitled

a guest
Jul 26th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. File "/path/cmd.py", line 4, in <module>
  2. sparkValues = SQLContext.read.parquet('/a/file/ranks.parquet');
  3. AttributeError: 'property' object has no attribute 'parquet'
  4.  
  5. from pyspark import SparkConf, SparkContext
  6. from pyspark.sql import SQLContext
  7.  
  8. sparkValues = SQLContext.read.parquet('/a/file/ranks.parquet');
  9. pandaValues = sparkValues.toPandas();
  10. pandaValues.to_csv('/a/file/ranks.csv');
Add Comment
Please, Sign In to add comment