Advertisement
Guest User

spark diocan conf

a guest
May 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. Premetto che Jupiter era gia installato sulla macchina.
  2.  
  3. Fondamentalmente ho seguito questa guida:
  4. https://medium.com/@josemarcialportilla/getting-spark-python-and-jupyter-notebook-running-on-amazon-ec2-dec599e1c297
  5.  
  6. ho solo cambiato qualche cosina, jupyter non e' installato come servizio, quindi forse nel tuo caso forse dovrai cambiare un po' di cose, in questo caso io lo avvio a mano prima di lavorarci (per vari motivi... certamente non per laziness :P)
  7.  
  8. altri pacchetti che ho installato:
  9.  
  10.  
  11. sudo apt-get install ipython3
  12. sudo ipython3 kernel install
  13. ipython3 kernel install # prova questo se il primo non va
  14. sudo pip3 install py4j findspark
  15.  
  16.  
  17. Ti allego i miei file di conf:
  18. ######################################################################
  19. # FILE: ~/.jupyter/jupyter_notebook_config.py
  20. ######################################################################
  21.  
  22. c = get_config()
  23.  
  24. # Notebook config this is where you saved your pem cert
  25. c.NotebookApp.certfile = u'/home/agalloni/certs/mycert.pem'
  26. # Run on all IP addresses of your instance
  27. c.NotebookApp.ip = '*'
  28. # Don't open browser by default
  29. c.NotebookApp.open_browser = False
  30. # Fix port to 8888
  31. c.NotebookApp.port = 8888
  32.  
  33. #######################################################################
  34.  
  35. ######################################################################
  36. # FILE: ~/.bashrc
  37. ######################################################################
  38.  
  39. # ho attaccato i seguenti export alla fine del file
  40.  
  41. export PYSPARK_PYTHON=python3
  42. export SPARK_HOME=/opt/spark
  43. export PATH=$SPARK_HOME/bin:$PATH
  44. export PYTHONPATH=$SPARK_HOME/python:$PYTHONPATH
  45. #############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement