https://ozone.nextcentury.com//ozone-platform
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 -x | |
# ref: https://docs.docker.com/compose/install/#install-compose | |
LATEST_VERSION= | |
function get_latest_release() { | |
REPO=${1:-docker} | |
COMPONENT=${2:-compose} | |
# basename `curl --silent https://github.com/docker/compose/releases/latest|cut -d'"' -f2` | |
LATEST_VERSION="$(basename `curl --silent https://github.com/${REPO}/${COMPONENT}/releases/latest|cut -d'"' -f2`)" |
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 | |
#### ------------------------- Use ---------------------------- | |
#### To find our what PID/Process is binding to a specific port | |
#### ---------------------------------------------------------- | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <port-to-search-process>" | |
exit 1 | |
fi |
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 -x | |
# reinstall mpack | |
echo "step1: ambari-server stop" | |
sudo ambari-server stop | |
echo "step2: ambari-server uninstall-mpack --mpack-name=hdf-ambari-mpack --verbose" | |
sudo ambari-server uninstall-mpack --mpack-name=hdf-ambari-mpack --verbose |
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/expect -- | |
## To use: | |
## expect -f ./automate-ambari-server-setup.exp | |
## | |
set timeout 300 | |
spawn /usr/sbin/ambari-server setup | |
expect { | |
"Customize user account for ambari-server daemon " { |
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 -x | |
# ------------------------------------ | |
# maintainer: DrSnowbird@openkbs.org | |
# license: Apache License Version 2.0 | |
# ------------------------------------ | |
## -- change username and password and clustername according to yours -- | |
#ambari_username=<ChangeMe> |
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 -x | |
# maintainer DrSnowbird@gmail.com | |
# ref: https://docs.docker.com/install/linux/docker-ce/centos/#os-requirements | |
# Ref: https://docs.docker.com/install/linux/docker-ce/centos/#set-up-the-repository | |
# -- To Use Overlay2 driver or not: 1 (Yes), 0 (No) -- | |
# -- Default 0 (NO): use default Docker setup, i.e., devicemapper loop (not for scaling!) -- | |
OVERLAY2_DRIVER=${1:-0} |
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
sudo docker rm -f $(dps -a|grep Exited|cut -d' ' -f1) |
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
# ref: https://serverfault.com/questions/918335/best-way-to-run-python-3-7-on-ubuntu-16-04-which-comes-with-python-3-5 | |
# Install requirements | |
apt-get install -y build-essential | |
apt-get install -y checkinstall | |
apt-get install -y libreadline-gplv2-dev | |
apt-get install -y libncursesw5-dev | |
apt-get install -y libssl-dev | |
apt-get install -y libsqlite3-dev | |
apt-get install -y tk-dev | |
apt-get install -y libgdbm-dev |
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 | |
# ------------------------------------ | |
# maintainer: DrSnowbird@openkbs.org | |
# license: Apache License Version 2.0 | |
# ------------------------------------ | |
if [ $# -lt 2 ]; then | |
echo "*** ERROR ***" | |
echo "... Need two input arguments ..." |
NewerOlder