I wrote a quick script to count all rows in all tables in HBase. This works great for my Dev clusters that have ever-growing tables […]
Continue readingCategory: Linux
Linux
Search for string and append string to file
A very useful string search and append that I find myself rewriting over and over. So I’ve decided to write a post and capture the […]
Continue readingScreen Command
Because I always forget: Create screen session: screen –S [session-name] Detach from session: (keystrokes) Ctl a,d Reattach to session: Screen –R [session-name] […]
Continue readingBash: Output Text in Color
Output in red: echo “$(tput setaf 1)Red Text$(tput sgr0)”
Continue readingRecover Lost Files on Linux
TestDisk includes PhotoRec which is very good at recovering files: sudo apt-get install testdisk To run PhotoRec: sudo photorec PhotoRec: http://www.cgsecurity.org/wiki/PhotoRec
Continue readingCopy data from one Hadoop cluster to another Hadoop cluster (running different versions of Hadoop)
I had to copy data from one Hadoop cluster to another recently. However, the two clusters ran different versions of Hadoop, which made using distcp […]
Continue readingUseful Scripts
PowerShell: $ou = [adsi]”LDAP://OU=Marketing,OU=Departments,DC=Company,DC=Domain”; $user = $ou.psbase.get_children().find(‘CN=UserName’); $user.psbase.invokeSet(“allowLogon”,0); $user.setinfo(); Bash: #!/bin/bash fname=”/path/file” tname=”/new/file.tmp” i=”0″ DATE=$(date +%Y%m%d%H%M%S) sudo cp “$fname” “$fname”.$DATE while IFS=” read -r line […]
Continue readingHBase All Regions in Transition: state=FAILED_OPEN
After I added a jar file to the HBase Master I had a problem where regions failed to transition to a RegionServer. Below are the errors; […]
Continue readingCron file failed to load: (username~) ORPHAN (no passwd entry)
This problem bothers me a little. The authentication server failed during a cron job that referenced a specific account. Ubuntu could not authenticate the account, […]
Continue readingNo Connection!! Clear Your ARP Table
A great article! This is rare, but sometimes you need to know: http://zeldor.biz/2011/09/clear-arp-cache/
Continue reading