Code Monkey home page Code Monkey logo

sparkml's Introduction

SparkML

Take your first steps with Spark ML and pyspark. Gain understanding of Spark ML with unique hands-on experience with the Spark ML First steps course!

Getting started:

Make sure you have docker installed on your device.

  1. Run docker

  2. Run the next command:

    docker run -it -p 8888:8888 jupyter/pyspark-notebook:spark-2 This will download the image of juypter notebook with Apache Spark 2.4.5 version

    You will get similar response back:

    Executing the command: jupyter notebook
     [I 15:49:48.293 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
     [I 15:49:48.887 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab
     [I 15:49:48.888 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
     [I 15:49:48.891 NotebookApp] Serving notebooks from local directory: /home/jovyan
     [I 15:49:48.891 NotebookApp] The Jupyter Notebook is running at:
     [I 15:49:48.891 NotebookApp] http://0a3437183fee:8888/?token=43143a485357351ef522a1840f8c8c141a1be2bcf5f9b4de
     [I 15:49:48.892 NotebookApp]  or http://127.0.0.1:8888/?token=43143a485357351ef522a1840f8c8c141a1be2bcf5f9b4de
     [I 15:49:48.892 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
     [C 15:49:48.896 NotebookApp]
     To access the notebook, open this file in a browser:
         file:///home/jovyan/.local/share/jupyter/runtime/nbserver-8-open.html
     Or copy and paste one of these URLs:
         http://0a3437183fee:8888/?token=43143a485357351ef522a1840f8c8c141a1be2bcf5f9b4de
      or http://127.0.0.1:8888/?token=43143a485357351ef522a1840f8c8c141a1be2bcf5f9b4de

    Getting an error about AMD? You can leverage this image: docker run -p 8888:8888 sakuraiyuta/pyspark-notebook

    Note! with this image, you are running Spark 3.1.1 that has slightly different Spark API support. You will need to search the web for exceptions when those show up. We will be working on a 3.1.1 tutorial version soon. Thank you, and apologies for any inconvenience.

  3. Copy the LAST url with the token= , it will looks something like this, but you will have your own token:

http://127.0.0.1:8888/?token=43143a485357351ef522a1840f8c8c141a1be2bcf5f9b4de

past it in your browser. This will be your jupyter work environment for the course.

  1. Clone this repo or download the zipped files - notebook.zip and detecting-twitter-bot-data.zip

  2. Extracte the files(unzip) and upload the Exercise, Solution and detecting-twitter-bot-data files into Jupyter using the upload button. Use the upload button like in the photo:

  3. Follow instructions and write your findings in chat!

Notes:

Exercise folder containes the exercise chapters. Solution folder containes the solution for the exercise.

It's recommend to have both in your Jupyter environment before course starts.

License:

This exercise is part of the O'Reilly Online Course: Spark ML First Steps produced and delivered by Adi Polak.

If you would like to use it outside of the online course scope, like sharing with you colleagues, etc. Please contact Adi Polak on Twitter.

sparkml's People

Contributors

adipolak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.