摘要: 1.pop.xml配置 hive与hadoop的配置版本要匹配,一般hive 2.X版本要选择hadoop2.x版本,否则会不兼容 <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifac 阅读全文
posted @ 2022-10-09 16:33 葫芦杯 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: 1.设置参数 conf.setBoolean(CommonConfigurationKeys.IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY, true); 这个参数会在连接kerberos失败时退回到simple认证。 2.提前加载krb5.conf文 阅读全文
posted @ 2022-10-09 16:06 葫芦杯 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 原始代码为: org.apache.hadoop.security.UserGroupInformation.setConfiguration(conf) 出现错误: Can't get Kerberos realm 原因: 程序读取不到krb5.conf 解决办法: 在JVM启动参数中添加了参数 阅读全文
posted @ 2022-10-09 15:45 葫芦杯 阅读(3519) 评论(0) 推荐(0) 编辑