You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2016/10/13 20:12:21 UTC

[jira] [Commented] (BIGTOP-2543) Some minor problems on provisioner/docker/docker-hadoop.sh

    [ https://issues.apache.org/jira/browse/BIGTOP-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15573028#comment-15573028 ] 

Konstantin Boudnik commented on BIGTOP-2543:
--------------------------------------------

It looks good to me. [~evans_ye], would you have a chance to take a look real quick? Shouldn't take much of your time ;) Thanks!

> Some minor problems on provisioner/docker/docker-hadoop.sh
> ----------------------------------------------------------
>
>                 Key: BIGTOP-2543
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2543
>             Project: Bigtop
>          Issue Type: Bug
>          Components: provisioner
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Minor
>         Attachments: BIGTOP-2543.1.patch
>
>
> 1. If there's no docker instance, {{docker-hadoop.sh --list}} shows docker-compose's help message.
> {code}
> sekikn@ubuntu:~/bigtop/provisioner/docker$ docker ps
> CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
> sekikn@ubuntu:~/bigtop/provisioner/docker$ ./docker-hadoop.sh -l
> Define and run multi-container applications with Docker.
> Usage:
>   docker-compose [-f=<arg>...] [options] [COMMAND] [ARGS...]
>   docker-compose -h|--help
> Options:
>   -f, --file FILE           Specify an alternate compose file (default: docker-compose.yml)
>   -p, --project-name NAME   Specify an alternate project name (default: directory name)
>   --x-networking            (EXPERIMENTAL) Use new Docker networking functionality.
>                             Requires Docker 1.9 or later.
>   --x-network-driver DRIVER (EXPERIMENTAL) Specify a network driver (default: "bridge").
>                             Requires Docker 1.9 or later.
>   --verbose                 Show more output
>   -v, --version             Print version and exit
> (snip)
> {code}
> 2. {{docker-hadoop.sh --create}} seems to execute unnecessary {{docker cp}} command and displays a file-not-found warning.
> {code}
> sekikn@ubuntu:~/bigtop/provisioner/docker$ ./docker-hadoop.sh -c 1
> (snip)
> lstat /home/sekikn/bigtop/provisioner/docker/centos: no such file or directory
> {code}
> I think line 104 was accidentally copied from line 97.
> {code}
>  95 copy-to-instances() {
>  96     for node in ${NODES[*]}; do
>  97         docker cp  $1 $node:$2 &
>  98     done
>  99     wait
> 100 }
> 101 
> 102 bootstrap() {
> 103     for node in ${NODES[*]}; do
> 104         docker cp  $1 $node:$2 &
> 105         docker exec $node bash -c "/bigtop-home/bigtop-deploy/vm/utils/setup-env-$1.sh $2" &
> 106     done
> 107     wait
> 108 }
> {code}
> 3. Its help message shows an option usage as {{--create=NUM_INSTANCES}}, but the equal should be removed (same as BIGTOP-2512).
> {code}
> sekikn@ubuntu:~/bigtop/provisioner/docker$ ./docker-hadoop.sh --create=3
> Unknown argument: '--create=3'
> usage: docker-hadoop.sh [-C file ] args
>        -C file                                   Use alternate file for config.yaml
>   commands:
>        -c NUM_INSTANCES, --create=NUM_INSTANCES  Create a Docker based Bigtop Hadoop cluster
> {code}



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