Removing Characters From Python Output
I did alot of work to remove the characters from the spark python output like u u' u' [()/'' which are creating problem for me to do the further work. So please put a focus on the
Solution 1:
I think your only problem is that you have to reformat you result before saving it to the file, i.e. something like:
result.map(lambda x:x[0]+','+str(x[1])).saveAsTextFile("hdfs://localhost:9000/Test1")
Post a Comment for "Removing Characters From Python Output"