aboutsummaryrefslogtreecommitdiff
path: root/provisioner
diff options
context:
space:
mode:
authorEvans Ye <evansye@apache.org>2017-01-15 03:41:29 +0800
committerEvans Ye <evansye@apache.org>2017-01-21 11:51:48 +0800
commit182eafef28c3247218b068e764d032233461d5b4 (patch)
treeb9c875faef1677d414d19fe698060ec1a6dcf19f /provisioner
parent639348c809f46bbc8585a96f6d35d04077880232 (diff)
BIGTOP-2668. Polish and update Docker Provisioner configurations
Diffstat (limited to 'provisioner')
-rw-r--r--provisioner/docker/README.md13
l---------[-rw-r--r--]provisioner/docker/config.yaml33
-rw-r--r--provisioner/docker/config_centos6.yaml25
-rw-r--r--provisioner/docker/config_centos7.yaml13
-rw-r--r--provisioner/docker/config_debian8.yaml (renamed from provisioner/docker/config_debian.yaml)13
-rw-r--r--provisioner/docker/config_ubuntu_trusty.yaml (renamed from provisioner/docker/config_ubuntu.yaml)13
-rw-r--r--provisioner/docker/docker-compose.yml1
-rwxr-xr-xprovisioner/docker/docker-hadoop.sh3
8 files changed, 43 insertions, 71 deletions
diff --git a/provisioner/docker/README.md b/provisioner/docker/README.md
index 8a8b8ee5..ef52ff1a 100644
--- a/provisioner/docker/README.md
+++ b/provisioner/docker/README.md
@@ -123,20 +123,17 @@ usage: docker-hadoop.sh [-C file ] args
```
docker:
- memory_size: "2048"
+ memory_limit: "2g"
```
-2) Use different host ports mapping for web UIs
+2) Enable local repository
-```
-namenode_ui_port: "50070"
-yarn_ui_port: "8088"
-hbase_ui_port: "60010"
+If you've built packages using local cloned bigtop and produced the apt/yum repo, set the following to true to deploy those packages:
```
-Note: If running on OS X or Windows, the boot2docker VM should be reloaded after ports changed
-
+enable_local_repo = true
+```
##Configure Apache Hadoop ecosystem components
* Choose the ecosystem you want to be deployed by modifying components in config.yaml
diff --git a/provisioner/docker/config.yaml b/provisioner/docker/config.yaml
index 86f35e75..776a8f1f 100644..120000
--- a/provisioner/docker/config.yaml
+++ b/provisioner/docker/config.yaml
@@ -1,32 +1 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-docker:
- memory_size: "4096"
- image: "bigtop/deploy:centos-6"
-
-boot2docker:
- memory_size: "4096"
- number_cpus: "1"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.0.0/centos/6/x86_64"
-distro: centos
-components: [hadoop, yarn]
-namenode_ui_port: "50070"
-yarn_ui_port: "8088"
-hbase_ui_port: "60010"
-enable_local_repo: false
-smoke_test_components: [mapreduce, pig]
-jdk: "java-1.7.0-openjdk-devel.x86_64"
+config_centos7.yaml \ No newline at end of file
diff --git a/provisioner/docker/config_centos6.yaml b/provisioner/docker/config_centos6.yaml
new file mode 100644
index 00000000..54ca86c3
--- /dev/null
+++ b/provisioner/docker/config_centos6.yaml
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+docker:
+ memory_limit: "4g"
+ image: "bigtop/puppet:centos-6"
+
+repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.1.0/centos/6/x86_64"
+distro: centos
+components: [hadoop, yarn]
+enable_local_repo: false
+smoke_test_components: [mapreduce, pig]
+jdk: "java-1.7.0-openjdk-devel.x86_64"
diff --git a/provisioner/docker/config_centos7.yaml b/provisioner/docker/config_centos7.yaml
index 3610a8f1..44920f4b 100644
--- a/provisioner/docker/config_centos7.yaml
+++ b/provisioner/docker/config_centos7.yaml
@@ -14,19 +14,12 @@
# limitations under the License.
docker:
- memory_size: "4096"
- image: "bigtop/deploy:centos-7"
+ memory_limit: "4g"
+ image: "bigtop/puppet:centos-7"
-boot2docker:
- memory_size: "4096"
- number_cpus: "1"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.0.0/centos/7/x86_64"
+repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.1.0/centos/7/x86_64"
distro: centos
components: [hadoop, yarn]
-namenode_ui_port: "50070"
-yarn_ui_port: "8088"
-hbase_ui_port: "60010"
enable_local_repo: false
smoke_test_components: [mapreduce, pig]
jdk: "java-1.7.0-openjdk-devel.x86_64"
diff --git a/provisioner/docker/config_debian.yaml b/provisioner/docker/config_debian8.yaml
index f6b11aea..2ed89463 100644
--- a/provisioner/docker/config_debian.yaml
+++ b/provisioner/docker/config_debian8.yaml
@@ -14,19 +14,12 @@
# limitations under the License.
docker:
- memory_size: "4096"
- image: "bigtop/deploy:debian-8"
+ memory_limit: "4g"
+ image: "bigtop/puppet:debian-8"
-boot2docker:
- memory_size: "4096"
- number_cpus: "1"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.0.0/debian/8/x86_64"
+repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.1.0/debian/8/x86_64"
distro: debian
components: [hadoop, yarn]
-namenode_ui_port: "50070"
-yarn_ui_port: "8088"
-hbase_ui_port: "60010"
enable_local_repo: false
smoke_test_components: [mapreduce, pig]
jdk: "openjdk-7-jdk"
diff --git a/provisioner/docker/config_ubuntu.yaml b/provisioner/docker/config_ubuntu_trusty.yaml
index e4ea6f3b..4ac83dc3 100644
--- a/provisioner/docker/config_ubuntu.yaml
+++ b/provisioner/docker/config_ubuntu_trusty.yaml
@@ -14,19 +14,12 @@
# limitations under the License.
docker:
- memory_size: "4096"
- image: "bigtop/deploy:ubuntu-14.04"
+ memory_limit: "4g"
+ image: "bigtop/puppet:ubuntu-14.04"
-boot2docker:
- memory_size: "4096"
- number_cpus: "1"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.0.0/ubuntu/trusty/x86_64"
+repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.1.0/ubuntu/trusty/x86_64"
distro: debian
components: [hadoop, yarn]
-namenode_ui_port: "50070"
-yarn_ui_port: "8088"
-hbase_ui_port: "60010"
enable_local_repo: false
smoke_test_components: [mapreduce, pig]
jdk: "openjdk-7-jdk"
diff --git a/provisioner/docker/docker-compose.yml b/provisioner/docker/docker-compose.yml
index df107aea..cee849e9 100644
--- a/provisioner/docker/docker-compose.yml
+++ b/provisioner/docker/docker-compose.yml
@@ -18,6 +18,7 @@ bigtop:
command: /sbin/init
domainname: bigtop.apache.org
privileged: true
+ mem_limit: ${MEM_LIMIT}
volumes:
- ../../:/bigtop-home
- ./config/hiera.yaml:/etc/puppet/hiera.yaml
diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh
index d40bd8b7..05b712c5 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -43,7 +43,6 @@ create() {
mkdir -p config/hieradata 2> /dev/null
echo > ./config/hiera.yaml
echo > ./config/hosts
- export DOCKER_IMAGE=$(get-yaml-config docker image)
# Startup instances
docker-compose -p $PROVISION_ID scale bigtop=$1
@@ -193,6 +192,8 @@ fi
if [ -n "$PROVISION_ID" ]; then
NODES=(`docker-compose -p $PROVISION_ID ps -q`)
fi
+export DOCKER_IMAGE=$(get-yaml-config docker image)
+export MEM_LIMIT=$(get-yaml-config docker memory_limit)
while [ $# -gt 0 ]; do
case "$1" in