datax在hadoop ha的狀態下報錯:

  • org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error
    解決方案:

1.修改hosts文件 在ha的節點上加入集群名稱mycluster

[sarah@hadoop102 hadoop]$ sudo vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
172.16.xx.xxx hadoop102 mycluster
172.16.xx.xxx hadoop103 mycluster
172.16.xx.xxx hadoop104
172.16.xx.xxx hadoop105
172.16.xx.xxx hadoop106
172.16.xx.xxx hadoop100

然後在hdfsread和hdfswriter中將hadoop的core-site.xml,hdfs-site.xml,hive的hive-site.xml放入所對應的jar包中

在这里插入图片描述
把jar單獨拿出來,直接解壓,然後將core-site.xml,hdfs-site,hive-site.xml這三個文件直接丟進去
在这里插入图片描述
在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐