Category Archives: Unix

Hadoop Cluster : Run Command on ALL Nodes

Its usually tough to run a command on all nodes of a hadoop cluster. Here is a script to do that.. run_command !/bin/bash TPUT=’tput -T xterm-color’ txtund=$(${TPUT} sgr 0 1) # Underline txtbld=$(${TPUT} bold) # Bold txtrst=$(${TPUT} sgr0) # Reset … Continue reading

Posted in Hadoop Cluster Administration, Hadoop Cluster Installation, Uncategorized, Unix | Leave a comment

Tips: Unix

Display available space on file system df -h Display number of kilobyes used by each subdirectory du -h du -sh (summary) Find Find all files that starts with pro find . -name pro\* Groups Primary group: group to which an … Continue reading

Posted in Unix | Tagged , , , , , , , | Leave a comment

Tips to Improve the performance of your Virtual Machine

Its a common scene that your virtual machine is too slow to work on. Here is a tip to cure it. In Red Hat/CentOS: Execute the following :- echo never >/sys/kernel/mm/redhat_transparent_hugepage/defrag cat /proc/sys/vm/swappiness sysctl -w vm.swappiness=0 This would improve the … Continue reading

Posted in Unix | Leave a comment