Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Still getting "Unable to load realm info from SCDynamicStore" after bug fix

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

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"

to your hadoop-env.sh file, which I have.

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

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

amongst the outputs.

Anyone know why I'm still getting it?

like image 556
FilmiHero Avatar asked Feb 05 '13 21:02

FilmiHero


2 Answers

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.

like image 191
user411279 Avatar answered Oct 17 '22 06:10

user411279


I had the same issue with java 7. works with java 6

like image 24
dturanski Avatar answered Oct 17 '22 08:10

dturanski