Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

HDF 3.0.2 Sandbox docker version download URL required.

Explorer

Kindly share URL for downloading HDF 3.0.2 docker version and that has to support CDA. 

 

Only 3.1.1 seems there to download in this URL . https://www.cloudera.com/downloads/hortonworks-sandbox/hdf.html . Any old repo?

1 REPLY 1

Explorer

I have tried to change hdf version to 3.0.2 to download and get it deployed automatically. but same did not happen and thrown an error of latest version existing. i need both version with cda in docker

 

#!/usr/bin/env sh
#This script downloads HDF sandbox along with their proxy docker container
set -x

# CAN edit these values
registry="hortonworks"
name="sandbox-hdf-302"
version="3.0.2"
flavor="hdf"
proxyName="sandbox-proxy"
proxyVersion="1.0"

# NO EDITS BEYOND THIS LINE

# create necessary folders for nginx and copy over our rule generation script there
echo $flavor > sandbox-flavor
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 hortonworks/$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;"

# Deploy the proxy container.
sed 's/sandbox-hdf-standalone-cda-ready/sandbox-hdf/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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.