![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HBase
文章平均质量分 59
源神
天道酬勤
展开
-
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
查看master日志报错:exception=org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online on解决方法:步骤1:停止hbase(master、regionserver)步骤2:su hdfsexport HADOOP_USER_NA原创 2017-10-16 18:01:49 · 697 阅读 · 0 评论 -
HBase集群迁移数据报错:java.lang.ClassNotFoundException: org.apache.phoenix.hbase.index.Indexer
RegionServers报错日志:2018-08-14 17:19:58,072 ERROR [RS_OPEN_REGION-140:16020-0] handler.OpenRegionHandler: Failed open of region=xtable,381d5ed8-a610-4bad-99ff-0606130bf560,1523067492130.334f9b02d198fb...原创 2018-08-14 17:38:52 · 1705 阅读 · 0 评论 -
Ambari中Hbase元数据恢复
meta表一直in transition,master起不来,日志中报错: zookeeper.MetaTableLocator: Failed verification of hbase:meta解决方法如下: 1.删除zookeeper信息rmr /hbase-unsecure2.保存hbase数据hadoop fs -mv /apps/hbase/data/data/...转载 2018-08-10 11:29:26 · 798 阅读 · 0 评论 -
NameNode启用HA主备节点进行切换,Hbase启动RegionServers失败
打印日志:2018-03-13 17:08:49,418 INFO [RS_OPEN_REGION-C2bdm3:16020-16] coordination.ZkOpenRegionCoordination: Opening of region {ENCODED => c5112e862e17377d2737596d6d5ddd0c, NAME => 'KYLIN_CY40CLW8...原创 2018-04-03 11:54:08 · 1432 阅读 · 0 评论 -
HBase导入创建表脚本报错:Compression algorithm 'lzo' previously failed test.
日志内容:ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: Compression algorithm 'lzo' previously failed test. Set hbase.table.sanity.checks to false at conf or table descriptor if you want to bypass ...原创 2018-03-13 09:13:48 · 3282 阅读 · 0 评论 -
Ambari—HBase配置HBase Master HA(三)
HBase HA高可用性介绍从架构上看,HBase从一开始就有了强大的一致性保证。所有的读写操作都通过一个RegionServer进行路由,这可以确保所有写操作按顺序进行,所有读操作都可访问最近提交的数据。但是,由于读取到单个位置的这种“single homing”,如果服务器变得不可用,则RegionServer中托管的表区域将在一段时间内不可用,直到恢复为止。区域恢复过程分为三个阶段:检测,分...原创 2018-03-05 17:26:07 · 5765 阅读 · 0 评论 -
HBase中RegionServers报异常: No lease on /apps/hbase/data/oldWALs... File is not open for writing
报错日志:2018-03-07 03:23:02,337 ERROR [regionserver/137.bd/172.17.32.7:16020] regionserver.HRegionServer: Shutdown / close of WAL failed: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No ...原创 2018-03-07 16:59:10 · 2214 阅读 · 0 评论 -
HBase报错:No jar path specified for org.apache.phoenix.coprocessor.UngroupedAggregateRegionObserver
日志大概内容如下:2018-03-05 16:38:38,590 ERROR [RS_OPEN_PRIORITY_REGION-c2bde55:16020-1] coprocessor.CoprocessorHost: The coprocessor org.apache.phoenix.coprocessor.MetaDataEndpointImpl threw java.io.IOExcept...原创 2018-03-07 14:58:56 · 2287 阅读 · 0 评论 -
Hbase创建索引:Secondary index not enabled. Configure hbase.use.secondary.index to true
创建二级索引报错:2018-01-29 16:32:19,620 ERROR [main] examples.TestMain: Failed to test HBase because java.lang.IllegalArgumentException: Secondary index not enabled. Configure hbase.use.secondary.index t原创 2018-01-29 16:38:46 · 311 阅读 · 0 评论 -
HBase启动报错:Reported time is too far out of sync with master.
现象:HRegionServer启动成功后又自动关闭,日志:2018-01-24 14:02:12,646 INFO [regionserver/c2bdp-e49/172.17.81.49:16020] regionserver.HRegionServer: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncExceptio原创 2018-01-24 14:12:22 · 1159 阅读 · 0 评论 -
java连接Hbase+Kerberos配置参数示例
配置参数示例代码:private static void init() throws IOException { // Default load from conf directory conf = HBaseConfiguration.create(); /* String userdir = System.getProperty("user.dir") + File.原创 2017-11-17 09:53:50 · 1444 阅读 · 0 评论 -
hbase连接Kerberos报错:msg=Failed to read server kerberos principal row
通过代码连接hbase(已进行Kerberos认证),结果报错:2017-11-15 19:07:59,085 INFO [hconnection-0x757277dc-shared--pool2-t1] client.RpcRetryingCaller: Call exception, tries=10, retries=35, started=38816 ms ago, cancelle原创 2017-11-15 19:13:13 · 1112 阅读 · 0 评论 -
HBase常用命令行操作
HBase(hbase shell进入):(1)创建命名空间:create_namespace 'zy_test'(2)创建表:create 'zy_test', {NAME => 'f1', VERSION => 2}(3)查询命名空间:list_namespace(4)列出表:list个人在命名空间sgs_test内进行操作,如果在默认命名空间操作,如下命令可以不带前缀...原创 2018-11-15 14:05:04 · 299 阅读 · 0 评论