Giter VIP home page Giter VIP logo

cdh_docker's Introduction

  • Command for bulding the image

      docker build --tag="dgreco/cm5:v1" .
    
  • Create a container with the following command:

      docker run -h cdh-docker --name=cdh-docker -i -d -t dgreco/cm5:v1
    
  • This container will start a Cloudera Manager service that you can use for creating all the services you need.

  • Then add a route, using this command, for accessing all the ports used by the container without actually exposing them:

      sudo route -n add 172.17.0.0/16 `echo $DOCKER_HOST | awk -F '//|:' '{ print $3}'`
    
  • Finally, you can get the Cloudera Manager IP address with this command:

      docker inspect cdh-docker | grep IPAddress | awk -F ':|,|"' '{ print $5}' | sed 1d | uniq
    
  • Create the following services:

    ZOOKEEPER

    HDFS

    YARN

    SPARK (YARN)

    HIVE

    IMPALA

  • Change the following parameters for HDFS:

      DataNode Default Group / Resource Management: dfs.datanode.max.locked.memory = 65536 B
      Service-Wide / Ports and Addresses: dfs.client.use.datanode.hostname = true
      DataNode Default Group / Ports and Addresses: dfs.datanode.use.datanode.hostname = true
      Service-Wide / Replication: dfs.replication = 1		
    
  • Change the following parameters for YARN:

      NodeManager Default Group / Resource Management: yarn.nodemanager.resource.memory-mb = 4 GiB
      ResourceManager Default Group / Resource Management: yarn.scheduler.maximum-allocation-mb = 2 GiB
    
  • After creating all the services, before committing the container you should stop the entire cluster.

  • Then commit the container for creating the CDH image:

      docker commit cdh-docker dgreco/cdh5:v1
    

cdh_docker's People

Contributors

dgreco avatar

Watchers

 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.