Code Monkey home page Code Monkey logo

hdfshelper's Introduction

hdfshelper

Go

Do you find yourself constantly searching for config options in Apache Hadoop? Then this is for you. Fuzzy find your way to the configuration option you're searching for. By default it pulls the options for the latest version aka current.

It prints out the xml ready to be pasted into the configuration file.

Usage

search all options from hdfs-site.xml on version r3.3.4:

hdfshelper -m hdfs -v r3.3.4

copy the output to clipboard (macOS):

hdfshelper -m core | pbcopy

search the description instead of the name (switch):

hdfshelper -s true

You can select more than one option to print with <TAB>. screenshot of fuzzyfind

Usage of hdfshelper:
  -m string
    	mode. decide which part of hdfs you want to configure and fuzzy find. Supported modes are:
    	        - core [core-site.xml]
    	        - yarn [yarn-site.xml]
    	        - hdfs [hdfs-site.xml](shorthand) (default "hdfs")
  -mode string
    	mode. decide which part of hdfs you want to configure and fuzzy find. Supported modes are:
    	        - core [core-site.xml]
    	        - yarn [yarn-site.xml]
    	        - hdfs [hdfs-site.xml] (default "hdfs")
  -s	Wether to search in configuration names or descriptions(shorthand)
  -switch
    	Wether to search in configuration names or descriptions
  -v string
    	The version of hadoop in format: rx.y.z (e.g. r3.3.6)(shorthand) (default "current")
  -version string
    	The version of hadoop in format: rx.y.z (e.g. r3.3.6) (default "current")

Building

go build 

or

nix build

Disclaimer

I use this little program for learning go. Bugs, crashes and everything that sucks are to be expected.

hdfshelper's People

Contributors

pandalanax avatar

Stargazers

cnrd avatar  avatar ✮✮✮ 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.