GithubHelp home page GithubHelp logo

elateifsara / cloudera-jupyter-notebook-spark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mike-wendt/cloudera-jupyter-notebook-spark

0.0 0.0 0.0 15 KB

Settings for using Jupyter hub/notebook with CDH and Spark 2.3

License: MIT License

cloudera-jupyter-notebook-spark's Introduction

cloudera-jupyter-notebook-spark

Settings for using Jupyter hub/notebook with CDH5 and PySpark

Including kernels for Spark inclued with CDH5 (currently 1.6) and the latest released version of Spark

Prereqs

  • Python 3 & pip3
  • pip3 install ipykernel
  • pip3 install py4j
  • Java 8+ on all YARN workers

Install Jupyterhub

https://github.com/jupyterhub/jupyterhub

Add kernels

Kernels are located in /usr/local/share/jupyter/kernels

Move pysparkCDH and pysparkLatest folders into the above path

Install Spark

  1. Download the latest Spark version for Hadoop 2.6 (CDH5 is built on Hadoop 2.6):
  2. Extract tarball to /opt/spark

Upload Spark libs

  1. Upload Spark libs to HDFS for workers to pick up
hadoop fs -mkdir /lib
hadoop fs -put /opt/spark/jars/*.jar /lib
  1. Upload YARN Shuffle jar
hadoop fs -put /opt/spark/yarn /lib

YARN conf

Follow instructions here: http://spark.apache.org/docs/latest/running-on-yarn.html#configuring-the-external-shuffle-service

Add to yarn-site.xml for yarn.application.classpath - hdfs://hdfs-cluster:8020/lib/yarn/*

Configure JAVA_HOME for all worker nodes to point to Java 8 install, this can be done in Cloudera Manager

Update spark-defaults.conf

Make sure the HDFS path is correct and adjust to your setup, then place into /opt/spark/conf

cloudera-jupyter-notebook-spark's People

Contributors

mike-wendt 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.