Code Monkey home page Code Monkey logo

cm-livy-scripts's Introduction

Livy Spark Server parcel and CSD

Livy is a wrapper around spark-submit to expose Spark as a REST service for integration with external applications.

As it is still in beta, it is not included in the CDH bundle (as of CDH 5.5.1). This scripts in this repo creates both a Livy parcel and CSD for deploying it with Cloudera Manager.

Prerequisites

Cloudera publishes a tool for making CM parcels. Install it on your workstation like so:

  1. mkdir -p ~/github/cloudera; cd ~/github/cloudera
  2. git clone [email protected]:cloudera/cm_ext.git; cd cm_ext
  3. mvn package

Instructions

Parcel

  1. Create the Livy parcel: ./build_parcel.sh <Version> <Distro>. Example: ./build_parcel.sh 1.0 wheezy
  2. Serve the parcel: ./serve-parcel.sh
  3. In CM, add your machine to the list of Remote Parcel Repository URLs and click Check for New Parcels.
  4. Download, Distribute, Activate. No need to restart the cluster as this parcel is not a dependency for any service.

CSD

  1. Create the CSD: ./build_csd.sh <Version>. Example: ./build_csd.sh 1.0. The CSD version is independent of the parcel version.
  2. Copy the CSD jar (LIVY-1.0.jar) to CM host at /opt/cloudera/csd/ and change the ownership of the jar to cloudera-scm:cloudera-scm
  3. Restart CM /etc/init.d/cloudera-scm-server restart
  4. Restart Cloudera Management Service from the CM UI.
  5. Install the Livy service with Add a service option in CM.

Note: Step 3 and 4 can be avoided by using the experimental api for installing CSDs without restarting CM with a GET https://CM:7180/cmf/csd/install?csdName=LIVY-1.0

Managing Livy

Livy has been defined as a javabased service in CSD which enables the basic monitoring and configuration relevant to java process through CM. Additional Livy parameters has also be added to the CSD to enable configuration management from CM. We are forcing logback as the logging implementation.

As of now, custom CSDs support declaring custom montitoring metrics but no way to publish them from the service.

cm-livy-scripts's People

Contributors

anandnalya avatar

Watchers

xiyoulaoyuanjia 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.