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

ASF subversion and git services commented on IMPALA-8186:
---------------------------------------------------------

Commit dbe9fefa05ce9738865349e9130004457ff31c62 in impala's branch 
refs/heads/master from Tim Armstrong
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=dbe9fef ]

IMPALA-8186: script to configure docker network

This automates the network setup that I did manually
in http://gerrit.cloudera.org:8080/12189

After running the script it should be possible to
run "./buildall.sh -format -testdata" to load
test data with the right hostnames, then
"start-impala-cluster.py --docker_network=network-name"
to run a dockerised minicluster.

Change-Id: Icb4854aa951bcad7087a9653845b22ffd862057d
Reviewed-on: http://gerrit.cloudera.org:8080/12452
Reviewed-by: Philip Zeyliger <[email protected]>
Tested-by: Tim Armstrong <[email protected]>


> Automate setup of docker bridge network for dockerised minicluster
> ------------------------------------------------------------------
>
>                 Key: IMPALA-8186
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8186
>             Project: IMPALA
>          Issue Type: Sub-task
>          Components: Infrastructure
>            Reporter: Tim Armstrong
>            Assignee: Tim Armstrong
>            Priority: Major
>              Labels: docker
>
> I had some manual setup that I did to create a docker network and set 
> INTERNAL_LISTEN_HOST as the gateway. I think we could automate it with some 
> logic like the following:
> {code}
> docker network create -d bridge impala-cluster
> IMPALA_NETWORK_GATEWAY=$(docker network inspect impala-cluster | grep -o 
> '"Gateway": "[0-9\.]*"' | grep -o "[0-9.]*")
> echo "export INTERNAL_LISTEN_HOST=${IMPALA_NETWORK_GATEWAY}" >> 
> bin/impala-config-local.sh
> echo 'export DEFAULT_FS=hdfs://${INTERNAL_LISTEN_HOST}:20500' >> 
> bin/impala-config-local.sh
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to