I got this error "JAVA_HOME "
When trying to install CDH4 of Cloudera Hadoop standalone version.
Although i did all the needed configuration + echo $JAVA_HOME is fine.
+ writing "java" works + writing "java -version" works ok .
Nothing really helped except
1. go to /etc/hadoop/conf
2. edit hadoop-env.sh
add export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_32
then try again, i was trying to format the namenode.
Hoped it helped.
Dor
Showing posts with label config. Show all posts
Showing posts with label config. Show all posts
Jul 12, 2012
Nov 23, 2010
Eclipse is running in a JRE, but a JDK is required
Hi,
1) Right click on windows eclipse shortcut.
2) add in the end of the Target "-vm pathtojdkliberary"
3) Ensure that the JRE library is setup correctly within eclipse->preferences->JRE
Solution refers both to MyEclipse (not matter if its the Blue version or the regular) and Eclipse.
That's it.
Dor
1) Right click on windows eclipse shortcut.
2) add in the end of the Target "-vm pathtojdkliberary"
3) Ensure that the JRE library is setup correctly within eclipse->preferences->JRE
Solution refers both to MyEclipse (not matter if its the Blue version or the regular) and Eclipse.
That's it.
Dor
Spring LDAP dynamic connecting
Hi,
Lately i saw a question in one of spring ldap forums, were one of guys there asked this question:
How can i connect ldap without using spring xml (application context xml file).
My answer to him was that that i prefer and need in my project to use it dynamically intead of known configuration that can be configured in spring application context file (beans).
This was my solution for him:
LdapContextSource ldapContextSource = new LdapContextSource();
ldapContextSource.setUrl("ldap://localhost:portnumber");
ldapContextSource.setBase("ou=users, ou=system");//*
ldapContextSource.setUserDn("username to connect");
ldapContextSource.setPassword("password");
ldapContextSource.afterPropertiesSet();
//* the base is not necessary needed, it depends what do you need.
Bye,
Dor
Lately i saw a question in one of spring ldap forums, were one of guys there asked this question:
How can i connect ldap without using spring xml (application context xml file).
My answer to him was that that i prefer and need in my project to use it dynamically intead of known configuration that can be configured in spring application context file (beans).
This was my solution for him:
LdapContextSource ldapContextSource = new LdapContextSource();
ldapContextSource.setUrl("ldap://localhost:portnumber");
ldapContextSource.setBase("ou=users, ou=system");//*
ldapContextSource.setUserDn("username to connect");
ldapContextSource.setPassword("password");
ldapContextSource.afterPropertiesSet();
//* the base is not necessary needed, it depends what do you need.
Bye,
Dor
Subscribe to:
Posts (Atom)