My examples when I learned spark. In order to run tests on windows: download and install hadoop put winutils.exe into /bin export HADOOP_HOME