1.hadoop的HA集群,dolphinscheduler识别不到hdfs的地址:将core-site.xml和hdfs-site.xml复制到apache-dolphinscheduler-2.0.5-bin/conf目录下面
# if resourceStorageType is HDFS,defaultFS write namenode address,HA, you need to put core-site.xml and hdfs-site.xml in the conf directory.
# if S3,write S3 address,HA,for example :s3a://dolphinscheduler,
# Note,S3 be sure to create the root directory /dolphinscheduler
defaultFS="hdfs://mycluster:8020"
2.在dolphinscheduler中执行shell脚本时,遇到无法执行hadoop命令的问题,报错:执行hadoop中bin操作时报错:retry.RetryInvocationHandler: 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
hadoop的HA已经配置了自动故障转移机制,但是在执行hadoop命令时还是出现了识别到standby状态的节点(检查几台namenode节点的状态,没有问题)
解决办法:尝试将standby状态手动切换为active状态,系统阻止修改,直接kill掉namenode,然后在这台服务重启namenode(hdfs --daemon start namenode),这样做的目的就是让HA重新进行故障转移产生新的active和standby节点,然后测试执行hadoop命令,没有问题了。