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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
$ cat /proc/sys/vm/swappiness | |
$ sudo sysctl vm.swappiness=1 |
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 /etc/init.d/iptables save | |
$ sudo /etc/init.d/iptables stop | |
$ sudo chkconfig iptables off |
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 su - | |
$ echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled | |
$ echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag |
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 yum install mysql-server | |
//I faced InnoDB related issues with the installed version of mysql so updated it to 5.5.x | |
$ sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm | |
$ sudo yum install mysql.`uname -i` yum-plugin-replace | |
$ sudo yum replace mysql --replace-with mysql55w | |
$ sudo /sbin/chkconfig --levels 235 mysqld on | |
$ sudo service mysqld start | |
$ sudo mysql_secure_installation |
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
$ cd /opt/ | |
$ sudo wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz | |
$ sudo tar xzf jdk-7u79-linux-x64.tar.gz | |
$ cd /opt/jdk1.7.0_79/ | |
$ sudo alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2 | |
$ sudo alternatives --config java | |
//[select /opt/jdk1.7.0_79/bin/java] |
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 wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-$ java-5.1.37.tar.gz | |
$ sudo tar zxvf mysql-connector-java-5.1.37.tar.gz | |
$ sudo mkdir /usr/share/java | |
$ sudo mv mysql-connector-java-5.1.37/mysql-connector-java-5.1.37-bin.jar /usr/share/java/mysql-connector-java.jar |
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
$ cd /etc/yum.repos.d | |
$ sudo wget https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo | |
$ sudo yum install cloudera-manager-server cloudera-manager-daemons cloudera-manager-agent jdk java |
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
$ mysql –u root –p | |
mysql> create database testdb; | |
mysql> create database rman; | |
mysql> create database hive; | |
mysql> create database oozie; | |
mysql> grant all on testdb.* to 'root' identified by 'password'; | |
mysql> grant all on rman.* to 'rman' identified by 'rman'; | |
mysql> grant all on hive.* to 'hive' identified by 'hive'; | |
mysql> grant all on oozie.* to 'oozie' identified by 'oozie'; | |
mysql> exit; |
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
# Copyright (c) 2013 Cloudera, Inc. All rights reserved. | |
# | |
# This file describes the database connection. | |
# | |
# The database type | |
# Currently 'mysql', 'postgresql' and 'oracle' are valid databases. | |
com.cloudera.cmf.db.type=mysql | |
# The database host | |
# If a non standard port is needed, use 'hostname:port' | |
com.cloudera.cmf.db.host=localhost |
OlderNewer