CREATE TABLE FIREWALL_LOGS(
time STRING,
ip STRING,
country STRING,
status INT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Checking docker daemon..." | |
If ((Get-Process | Select-String docker) -ne $null) { | |
Write-Host "Docker is up and running" | |
} | |
Else { | |
$Host.UI.WriteErrorLine("Please start Docker service. https://docs.docker.com/docker-for-windows/") | |
return | |
} | |
If ((docker images | Select-String sandbox) -ne $null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Waiting for docker daemon to start up:" | |
until /usr/bin/docker ps 2>&1| grep STATUS>/dev/null; do sleep 1; done; >/dev/null | |
/usr/bin/docker ps -a | grep sandbox | |
if [ $? -eq 0 ]; then | |
/usr/bin/docker start sandbox | |
else | |
docker run -v hadoop:/hadoop --name sandbox --hostname "sandbox.hortonworks.com" --privileged -d \ | |
-p 6080:6080 \ | |
-p 18081:18081 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Platform options: | |
# orendain/sandbox-hdf-base | |
# orendain/sandbox-hdf-streaming | |
# orendain/sandbox-hdf-analytics | |
# No longer using opts: --security-opt seccomp=unconfined --cap-add SYS_ADMIN | |
docker run --privileged --name sandbox-hdf-streaming -h sandbox-hdf.hortonworks.com -itd \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Waiting for docker daemon to start up:" | |
until docker ps 2>&1| grep STATUS>/dev/null; do sleep 1; done; >/dev/null | |
docker ps -a | grep sandbox-hdp | |
if [ $? -eq 0 ]; then | |
docker start sandbox-hdp | |
else | |
docker run --name sandbox-hdp --hostname "sandbox-hdp.hortonworks.com" --privileged -d \ | |
-p 15500:15500 \ | |
-p 15501:15501 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version=DEVEL | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use CDROM installation media | |
cdrom | |
# Use graphical install | |
graphical | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=sdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Waiting for docker daemon to start up:" | |
until docker ps 2>&1| grep STATUS>/dev/null; do sleep 1; done; >/dev/null | |
docker ps -a | grep sandbox-hdp | |
if [ $? -eq 0 ]; then | |
docker start sandbox-hdp | |
else | |
docker run --name sandbox-hdp --hostname "sandbox-hdp.hortonworks.com" --privileged -d \ | |
-p 15500:15500 \ | |
-p 15501:15501 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker run --privileged --name sandbox-hdp-security -h sandbox-hdp.hortonworks.com --network=cda --network-alias=sandbox-hdp.hortonworks.com -d hortonworks/sandbox-hdp-standalone:2.6.4 /usr/sbin/sshd -D | |
docker exec -d sandbox-hdp-security /root/start-sandbox-hdp.sh | |
sed -i 's/hdpEnabled=false/hdpEnabled=true/g' /sandbox/proxy/generate-proxy-deploy-script.sh | |
bash /sandbox/proxy/generate-proxy-deploy-script.sh | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y python34 python34-pip python34-devel gcc-c++ | |
pip3 install --upgrade pip | |
pip3 install jupyter |