You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by anil gupta <an...@gmail.com> on 2013/06/17 06:26:08 UTC

"KrbException: Could not load configuration from SCDynamicStore" in Eclipse on Mac

Hi All,

I am trying to connect to a secure Hadoop/HBase cluster. I wrote a java
class that connects to the secure cluster and creates a table with presplit
regions. I am running this class from eclipse itself. But, i keep on
getting the following exception:
*Caused by: KrbException: Could not load configuration from SCDynamicStore
    at
sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:64)
    at sun.security.krb5.Config.loadStanzaTable(Config.java:125)
    at sun.security.krb5.Config.<init>(Config.java:176)
    at sun.security.krb5.Config.getInstance(Config.java:79)*

I have googled this problem but i cannot find a solution for fixing "*
SCDynamicStore*" related problem in Eclipse on Mac. I want to run this code
from eclipse. Please let me know if anyone knows the trick to resolve this
problem on Mac. This is really annoying problem.

-- 
Thanks & Regards,
Anil Gupta

Re: "KrbException: Could not load configuration from SCDynamicStore" in Eclipse on Mac

Posted by anil gupta <an...@gmail.com>.
Hi Harsh,

Awesome!! It worked. Thanks you so much. Actually, i went through that
ticket before but the above option was not mentioned there.

Additional Info for others: In the run configuration add
"-Djava.security.krb5.realm=yourrealm -Djava.security.krb5.kdc=yourkdc" in
VM arguments.

Thanks,
Anil



On Sun, Jun 16, 2013 at 10:16 PM, Harsh J <ha...@cloudera.com> wrote:

> Anil,
>
> Please try the options provided at
> https://issues.apache.org/jira/browse/HADOOP-7489.
>
> Essentially, pass JVM system properties (In Eclipse you'll edit the
> Run Configuration for this) and add
> "-Djava.security.krb5.realm=yourrealm
> -Djava.security.krb5.kdc=yourkdc" and also ensure your Mac's
> configured for the cluster's kerberos (i.e. via a krb5.conf or so)?
>
> On Mon, Jun 17, 2013 at 9:56 AM, anil gupta <an...@gmail.com> wrote:
> > Hi All,
> >
> > I am trying to connect to a secure Hadoop/HBase cluster. I wrote a java
> > class that connects to the secure cluster and creates a table with
> presplit
> > regions. I am running this class from eclipse itself. But, i keep on
> > getting the following exception:
> > *Caused by: KrbException: Could not load configuration from
> SCDynamicStore
> >     at
> >
> sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:64)
> >     at sun.security.krb5.Config.loadStanzaTable(Config.java:125)
> >     at sun.security.krb5.Config.<init>(Config.java:176)
> >     at sun.security.krb5.Config.getInstance(Config.java:79)*
> >
> > I have googled this problem but i cannot find a solution for fixing "*
> > SCDynamicStore*" related problem in Eclipse on Mac. I want to run this
> code
> > from eclipse. Please let me know if anyone knows the trick to resolve
> this
> > problem on Mac. This is really annoying problem.
> >
> > --
> > Thanks & Regards,
> > Anil Gupta
>
>
>
> --
> Harsh J
>



-- 
Thanks & Regards,
Anil Gupta

Re: "KrbException: Could not load configuration from SCDynamicStore" in Eclipse on Mac

Posted by anil gupta <an...@gmail.com>.
Hi Harsh,

Awesome!! It worked. Thanks you so much. Actually, i went through that
ticket before but the above option was not mentioned there.

Additional Info for others: In the run configuration add
"-Djava.security.krb5.realm=yourrealm -Djava.security.krb5.kdc=yourkdc" in
VM arguments.

Thanks,
Anil



On Sun, Jun 16, 2013 at 10:16 PM, Harsh J <ha...@cloudera.com> wrote:

> Anil,
>
> Please try the options provided at
> https://issues.apache.org/jira/browse/HADOOP-7489.
>
> Essentially, pass JVM system properties (In Eclipse you'll edit the
> Run Configuration for this) and add
> "-Djava.security.krb5.realm=yourrealm
> -Djava.security.krb5.kdc=yourkdc" and also ensure your Mac's
> configured for the cluster's kerberos (i.e. via a krb5.conf or so)?
>
> On Mon, Jun 17, 2013 at 9:56 AM, anil gupta <an...@gmail.com> wrote:
> > Hi All,
> >
> > I am trying to connect to a secure Hadoop/HBase cluster. I wrote a java
> > class that connects to the secure cluster and creates a table with
> presplit
> > regions. I am running this class from eclipse itself. But, i keep on
> > getting the following exception:
> > *Caused by: KrbException: Could not load configuration from
> SCDynamicStore
> >     at
> >
> sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:64)
> >     at sun.security.krb5.Config.loadStanzaTable(Config.java:125)
> >     at sun.security.krb5.Config.<init>(Config.java:176)
> >     at sun.security.krb5.Config.getInstance(Config.java:79)*
> >
> > I have googled this problem but i cannot find a solution for fixing "*
> > SCDynamicStore*" related problem in Eclipse on Mac. I want to run this
> code
> > from eclipse. Please let me know if anyone knows the trick to resolve
> this
> > problem on Mac. This is really annoying problem.
> >
> > --
> > Thanks & Regards,
> > Anil Gupta
>
>
>
> --
> Harsh J
>



-- 
Thanks & Regards,
Anil Gupta

Re: "KrbException: Could not load configuration from SCDynamicStore" in Eclipse on Mac

Posted by Harsh J <ha...@cloudera.com>.
Anil,

Please try the options provided at
https://issues.apache.org/jira/browse/HADOOP-7489.

Essentially, pass JVM system properties (In Eclipse you'll edit the
Run Configuration for this) and add
"-Djava.security.krb5.realm=yourrealm
-Djava.security.krb5.kdc=yourkdc" and also ensure your Mac's
configured for the cluster's kerberos (i.e. via a krb5.conf or so)?

On Mon, Jun 17, 2013 at 9:56 AM, anil gupta <an...@gmail.com> wrote:
> Hi All,
>
> I am trying to connect to a secure Hadoop/HBase cluster. I wrote a java
> class that connects to the secure cluster and creates a table with presplit
> regions. I am running this class from eclipse itself. But, i keep on
> getting the following exception:
> *Caused by: KrbException: Could not load configuration from SCDynamicStore
>     at
> sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:64)
>     at sun.security.krb5.Config.loadStanzaTable(Config.java:125)
>     at sun.security.krb5.Config.<init>(Config.java:176)
>     at sun.security.krb5.Config.getInstance(Config.java:79)*
>
> I have googled this problem but i cannot find a solution for fixing "*
> SCDynamicStore*" related problem in Eclipse on Mac. I want to run this code
> from eclipse. Please let me know if anyone knows the trick to resolve this
> problem on Mac. This is really annoying problem.
>
> --
> Thanks & Regards,
> Anil Gupta



-- 
Harsh J

Re: "KrbException: Could not load configuration from SCDynamicStore" in Eclipse on Mac

Posted by Harsh J <ha...@cloudera.com>.
Anil,

Please try the options provided at
https://issues.apache.org/jira/browse/HADOOP-7489.

Essentially, pass JVM system properties (In Eclipse you'll edit the
Run Configuration for this) and add
"-Djava.security.krb5.realm=yourrealm
-Djava.security.krb5.kdc=yourkdc" and also ensure your Mac's
configured for the cluster's kerberos (i.e. via a krb5.conf or so)?

On Mon, Jun 17, 2013 at 9:56 AM, anil gupta <an...@gmail.com> wrote:
> Hi All,
>
> I am trying to connect to a secure Hadoop/HBase cluster. I wrote a java
> class that connects to the secure cluster and creates a table with presplit
> regions. I am running this class from eclipse itself. But, i keep on
> getting the following exception:
> *Caused by: KrbException: Could not load configuration from SCDynamicStore
>     at
> sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:64)
>     at sun.security.krb5.Config.loadStanzaTable(Config.java:125)
>     at sun.security.krb5.Config.<init>(Config.java:176)
>     at sun.security.krb5.Config.getInstance(Config.java:79)*
>
> I have googled this problem but i cannot find a solution for fixing "*
> SCDynamicStore*" related problem in Eclipse on Mac. I want to run this code
> from eclipse. Please let me know if anyone knows the trick to resolve this
> problem on Mac. This is really annoying problem.
>
> --
> Thanks & Regards,
> Anil Gupta



-- 
Harsh J