You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "Hao Chen (JIRA)" <ji...@apache.org> on 2015/12/03 12:36:10 UTC

[jira] [Updated] (EAGLE-53) Docker Image for Eagle

     [ https://issues.apache.org/jira/browse/EAGLE-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hao Chen updated EAGLE-53:
--------------------------
    Description: 
{code}
docker pull apacheeagle/sandbox

docker run -p 9099:9099 -p 8080:8080 -p 8744:8744 -p 2181:2181 -p 2888:2888 \
  -p 6667:6667 -p 60020:60020 -p 60030:60030 -p 60010:60010 -d --dns 127.0.0.1 \
  --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN= \
  --env EAGLE_SERVER_HOST=sandbox.eagle.incubator.apache.org --name sandbox \
  -h sandbox.eagle.incubator.apache.org --privileged=true apacheeagle/sandbox:latest \
  --tag ambari-server=true

docker run -it --rm -e EXPECTED_HOST_COUNT=1 -e BLUEPRINT=hdp-singlenode-eagle \  
  --link sandbox:ambariserver --entrypoint /bin/sh apacheeagle/sandbox:latest \
  -c /tmp/install-cluster.sh
{code}


  was:
This is docker container for eagle to help users to have a quick preview about eagle features. And this project is to build apache/eagle images and provide eagle-functions to start the containers of eagle.

Prerequisite
=========

Docker environment (see https://www.docker.com)

Installation & Usage
===============

1. [Build Image]: Go to the root directory where the Dockerfile is in, build image with following command:

{code}
docker built -t apache/eagle . 
{code}

The docker image is named apache/eagle. Eagle docker image is based on ambari:1.7.0, it will install ganglia, hbase,hive,storm,kafka and so on in this image. Add startup script and buleprint file into image.
2. [Verify Image: After building the apache/eagle image successfully, verify the images and could find eagle image.

{code}
docker images
{code}

3. [Deploy Image]: This project also provides helper functions in script eagle-functions for convenience.

{code}
# Firstly, load the helper functions into context
source eagle-functions

# Secondly, start to deploy eagle cluster

# (1) start single-node container
eagle-deploy-cluster 1 

# (2) Or muti-node containers
eagle-deploy-cluster 3 
{code}

4. [Find IP and Port Mapping]: After the container is up and running. The first thing you need to do is finding the IP address and port mapping of the docker container:

{code}
docker inspect -f '{{ .NetworkSettings.IPAddress }}' eagle-server
docker ps
{code}

5. [Start to use Eagle]: Congratulations! You are able to start using Eagle now. Please open eagle ui at following address (username: ADMIN, password: secret by default)

{code}
http://{{container_ip}}:9099  
{code}

6. [Manage Eagle Cluster]: This step is about how to managing the eagle cluster though not must-have at starting. Eagle docker depends on Ambari to manage the cluster infrastructure of Eagle. Following are some helpful links:

* Ambari UI: http://{{container_ip}}:8080 (username: ADMIN, password: ADMIN)
* Storm UI: http://{{container_ip}}:8744


> Docker Image for Eagle
> ----------------------
>
>                 Key: EAGLE-53
>                 URL: https://issues.apache.org/jira/browse/EAGLE-53
>             Project: Eagle
>          Issue Type: New Feature
>    Affects Versions: 0.3.0
>         Environment: docker 1.9.0
>            Reporter: ZhaokunQin
>            Assignee: Hao Chen
>              Labels: Integration
>             Fix For: 0.3.0
>
>
> {code}
> docker pull apacheeagle/sandbox
> docker run -p 9099:9099 -p 8080:8080 -p 8744:8744 -p 2181:2181 -p 2888:2888 \
>   -p 6667:6667 -p 60020:60020 -p 60030:60030 -p 60010:60010 -d --dns 127.0.0.1 \
>   --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN= \
>   --env EAGLE_SERVER_HOST=sandbox.eagle.incubator.apache.org --name sandbox \
>   -h sandbox.eagle.incubator.apache.org --privileged=true apacheeagle/sandbox:latest \
>   --tag ambari-server=true
> docker run -it --rm -e EXPECTED_HOST_COUNT=1 -e BLUEPRINT=hdp-singlenode-eagle \  
>   --link sandbox:ambariserver --entrypoint /bin/sh apacheeagle/sandbox:latest \
>   -c /tmp/install-cluster.sh
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)