Skip to content

Instantly share code, notes, and snippets.

View bugcy013's full-sized avatar
🪄
Focusing

Dhanasekaran Anbalagan bugcy013

🪄
Focusing
View GitHub Profile
@bugcy013
bugcy013 / dhcpd.conf
Created November 12, 2012 11:46
dhcp
root@SAMBA-Chennai:~# cat /etc/dhcp/dhcpd.conf
authoritative;
subnet 192.168.70.0 netmask 255.255.255.0 {
range 192.168.70.35 192.168.70.40;
option domain-name "dvindia.net";
option domain-name-servers 8.8.8.8;
option broadcast-address 192.168.70.255;
option routers 192.168.70.100;
option subnet-mask 255.255.255.0;
@bugcy013
bugcy013 / elasticsearch startup process
Created November 12, 2012 14:46
elasticsearch setup
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
rm -Rf *servicewrapper*
@bugcy013
bugcy013 / gist:4176879
Created November 30, 2012 16:43
ctl-client installation
http://sourceforge.net/projects/controltier/files/Installer/3.6.1/ControlTier-3.6.1.zip
cd /path/to/extracted/ControlTier-3.4.6.
sh install.sh --client -Dserver.hostname=172.16.30.42
@bugcy013
bugcy013 / gist:4188128
Created December 2, 2012 10:41
my-ubuntu 12.04 repo
# deb http://archive.ubuntu.com/ubuntu precise main restricted
# deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
# deb http://security.ubuntu.com/ubuntu precise-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main restricted
# Set Hadoop-specific environment variables here.
# Disable IPv6.
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:
export JAVA_HOME=/app_packages/jdk1.6.0_30
# The only required environment variable is JAVA_HOME. All others are
# optional. When running a distributed configuration it is best to
@bugcy013
bugcy013 / gist:4477848
Created January 7, 2013 19:55
coresite.xml
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@bugcy013
bugcy013 / Hbase in CDH4.txt
Last active December 10, 2015 19:48 — forked from nipra/notes.txt
# Installing CDH4 on a Single Linux Node in Pseudo-distributed Mode in MRv1
# https://ccp.cloudera.com/display/CDH4DOC/Installing+CDH4+on+a+Single+Linux+Node+in+Pseudo-distributed+Mode#InstallingCDH4onaSingleLinuxNodeinPseudo-distributedMode-InstallingCDH4withMRv1onaSingleLinuxNodeinPseudodistributedmode
# Installing CDH4 with MRv1 on a Single Linux Node in Pseudo-distributed mode
# On Ubuntu Precise
tech@tech-VirtualBox:~$ wget -cv http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb
tech@tech-VirtualBox:~$ sudo dpkg -i cdh4-repository_1.0_all.deb # Adds /etc/apt/sources.list.d/cloudera-cdh4.list ??
tech@tech-VirtualBox:~$ dpkg -L cdh4-repository # To view the files on Ubuntu systems
/.
/etc
# Assumes you have Sun JDK installed already and JAVA_HOME set to that for root
# This is all basically a summary of various parts of https://ccp.cloudera.com/display/CDH4DOC/CDH4+Documentation
# Add Cloudera RPM-GPG-KEY and repo
rpm --import http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
rpm -ivh http://archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm
# Install CDH4 Base
yum install hadoop-0.20-conf-pseudo
# hdfs-site.xml
# <property>
# <name>dfs.replication</name>
# <value>1</value>
# </property>
# core-site.xml
# hdfs-site.hml
#<property>
# <name>dfs.replication</name>
# <value>1</value>
# </property>
# <property>
# <name>dfs.namenode.name.dir</name>
# <value>file:/opt/yarn_data/hdfs/namenode</value>
# </property>
# <property>