Repository: bigtop Updated Branches: refs/heads/master cb1ddb941 -> ca1bcbf25
BIGTOP-3102: docker-hadoop.sh WARNING: The scale command is deprecated When running docker-hadoop.sh to create a virtual Hadoop cluster on top of Docker containers, there is a warning message: WARNING: The scale command is deprecated. Use the up command with the --scale flag instead. Checking the shell file, the warning is spit out by docker-compose. There is a suggestion from docker-compose official website to modify it using 'up': https://docs.docker.com/compose/reference/scale/ This patch made this update. And verified using Arm aarch64. Signed-off-by: Guodong Xu <[email protected]> Signed-off-by: Evans Ye <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/ca1bcbf2 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/ca1bcbf2 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/ca1bcbf2 Branch: refs/heads/master Commit: ca1bcbf25d177c80a5733f3782b9bb659570594a Parents: cb1ddb9 Author: Guodong Xu <[email protected]> Authored: Fri Nov 23 14:34:49 2018 +0800 Committer: Evans Ye <[email protected]> Committed: Sun Nov 25 02:18:49 2018 +0800 ---------------------------------------------------------------------- provisioner/docker/docker-hadoop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/ca1bcbf2/provisioner/docker/docker-hadoop.sh ---------------------------------------------------------------------- diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh index 3300c93..e53da15 100755 --- a/provisioner/docker/docker-hadoop.sh +++ b/provisioner/docker/docker-hadoop.sh @@ -55,7 +55,7 @@ create() { export MEM_LIMIT=$(get-yaml-config docker memory_limit) # Startup instances - docker-compose -p $PROVISION_ID scale bigtop=$1 + docker-compose -p $PROVISION_ID up -d --scale bigtop=$1 --no-recreate if [ $? -ne 0 ]; then log "Docker container(s) startup failed!"; exit 1;
