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
import subprocess | |
def write_to_local_fs(df): | |
""" | |
This method writes to local filesystem efficiently without using coalesce or repartition. | |
The idea is to persist data in cluster format in hdfs (or whatever file storage) and write to local file system. | |
Write header to the file in the local file system | |
:param: df: the dataframe being sent as argument | |
""" |
OlderNewer