博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HBase describe table 参数说明
阅读量:7010 次
发布时间:2019-06-28

本文共 1473 字,大约阅读时间需要 4 分钟。

创建user表

> create 'dimensoft:user', 'info'

 

查看表结构

> describe 'dimensoft:user'
DESCRIPTION 'dimensoft:user', //namespace:tableName    {        NAME => 'info', //列族        DATA_BLOCK_ENCODING => 'NONE', //数据块编码方式设置        //参见:http://hbase.apache.org/book.html#data.block.encoding.enable        BLOOMFILT => 'ROW', //参见:http://hbase.apache.org/book.html#bloom.filters.when        REPLICATION_SCOPE => '0', //配置HBase集群replication时需要将该参数设置为1.        //参见:http://blog.cloudera.com/blog/2012/08/hbase-replication-operational-overview/?utm_source=tuicool        'REPLICATION_SCOPE is a column-family level attribute user has to alter each column family with the alter command as shown above, for all the column families he wants to replicate.'        VERSIONS => '1', //设置保存的版本数        COMPRESSION => 'NONE', //设置压缩算法        MIN_VERSIONS => '0', //最小存储版本数        TTL => 'FOREVER', //参见:http://hbase.apache.org/book.html#ttl        'ColumnFamilies can set a TTL length in seconds, and HBase reached. This applies to all versions of a row - even the current one. The TTL time encoded in the HBase for the row is specified in UTC.'        KEEP_DELETED_CELLS => 'false', //参见:http://hbase.apache.org/book.html#cf.keep.deleted        BLOCKSIZE => '65536', //设置HFile数据块大小(默认64kb)        IN_MEMORY => 'false',//设置激进缓存,优先考虑将该列族放入块缓存中,                             //针对随机读操作相对较多的列族可以设置该属性为true        BLOCKCACHE => 'true' //数据块缓存属性    }

 

转载于:https://www.cnblogs.com/xiaoliu66007/p/9376705.html

你可能感兴趣的文章
python 将txt文件转换成excel
查看>>
程序员N容N耻
查看>>
C语言基础及指针⑨联合体与枚举
查看>>
Discuz截取字符串
查看>>
连接数据库操作
查看>>
nginx错误:13: Permission denied
查看>>
如何检查一个单向链表上是否有环?
查看>>
spring核心点总结
查看>>
解决:Determining IP Information for eth0...问题
查看>>
使用虚拟机安装 Linux 操作系统
查看>>
Spring mvc中@RequestMapping 6个基本用法小结
查看>>
使用Chrome 浏览器调试移动端网页 chrome://inspect/#devices
查看>>
Windows10下安装spacemacs
查看>>
ELK平台介绍
查看>>
我的推理逻辑设计图
查看>>
关于PHP通过PDO用中文条件查询MySQL的问题。
查看>>
算法 - 理论基础
查看>>
OSChina 技术周刊第二十四期 —— C# 6.0 的新特性
查看>>
Netty NIO 框架性能压测 – 长链接
查看>>
Quartz2.2.1简单使用
查看>>