Giter Club home page Giter Club logo

zing-hdfs's Introduction

Description:

Meant to standup a Hadoop 2.7.3 HDFS HA on multiple machines inside Docker containers. On the "active" namenode, the 1st time it starts up, it will format the namenode as well as format the ZK for failover. The "standby" namenode will bootStrapStandby.

Runtime options:

  • active: Start the 1st namenode with a zkfc service.
  • standby: Start the 2nd namenode and bootstrap from an already formatted/running namenode. This will also start a zkfc service.
  • zkfc: Start the zkfc in as a separate service
  • journalnode: Start a journalnode
  • datanode: Starts a datanode
  • bash: allows you to jump in and check things out

Environment Variables

CLUSTER_NAME: the HDFS URI default filesystem name

NNODE1_IP: Namenode #1 IP/hostname

NNODE2_IP: Namenode #2 IP/hostname

JNODES: semicolon separated list of journal node IPS, e.g jn01:8485;jn02:8485;jn03:8485

ZK_NODES: comma separated list of zookeeper IPS, e.g. zk01:2181,zk02:2181,zk03:2181

Volumes:

/data/hdfs/nn: inside the container, where the fsimage/namenode metadata exists

/data/hdfs/journal: inside the container, where the journal node keeps the edits

/data/jdfs/dn: inside the container, where the datanode keeps the blocks

Command Line examples

  • docker run --name nn01 --net=host --env-file hdfs-envs --env NNODE_ID=nn1 hdfs active

zing-hdfs's People

Contributors

jafcrocker avatar

Watchers

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