This file contains hidden or 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 | |
#get-cmpasswd.sh | |
# password for amon, smon, hmon, rman, nav, scm | |
cat /etc/cloudera-scm-server/db*.properties | sed '/^#/ d' | |
# password for cloudera-scm | |
head -1 /var/lib/cloudera-scm-server-db/data/generated_password.txt | |
# password for hive | |
psql -U scm -W scm -h localhost -p 7432 -c "select attr,value from configs where attr like 'hive_metastore_database%' order by revision_id DESC limit 5;" |
This file contains hidden or 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
Here's an updated explanation, 3.9 kernel | |
[root@destiny ~]# cat /proc/meminfo | |
MemTotal: 16439720 kB | |
MemFree: 14309796 kB | |
Buffers: 67732 kB | |
Cached: 667072 kB | |
SwapCached: 0 kB | |
Active: 527128 kB | |
Inactive: 263504 kB | |
Active(anon): 112068 kB |
This file contains hidden or 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
# ~/.screenrc | |
# UTF-8 everywhere | |
defutf8 on | |
# disable Ctrl-S/Ctrl-Q "flow control" | |
defflow off | |
# skip intro | |
startup_message off |
This file contains hidden or 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
git clone -b experimental-dev https://git-wip-us.apache.org/repos/asf/incubator-blur.git |
This file contains hidden or 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
#platform=x86, AMD64, or Intel EM64T | |
#version=DEVEL | |
# Firewall configuration | |
firewall --disabled --trust=eth0 --ssh | |
# Install OS instead of upgrade | |
install | |
# Use CDROM installation media | |
cdrom | |
# Root password | |
rootpw --iscrypted $1$dhsnLjk9$4Xx./mgXqMvEssQENwwZz. |
This file contains hidden or 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 | |
MSG=`sudo apt-get --yes dist-upgrade` | |
MSG_HEADING='sudo apt-get --yes dist-upgrade' | |
GmailSend.py -u [email protected] -p bla -t [email protected] -s "server update" -b "$MSG_HEADING \n\n $MSG" |
This file contains hidden or 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
# Read the contents of ~/.path into $PATH, if ~/.path exists. ~/.path should be a file | |
# consisting of one path on each line, such as: | |
# | |
# ~$ cat ~/.path | |
# # vim: ft=sh | |
# ~/usr/bin | |
# /opt/local/bin | |
# ... etc ... | |
# | |
# Note that comments begin with a hash (#). |
This file contains hidden or 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
for service in amon smon rman hmon nav hive; do | |
mysql -u root -e 'create database $service DEFAULT default character set utf8 collate utf8_general_ci;' | |
mysql -u root -e "grant all on $service.* TO '$service'@'localhost' IDENTIFIED BY 'password';" | |
mysql -u root -e "grant all on $service.* TO '$service'@'192-168-1-109.lunix.co' IDENTIFIED BY 'password';" | |
mysql -u root -e "grant all on $service.* TO '$service'@'%.lunix.co' IDENTIFIED BY 'password';" | |
done | |
mysql -u root -e 'show databases;' |
This file contains hidden or 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 | |
# curl -L "https://raw.github.com/sacharya/random-scripts/master/knife-rackspace-hadoop/wordcount.sh" | bash | |
set -x | |
hadoop fs -rmr /shakespeare | |
cd /tmp | |
wget http://homepages.ihug.co.nz/~leonov/shakespeare.tar.bz2 | |
tar xjvf shakespeare.tar.bz2 | |
now=`date +"%y%m%d-%H%M"` | |
hadoop fs -put /tmp/Shakespeare /shakespeare/$now/input |
This file contains hidden or 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
# Installations directory | |
export INSTALLS=$HOME/Work/installs | |
# CDH Apache Hadoop and Ecosystem | |
export HADOOP_PREFIX=$INSTALLS/hadoop-2.0.0 | |
export HADOOP_MR1_HOME=$INSTALLS/mr1-2.0.0 | |
export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs | |
export HADOOP_CONF_DIR=$HADOOP_PREFIX/etc/hadoop | |
#export HADOOP_MAPRED_HOME=$HADOOP_PREFIX/share/hadoop/mapreduce | |
#export HADOOP_YARN_HOME=$HADOOP_PREFIX/share/hadoop/mapreduce |