Advertisement
josephxsxn

hbase compression cmds

Jul 27th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. >hbase shell
  2.  
  3. disable '$TABLE_NAME'
  4. alter '$TABLE_NAME',{NAME=>'$CF_Name',COMPRESSION=>'snappy'}
  5. enable '$TABLE_NAME'
  6.  
  7.  
  8. disable 'ivinco:document'
  9. alter 'ivinco:document',{NAME=>'e',COMPRESSION=>'lz4'}
  10. alter 'ivinco:document',{NAME=>'i',COMPRESSION=>'lz4'}
  11. enable 'ivinco:document'
  12.  
  13. disable 'ivinco:document_reference'
  14. alter 'ivinco:document_reference',{NAME=>'e',COMPRESSION=>'lz4'}
  15. alter 'ivinco:document_reference',{NAME=>'i',COMPRESSION=>'lz4'}
  16. alter 'ivinco:document_reference',{NAME=>'c',COMPRESSION=>'lz4'}
  17. enable 'ivinco:document_reference'
  18.  
  19. major_compact 'ivinco:document'
  20. major_compact 'ivinco:document_reference'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement