zoukankan      html  css  js  c++  java
  • Operation category READ is not supported in state standby 故障解决

    在执行 hive 命令时,报错信息如下

    Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby

    初步判断是由于HA节点中处于standby状态造成的异常

    执行

    $./hdfs haadmin -getServiceState namenode1                                                                                                                                                                
    standby                                                               
    $./hdfs haadmin -getServiceState namenode2
    standby   

    两个互为HA的namenode节点均处于standby 状态,随后执行

    $/hdfs haadmin -transitionToActive --forcemanual namenode1 

    强行手工将namenode1状态转换为active

    执行 hive,工作正常,故障解决  

  • 相关阅读:
    boost库:函数对象
    boost库:智能指针
    linux 查看和修改文件时间
    linux正则表达式
    UVA
    UVA
    UVA
    UVA
    UVA
    对JavaScript的认识?
  • 原文地址:https://www.cnblogs.com/stone-learning/p/9249611.html
Copyright © 2011-2022 走看看