对hive不是很清楚,但报java.net.UnknownHostException: nameservices1这种错 一般是因为没有加载到HDFS的配置,core-site.xml和hdfs-site.xml 因为nameservices1本质上不是一个host,而是在hdfs-site.xml里面定义的,通过它来找nn1、nn2的地址
Best, Yang <[email protected]> 于2020年8月7日周五 上午8:34写道: > 可以在flink-conf.yaml中加入 env.hadoop.conf.dir: 指向hadooo配置文件目录 > > 发自我的iPhone > > > 在 2020年8月7日,00:16,Jark Wu <[email protected]> 写道: > > > > 可以提供下完整的异常栈吗?以及使用的版本号和代码。 > > > >> On Mon, 3 Aug 2020 at 13:32, air23 <[email protected]> wrote: > >> > >> hi 你好 > >> 我这边集群是cdh的。 配置了hdfs ha模式 > >> 在使用 kafka sink 到hive 时候找不到nameservices > >> java.lang.IllegalArgumentException: java.net.UnknownHostException: > >> nameservices1 > >> > >> > >> 请问 在ha模式下 应该怎么配置 > >
