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
cat lsof.log | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20 |
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
printf "\nlocal: " ; ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | |
myip=$(curl -s ipecho.net/plain) | |
printf "public: $myip " ; echo ; echo | |
geoiplookup $myip ; echo |
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
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.Writer; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class FileWritingPerfTest { |
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
package com.ins8s.hdfs.tools; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.URI; | |
import java.net.URISyntaxException; |
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
# CentOS 7.0 kickstart for XenServer | |
# branch: develop | |
########################################## | |
# Install, not upgrade | |
install | |
# Install from a friendly mirror and add updates | |
url --url http://mirror.rackspace.com/CentOS/7.0.1406/os/x86_64/ | |
repo --name=centos-updates --mirrorlist=http://mirrorlist.centos.org/?release=7.0.1406&arch=x86_64&repo=updates |
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
cd ~ && mkdir tmp | |
sudo chown -R harsha:harsha tmp | |
cd tmp | |
wget http://www.carfab.com/apachesoftware/hadoop/common/stable/hadoop-2.5.0.tar.gz | |
tar xvzf hadoop-2.5.0.tar.gz | |
sudo mv hadoop-2.5.0 /usr/local/hadoop | |
sudo yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel | |
java -version | |
echo "export JRE_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64/jre |
NewerOlder