hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Au <bill.w...@gmail.com>
Subject Re: settin JAVA_HOME...
Date Fri, 30 Jan 2009 22:18:09 GMT
You actually have to set JAVA_HOME to where Java is actually installed on
your system.  "/usr/lib/jvm/default-java" is just an example.  The error
messages indicate that that's not where Java is installed on your system.

Bill

On Fri, Jan 30, 2009 at 5:09 PM, zander1013 <zander1013@gmail.com> wrote:

>
> okay,
>
> here is the section for conf/hadoop-env.sh...
>
> # Set Hadoop-specific environment variables here.
>
> # The only required environment variable is JAVA_HOME.  All others are
> # optional.  When running a distributed configuration it is best to
> # set JAVA_HOME in this file, so that it is correctly defined on
> # remote nodes.
>
> # The java implementation to use.  Required.
> # export JAVA_HOME=/usr/lib/j2sdk1.5-sun
> export JAVA_HOME=/usr/lib/jvm/default-java
>
> ...
>
> and here is what i got for output. i am trying to go through the tutorial
> at
> http://hadoop.apache.org/core/docs/current/quickstart.html
>
> here is the output...
>
> af@node0:~/Hadoop/hadoop-0.19.0$ bin/hadoop jar hadoop-*-examples.jar grep
> input output 'dfs[a-z.]+'
> bin/hadoop: line 243: /usr/lib/jvm/default-java/bin/java: No such file or
> directory
> bin/hadoop: line 273: /usr/lib/jvm/default-java/bin/java: No such file or
> directory
> bin/hadoop: line 273: exec: /usr/lib/jvm/default-java/bin/java: cannot
> execute: No such file or directory
> af@node0:~/Hadoop/hadoop-0.19.0$
>
> ...
>
> please advise...
>
>
>
>
> Mark Kerzner-2 wrote:
> >
> > You set it in the conf/hadoop-env.sh file, with an entry like this
> > export JAVA_HOME=/usr/lib/jvm/default-java
> >
> > Mark
> >
> > On Fri, Jan 30, 2009 at 3:49 PM, zander1013 <zander1013@gmail.com>
> wrote:
> >
> >>
> >> hi,
> >>
> >> i am new to hadoop. i am trying to set it up for the first time as a
> >> single
> >> node cluster. at present the snag is that i cannot seem to find the
> >> correct
> >> path for setting the JAVA_HOME variable.
> >>
> >> i am using ubuntu 8.10. i have tried using "whereis java" and tried
> >> setting
> >> the variable to point to those places (except the dir where i have
> >> hadoop).
> >>
> >> please advise.
> >>
> >> -zander
> >> --
> >> View this message in context:
> >> http://www.nabble.com/settin-JAVA_HOME...-tp21756240p21756240.html
> >> Sent from the Hadoop core-user mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/settin-JAVA_HOME...-tp21756240p21756569.html
> Sent from the Hadoop core-user mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message