Member since
04-18-2019
2
Posts
0
Kudos Received
0
Solutions
04-19-2019
01:44 PM
I run this script #!/usr/bin/env bash #This script downloads HDP sandbox along with their proxy docker container set -x # CAN EDIT THESE VALUES registry="hortonworks" name="sandbox-hdp" version="3.0.1" proxyName="sandbox-proxy" proxyVersion="1.0" flavor="hdp" # NO EDITS BEYOND THIS LINE # housekeeping echo $flavor > sandbox-flavor # create necessary folders for nginx and copy over our rule generation script there mkdir -p sandbox/proxy/conf.d mkdir -p sandbox/proxy/conf.stream.d # pull and tag the sandbox and the proxy container docker pull "$registry/$name:$version" docker pull "$registry/$proxyName:$proxyVersion" # start the docker container and proxy if [ "$flavor" = "hdf" ]; then hostname="sandbox-hdf.hortonworks.com" elif [ "$flavor" = "hdp" ]; then hostname="sandbox-hdp.hortonworks.com" fi version=$(docker images | grep $registry/$name | awk '{print $2}'); # Create cda docker network docker network create cda 2>/dev/null # Deploy the sandbox into the cda docker network docker run --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version" echo " Remove existing postgres run files. Please wait" sleep 2 docker exec -t "$name" sh -c "rm -rf /var/run/postgresql/*; systemctl restart postgresql-9.6.service;" #Deploy the proxy container. sed 's/sandbox-hdp-security/sandbox-hdp/g' assets/generate-proxy-deploy-script.sh > assets/generate-proxy-deploy-script.sh.new mv -f assets/generate-proxy-deploy-script.sh.new assets/generate-proxy-deploy-script.sh chmod +x assets/generate-proxy-deploy-script.sh assets/generate-proxy-deploy-script.sh 2>/dev/null #check to see if it's windows if uname | grep MINGW; then sed -i -e 's/\( \/[a-z]\)/\U\1:/g' sandbox/proxy/proxy-deploy.sh fi chmod +x sandbox/proxy/proxy-deploy.sh 2>/dev/null sandbox/proxy/proxy-deploy.sh
... View more
04-18-2019
03:06 PM
We got an error "standard_init_linux.go:207: exec user process caused "exec format error"". When I run the script.
... View more
Labels:
- Labels:
-
Hortonworks Data Platform (HDP)