July 2017
Intermediate to advanced
796 pages
18h 55m
English
At first, download and place the Spark distribution at your preferred place, say /home/asif/Spark. Now let's set the SPARK_HOME as follows:
echo "export SPARK_HOME=/home/asif/Spark" >> ~/.bashrc
Now let's set PYTHONPATH as follows:
echo "export PYTHONPATH=$SPARK_HOME/python/" >> ~/.bashrcecho "export PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.10.1-src.zip" >> ~/.bashrc
Now we need to add the following two paths to the environmental path:
echo "export PATH=$PATH:$SPARK_HOME" >> ~/.bashrcecho "export PATH=$PATH:$PYTHONPATH" >> ~/.bashrc
Finally, let's refresh the current terminal so that the newly modified PATH variable is used:
source ~/.bashrc
PySpark depends on the py4j Python package. It helps the Python interpreter ...
Read now
Unlock full access