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 "Deploying HDF Sandbox Container:" | |
until docker ps 2>&1| grep STATUS>/dev/null; do sleep 1; done; >/dev/null | |
docker ps -a | grep sandbox-hdf | |
if [ $? -eq 0 ]; then | |
docker start sandbox-hdf | |
else | |
docker run --name sandbox-hdf --hostname "sandbox-hdf.hortonworks.com" --privileged -d \ | |
-p 9999:9999 \ | |
-p 12181:2181 \ |
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.hortonworks.com" --privileged -d \ | |
-p 1111:111 \ | |
-p 1000:1000 \ |
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
# Install requests package and list packages | |
import pip | |
# install request package using pip | |
pip.main(['install', 'requests']) | |
# List installed packges | |
installed_packages = pip.get_installed_distributions() | |
installed_packages_list = sorted(["%s==%s" % (i.key, i.version) | |
for i in installed_packages]) |
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
Gmail SMTP server address: smtp.gmail.com | |
Gmail SMTP username: Your Gmail address (e.g. [email protected]) | |
Gmail SMTP password: Your Gmail password | |
Gmail SMTP port (TLS): 587 | |
Gmail SMTP port (SSL): 465 | |
Gmail SMTP TLS/SSL required: yes |
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
### Download and run HDF 3.1 docker image | |
#!/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-hdf | |
if [ $? -eq 0 ]; then | |
docker start sandbox-hdf | |
else | |
docker pull hortonworks/sandbox-hdf-standalone:3.1.0 | |
docker run --privileged --name sandbox-hdf -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
### Download and run HDP 2.6.4 docker image | |
#!/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 pull hortonworks/sandbox-hdp-standalone:2.6.4 | |
docker run --name sandbox-hdp --hostname "sandbox-hdp.hortonworks.com" --privileged -d \ |
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
## Change to directory where you downloaded and extracted the latest version of NiFi | |
# Setup Java Home | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export PATH=${JAVA_HOME}/bin:$PATH | |
#Start NiFi | |
bin/nifi.sh start | |
## Access NiFi at http://localhost:8080/nifi |
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
## **** This is a work in progress snippit **** ## | |
## Link https://www.cyberciti.biz/faq/how-to-create-disk-image-on-mac-os-x-with-dd-command/ | |
# Step 1: Erase & format the usb drive with exFAT using the macos disk utility app | |
# step 2: list all the disk and identify the usb disk | |
diskutil list | |
# step 3: unmount disk using the disk utility macos app |
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
# Generate test file | |
dd if=/dev/zero of=/tmp/test2.img bs=512 count=1000 oflag=dsync |
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
## Install iperf3 using package manager | |
## Start iperf server | |
iperf3 -s <serverip> | |
## Start client and test speed against server | |
iperf3 -c <serverip> |
OlderNewer