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

2

11

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?

Clipping answered 5/2, 2013 at 21:8 Comment(0)
A
10

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.

Annihilation answered 25/6, 2013 at 6:0 Comment(0)
M
1

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

Mica answered 22/2, 2013 at 19:6 Comment(2)
@kewpiedoll99 did you find out solution for intellij?Deandre
@Deandre - I think ultimately I just had to run from the command line. Either that or it was a mismatch of versions. Sorry, it's been too long and I don't remember.Lagena

© 2022 - 2024 — McMap. All rights reserved.