我尝试请求与蜂房和齐柏林蜂巢数据库,但我得到这个错误:
SemanticException Unable to fetch table table_name. org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
我得到2的NameNode:A和B当A为活跃和B状态STANBY我可以要求我的表没有问题。
hdfs haadmin -getServiceState A
active
hdfs haadmin -getServiceState B
standby
如果切换两个状态:
hdfs haadmin -failover A B
A是待机和B现在是活动的
hdfs haadmin -getServiceState A
standby
hdfs haadmin -getServiceState B
active
现在我的请求不起作用并且得到错误:
SemanticException Unable to fetch table table_name. org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
见不着我的蜂巢以及为HA配置:
hive --config /etc/hive/conf/conf.server --service metatool -listFSRoot
Listing FS Roots..
hdfs://HA-NAME/apps/hive/warehouse
hdfs://HA-NAME/apps/hive/warehouse/table1.db
hdfs://HA-NAME/apps/hive/warehouse/table2.db
...
但随着命令:在蜂房show create table1
,我得到:LOCATION ' hdfs://A/data/.... '
所述probleme接缝来自名称节点B,或蜂巢送花儿给人使用名称节点A作为活性名称节点,即使它是在备用状态。
我使用HA名连接我的卡夫卡连接到HDFS没有问题了。
问题从一个迁移我的表HA名称解析。
之前,我得到:
show create table1
LOCATION ' hdfs://A/data/.... '
我删除的表,HDFS文件,并与医管局名的位置再次创造了它。
show create table1
LOCATION ' hdfs://HA-NAME/data/.... '
和它的工作