Skip to content

Instantly share code, notes, and snippets.

@amuraru
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save amuraru/11096587 to your computer and use it in GitHub Desktop.

Select an option

Save amuraru/11096587 to your computer and use it in GitHub Desktop.
Thrift Balancer Check
# Capture Thrift hex method call on a box running HBase ThriftServer
strace -f -xx -e recvfrom -s2048 -p$(jps | grep ThriftServer | cut -f1 -d' ') 2>&1
#getColumnDescriptor .META.
echo -en "\x80\x01\x00\x01\x00\x00\x00\x14\x67\x65\x74\x43\x6f\x6c\x75\x6d\x6e\x44\x65\x73\x63\x72\x69\x70\x74\x6f\x72\x73\x00\x00\x00\x00\x0b\x00\x01\x00\x00\x00\x06\x2e\x4d\x45\x54\x41\x2e\x00" | nc localhost 9090
#getTableNames thrift call
echo -en "\x80\x01\x00\x01\x00\x00\x00\x0d\x67\x65\x74\x54\x61\x62\x6c\x65\x4e\x61\x6d\x65\x73\x00\x00\x00\x00\x00" | nc localhost 9090
## Big IP Hex TCP Monitor
http://docs.oracle.com/cd/E18686_01/coh.37/e18678/appendix_f5.htm#CDDDIFHA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment