dsp-uga / andromeda

This repository contains a Naive Bayes classifier implemented on document classification which is completed on CSCI 8360, Data Science Practicum at the University of Georgia, Spring 2018.
MIT License
4 stars 1 forks source link

[Windows][PySpark] Error: Cannot Find File #18

Closed nihalsoans91 closed 6 years ago

nihalsoans91 commented 6 years ago

FileNotFoundError: [WinError 2] The system cannot find the file specified

This error Appears at the line sc=SparkContext

nihalsoans91 commented 6 years ago

The Issue for this is the Environment Variable is not Set correctly. PYSPARK_PYTHON should point to the python.exe This Python.exe has to be the one in the environment For Example: If you are using Anaconda then you will have to point it to the python .exe in that environment.

ismailsajjadnbs commented 5 years ago

add spark_home and hadoop_home path in system variables path list and user variable path list as well.... restart the machine..