Git Product home page Git Product logo

yarnschedulertoexcel's Introduction

yarnSchedulerToExcel

Purpose of this project is to take a capacity-schedule.xml that is generated by the yarn fs2cs tool and convert the xml to xlsx format for admins to review.

Follow the instruction listed for running the fs2cs tool found: https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/yarn-scheduler-conversion/topics/yarn-fs2cs-conversion-utility.html to capture the capacity-scheduler.xml file as the input for this python script.

Requirements

  • Python 3.x
  • argparse
  • Panda Libary

You can install the libaries using pip:

pip3 install pandas argparse

Usage for fairSchedulerToXLS

usage: fairSchedulerToXLS.py [-h] -x XML_FILE -o EXCEL_FILE

Parse YARN Fair Scheduler XML and output to Excel.

optional arguments:
  -h, --help            show this help message and exit
  -x XML_FILE, --xml XML_FILE
                        Path to the Fair Scheduler XML file
  -o EXCEL_FILE, --output EXCEL_FILE
                        Path for the output Excel file

Example:

python3 fairSchedulerToXLS.py -x fair-scheduler.xml -o my-fair-scheduler.xlsx

Usage for capacityToXLS

python3 capacityToXLS.py [-h] -x XML_FILE -o EXCEL_FILE

Parse YARN Capacity Scheduler XML and output to Excel.

optional arguments:
  -h, --help            show this help message and exit
  -x XML_FILE, --xml XML_FILE
                        Path to the Capacity Scheduler XML file
  -o EXCEL_FILE, --output EXCEL_FILE
                        Path for the output Excel file

Example:

python3 capacityToXLS.py -x capacity-scheduler.xml -o my-capacity-scheduler.xlsx

yarnschedulertoexcel's People

Contributors

scottsummers avatar

Watchers

 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.