Re: Read Local File

2017-06-14 Thread Dirceu Semighini Filho
Hello Satish, Thanks for your answer *I guess you have already made sure that the paths for your file are exactly the same on each of your nodes* Yes * I'd also check the perms on your path* The files are all with the same permissions *Believe the sample code you pasted is only for testing - and yo

Re: Read Local File

2017-06-14 Thread satish lalam
I guess you have already made sure that the paths for your file are exactly the same on each of your nodes. I'd also check the perms on your path. Believe the sample code you pasted is only for testing - and you are already aware that a distributed count on a local file has no benefits. Once I ran

Read Local File

2017-06-13 Thread Dirceu Semighini Filho
Hi all, I'm trying to read a File from local filesystem, I'd 4 workstations 1 Master and 3 slaves, running with Ambari and Yarn with Spark version* 2.1.1.2.6.1.0-129* The code that I'm trying to run is quite simple spark.sqlContext.read.text("file:///pathToFile").count I've copied the file in al