Skip to content

Instantly share code, notes, and snippets.

@rmruano
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save rmruano/9204707 to your computer and use it in GitHub Desktop.

Select an option

Save rmruano/9204707 to your computer and use it in GitHub Desktop.
1) CHAR SPLITS
hbase(main):011:0> create 'split_test_char',{NAME=>'D',VERSIONS=>'1',TTL=>'1'},{SPLITS => ['4','8','b']}
Name Region Server Start Key End Key Requests
split_test_char,,1393314827787.204ca55f6f71c548cd5926102d3cfc2b. host.com:60030 4 0
split_test_char,4,1393314827787.36c384800191ae5aa8b73f24d88e1aba. host.com:60030 4 8 0
split_test_char,8,1393314827787.8e00a315871dc155fc2788dd64573589. host.com:60030 8 b 0
split_test_char,b,1393314827787.d84c59baca0e3cb7c6a76cc1edb1d778. host.com:60030 b 0
2) HEX SPLITS
hbase(main):011:0> create 'split_test_hex',{NAME=>'D',VERSIONS=>'1',TTL=>'1'},{SPLITS => ['\x04','\x08','\x0B']}
Name Region Server Start Key End Key Requests
split_test_hex,,1393314681345.6def53571dbdaba9ad561fc81232e704. host.com:60030 \x04 0
split_test_hex,\x04,1393314681350.7d02b0003b77ffabb9b476b6bf227106. host.com:60030 \x04 \x08 0
split_test_hex,\x08,1393314681350.23c173a97a9f4b5abc7f28187126251c. host.com:60030 \x08 \x0B 0
split_test_hex,\x0b,1393314681350.78d83d9f215b2fef0143d3b66724d379. host.com:60030 \x0B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment