GithubHelp home page GithubHelp logo

witnesslq / sparkstreamingyarnlogs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hejian991/sparkstreamingyarnlogs

0.0 0.0 0.0 5 KB

Yarn log aggregation does not work for streaming apps unless the apps exists successfullly or killed

Shell 100.00%

sparkstreamingyarnlogs's Introduction

Yarn Logs - Spark Streaming

Spark on Yarn Cluster - log aggregation tool for spark streaming applications running on yarn

#Issue Yarn log aggregation does not work for streaming apps unless the apps completes successfullly or gets killed.

#Log4j Properties You can create roll over logs by passing the log4j properties to the spark streaming app as shown below

log4j.rootLogger=INFO, rolling log4j.appender.rolling=org.apache.log4j.rolling.RollingFileAppender log4j.appender.rolling.layout=org.apache.log4j.PatternLayout log4j.appender.rolling.layout.conversionPattern=[%d] %p %m (%c)%n log4j.appender.rolling.rollingPolicy = org.apache.log4j.rolling.TimeBasedRollingPolicy log4j.appender.rolling.rollingPolicy.FileNamePattern = ${spark.yarn.app.container.log.dir}/stderr%d{yyyyMMddHHmm} log4j.appender.rolling.file=${spark.yarn.app.container.log.dir}/stderr log4j.appender.rolling.rollingPolicy.ActiveFileName=${spark.yarn.app.container.log.dir}/stderr log4j.appender.rolling.encoding=UTF-8

#Script Given an applicationId and time range Script "yarncontainerlogs.sh" will aggregate logs from all the yarn containers for that range of time and dump it in your current directory

#Script Usage applicationid active_file_name start_date end_date in order ex: yarncontainerlogs.sh application_1452787512024_0090 stderr 201601141641 201601141643

sparkstreamingyarnlogs's People

Contributors

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