本文介绍了仍然收到“无法从 SCDynamicStore 加载领域信息"的消息错误修复后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 brew install hadoopbrew install pig 安装了 HadoopPig.

I installed Hadoop and Pig using brew install hadoop and brew install pig.

我在这里读到你将获得 Unable to load realm info from SCDynamicStore 错误消息,除非您添加:

I read here that you will to get Unable to load realm info from SCDynamicStore error message unless you add:

export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk"

到我拥有的 hadoop-env.sh 文件.

然而,当我运行 hadoop namenode -format 时,我仍然看到:

However, when I run hadoop namenode -format, I still see:

java[1548:1703] Unable to load realm info from SCDynamicStore

在输出中.

有谁知道为什么我仍然得到它?

Anyone know why I'm still getting it?

推荐答案

正如 dturnanski 所建议的,您需要使用较旧的 JDK.您可以通过将 JAVA_HOME 设置更改为:

As dturnanski suggests, you need to use an older JDK. You can set this in the hadoop-env.sh file by changing the JAVA_HOME setting to:

export JAVA_HOME=`/usr/libexec/java_home -v 1.6`

(注意这里的严重引用.)这为我解决了问题.

(Note the grave quotes here.) This fixed the problem for me.

这篇关于仍然收到“无法从 SCDynamicStore 加载领域信息"的消息错误修复后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 00:56