Giter Site home page Giter Site logo

sparklint's Introduction

Sparklint

The missing Spark Performance Debugger that can be drag and dropped into your spark application!

Mission

  • Provide advance metrics and better visualization about your spark application's resource utilization
    • Vital application life time stats like idle time, average vcore usage, distribution of locality
    • View task allocation by executor
    • VCore usage graphs
    • (WIP) Find rdds that can benefit from persisting
    • (WIP) View task execution stats by locality
  • Help you find out where the bottle neck are
    • (WIP) Automated report on application bottle neck
  • (WIP) Opportunity to give the running application real-time hints on magic numbers like partitions size, job submission parallelism, whether to persist rdd or not

ScreenShot

Usage

Live mode (run inside spark driver node)

SparklintListener is an implementation of SparkFirehoseListener that listen to spark event log while the application is running.

Simply add these lines to your spark-submit script:

--conf spark.extraListeners=com.groupon.sparklint.SparklintListener --packages com.groupon.sparklint:sparklint:1.0.2

Or add com.groupon.sparklint:sparklint to your maven/sbt dependency, and add the following line:

--conf spark.extraListeners=com.groupon.sparklint.SparklintListener

Then find out your spark application's driver node address, open a browser and visit port 23763 of the driver node.

Server mode (run on local machine)

SparklintServer can run on your local machine. It will read spark event logs from the location specified. You can feed Sparklint an event log file to playback activities.

  • Checking on the repo
  • Make sure you have apache maven installed.
  • Copy spark event log files to analyze into a directory then mvn clean scala:run "-DaddArgs=-d|/path/to/log/dir|-r"
  • Or analyze a single log file mvn clean scala:run "-DaddArgs=-f|/path/to/logfile|-r"
  • Then open browser and navigate to http://localhost:23763

-DaddArgs is the scala maven plugin's way of passing commandline arguments to the application. scala maven plugin use | to separate command line arguments

The command line arguments supported are:

  • -f [FileName]: Filename of an Spark event log source to use.
  • -d [DirectoryName]: Directory of an Spark event log sources to use. Read in filename sort order.
  • -p [pollRate]: The interval (in seconds) between polling for changes in directory and history event sources.
  • -r: Set the flag in order to run each buffer through to their end state on startup.

For more detail about event logging, how to enable it, and how to gather log files, check http://spark.apache.org/docs/latest/configuration.html#spark-ui

sparklint's People

Contributors

swhitear avatar roboxue avatar

Watchers

 avatar James Cloos 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.