Hue与Hbase集成时出现Api错误:timed out

Hue与Hbase集成时出现Api错误:timed out

Hue与Hbase集成时出现Api错误:timed out_第1张图片

查看Hbase,发现进程可以正常启动,Hbase shell也可以正常进入.就是打不开web监控页面.到网上查找,各种修改配置文件,关机重启甚至重装了Hbase,什么都试了,依然不行.

解决:

突然想到hue访问hbase的表肯定是从hdfs上面获取,是不是我hdfs上面的hbase里面文件有损坏.导致无法读取.

于是将以下文件删除

Hue与Hbase集成时出现Api错误:timed out_第2张图片

 

[root@hadoop101 zkData]# hadoop fs -rmr /hbase

启动hbase

[root@hadoop101 hbase-1.3.1]# bin/start-hbase.sh 

进入hbase shell

[root@hadoop101 hbase-1.3.1]# bin/hbase shell

创建student表,并插入数据

hbase(main):001:0> list
TABLE                                                                                       
0 row(s) in 1.8520 seconds

=> []
hbase(main):002:0> create 'student','info'
0 row(s) in 5.3020 seconds

=> Hbase::Table - student
hbase(main):003:0> put 'student','1001','info:sex','male'
0 row(s) in 1.0690 seconds

hbase(main):004:0> put 'student','1001','info:age',18
0 row(s) in 0.0460 seconds

hbase(main):005:0> put 'student','1002','info:name','janna'
0 row(s) in 0.0440 seconds

hbase(main):006:0> put 'student','1002','info:sex','female'
0 row(s) in 0.0880 seconds

hbase(main):007:0> put 'student','1002','info:age','20'
0 row(s) in 0.0710 seconds

hbase(main):008:0> scan 'student'
ROW                      COLUMN+CELL                                                        
 1001                    column=info:age, timestamp=1583893751784, value=18                 
 1001                    column=info:sex, timestamp=1583893731396, value=male               
 1002                    column=info:age, timestamp=1583893817709, value=20                 
 1002                    column=info:name, timestamp=1583893774586, value=janna             
 1002                    column=info:sex, timestamp=1583893793268, value=female             
2 row(s) in 0.2100 seconds

访问http://hadoop101:16010

Hue与Hbase集成时出现Api错误:timed out_第3张图片

所有问题解决,访问成功

hue也可以正常访问了

Hue与Hbase集成时出现Api错误:timed out_第4张图片

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(Hbase)