Giter VIP home page Giter VIP logo

hadoop-env-config's Introduction

hadoop-env-config

Build Status Coverage Status

The script for collecting Hadoop env parameters from different platforms (CDH, HDP)

Supported platforms:

Platform Versions
HDP HDP 2.2.8
CDH CDH 4.6, 4.7, 5.3

Installation

The installation process is simple as possible. You just need to download latest version of self-contained binary package hadoop-env-config from Releases page https://github.com/intropro/hadoop-env-config/releases

How to use

$ ./hadoop-env-config --help
Usage: hadoop-env-config [options]

Options:
  --version             show program\'s version number and exit
  -h, --help            show this help message and exit
  -s SETTINGS, --settings=SETTINGS
                        the path to JSON file with settings

  Optional arguments:
    -m MAPPING, --mapping=MAPPING
                        the path to JSON file with env properties mapping.
                        By default will be used the mapping from the package,
                        depends on platform parameter in the settings file.
    -o OUTPUT, --output=OUTPUT
                        the path to JSON file with env properties output,
                        default: stdout

Configuration

Parameters

Name Env Description
platform HDP/CDH Platform name: CDH46, CDH53, HDP22, ...
config-dir HDP/CDH The directory path to configuration files
cdh-gateway-http-protocol CDH Protocol for connecting via Cloudera API: http, https
cdh-gateway-hostname CDH Hostname for connecting to Cloudera API
cdh-gateway-port CDH Port for Cloudera API
cdh-gateway-username CDH Username
cdh-gateway-password CDH Password
cdh-cluster-name CDH Cloudera cluster name
server CDH/HDP Web server

CDH4/5 settings file (example)

{
    "platform": "CDH47",
    "config-dir": "/tmp/cloudera-env-config/",

    "cdh-gateway-http-protocol": "http",
    "cdh-gateway-hostname": "test-gw-node",
    "cdh-gateway-port": 7180,
    "cdh-gateway-username": "cloudera",
    "cdh-gateway-password": "cloudera",
    "cdh-cluster-name": "TestCluster1",

    "server": "localhost:8080"
}

HDP settings file (example)

{
    "platform": "HDP22",
    "config-dir": "/etc",

    "server": "localhost:8080"
}

Custom settings

Time to time there are needed to add custom parameters to configuration files, like ssh credentials to Hadoop cluster. These parameters can be specified in the settings file, the section: custom-env-properties

{
    "platform": "HDP22",
    "config-dir": "/etc",

    "server": "localhost:8080",
    "custom-env-properties": {
        "sshPort": 22,
        "sshUserName": "username",
        "sshPassword": "password"
    }
}

Mapping file

Example for CDH4.x

{
    "core-site": {
        "fs.defaultFS": "nameNode",
        "hadoop.security.authentication": "securityAuthentication"
    },
    "mapred-site": {
        "mapred.job.tracker": "jobTracker"
    },
    "hbase-site": {
        "hbase.zookeeper.quorum": "hbaseZookeeperQuorum"
    },
    "hive-site": {
        "hive.zookeeper.quorum": "hiveZookeeperQuorum",
        "hive.metastore.uris": "hiveMetastoreUris",
        "hive.metastore.kerberos.principal": "hiveMetastorePrincipal"
    },
    "oozie-site": {
        "oozie.base.url": "oozieServerUrl",
        "oozie.base.url": "oozieServer"
    }
}

Example for HDP2.2

{
    "core-site": {
        "fs.defaultFS": "nameNode",
        "hadoop.security.authentication": "securityAuthentication"
    },
    "yarn-site": {
        "yarn.resourcemanager.address": "jobTracker"
    },
    "hbase-site": {
        "hbase.zookeeper.quorum": "hbaseZookeeperQuorum"
    },
    "hive-site": {
        "hive.zookeeper.quorum": "hiveZookeeperQuorum",
        "hive.metastore.uris": "hiveMetastoreUris",
        "hive.metastore.kerberos.principal": "hiveMetastorePrincipal"
    },
    "oozie-site": {
        "oozie.base.url": "oozieServerUrl",
        "oozie.base.url": "oozieServer"
    }
}

hadoop-env-config's People

Contributors

ownport avatar

Watchers

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