Skip to content

Instantly share code, notes, and snippets.

View bugcy013's full-sized avatar
🪄
Focusing

Dhanasekaran Anbalagan bugcy013

🪄
Focusing
View GitHub Profile
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;'
#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.
#!/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;"
[Driver]
## - Note that this default DriverManagerEncoding of UTF-32 is for iODBC.
## - unixODBC uses UTF-16 by default.
## - If unixODBC was compiled with -DSQL_WCHART_CONVERT, then UTF-32 is the correct value.
## Execute 'odbc_config --cflags' to determine if you need UTF-32 or UTF-16 on unixODBC
## - SimbaDM can be used with UTF-8 or UTF-16.
## The DriverUnicodeEncoding setting will cause SimbaDM to run in UTF-8 when set to 2 or UTF-16 when set to 1.
DriverManagerEncoding=UTF-32
@bugcy013
bugcy013 / GIT
Created January 16, 2014 13:53 — forked from fajrif/gist:1265203
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
!/bin/bash
cd /home/hadoop/
sudo apt-get install git
git clone https://github.com/amplab/shark.git -b branch-0.7 shark
#wget http://elasticmapreduce.s3.amazonaws.com/samples/spark/0.7/hive-0.9-bin.tgz
#wget http://elasticmapreduce.s3.amazonaws.com/samples/spark/0.7/shark-0.3-bin.tgz
#!/bin/sh
# one way
# sudo apt-get install scala
#2nd way
wget http://www.scala-lang.org/files/archive/scala-2.10.3.tgz
tar zxf scala-2.10.3.tgz
sudo mv scala-2.10.3 /usr/share/scala
http://google.com/search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q=%s
git clone git://github.com/QwertyManiac/cassandra-cdh4.git
cd cassandra-cdh4
ant publish -Dversion=1.2.2
cp build/apache-cassandra-1.2.2-bin.tar.gz ~/
# The ~/apache-cassandra-1.2.2-bin.tar.gz is now the release build binaries, and you can use this to deploy/use Cassandra with CDH4
To grab and build, run the following:
~> git clone https://github.com/QwertyManiac/mahout-cdh4.git
~> cd mahout-cdh4/
~> mvn -Phadoop-0.23 -DskipTests -Dhadoop.version=2.0.0-mr1-cdh4.4.0 -Dmahout.skip.distribution=false clean package
~> cd distribution/target
~> ls -l mahout-distribution-0.8.tar.gz
The resulting release can be found under distribution/target directory after the build succeeds.