Keamas
02.03.12, 11:53
Hey, ich möchte gerne Cloudera auf eine Ubuntu 10.04 Maschine installieren.
Cloudera benötigt Sun/Oracle Java.
Ich habe Oracle Java 7 (JDK) installiert (wie hier beschrieben http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html):
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer
Wenn ich Cloudera (Hadoop) starten möchte bekomme ich folgendes:
for service in /etc/init.d/hadoop-0.20-*; do sudo $service start; done
+================================================= =====================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |
| > http://java.sun.com/javase/downloads/ < |
| |
| Hadoop requires Java 1.6 or later. |
| NOTE: This script will find Sun Java whether you install using the |
| binary or the RPM based installer. |
+================================================= =====================+
In der Dokumentation konnte ich folgendes lesen:
CDH3 requires the Oracle JDK 1.6.0_8 at a minimum. Cloudera recommends version 1.6.0_26. Before installing and deploying CDH:
Make sure you have the same version of the Oracle JDK on each node.
Make sure the JAVA_HOME environment variable is set for the root user on each node.
You can check by using a command such as
sudo env | grep JAVA_HOME
It should be set to point to the directory where the JDK is installed.
As the root user, set JAVA_HOME to the directory where the JDK is installed; for example:
# export JAVA_HOME=<jdk-install-dir>
# export PATH=$JAVA_HOME/bin:$PATH
where <jdk-install-dir> might be something like /usr/java/jdk1.6.0_26, depending on the system configuration and where the JDK is actually installed.
Ich habe Java dann unter dem Pfad gefunden und folgendes gemacht: /usr/lib/jvm/java-7-oracle
root@ubuntu:/usr/lib/jvm/java-7-oracle# ls -la
total 19700
drwxr-xr-x 8 root root 4096 2012-03-01 14:49 .
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 ..
drwxr-xr-x 2 root root 4096 2012-03-01 14:49 bin
-r--r--r-- 1 root root 3339 2012-03-01 14:49 COPYRIGHT
drwxr-xr-x 4 root root 4096 2012-03-01 14:49 db
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 include
drwxr-xr-x 5 root root 4096 2012-03-01 14:49 jre
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 lib
-r--r--r-- 1 root root 40 2012-03-01 14:49 LICENSE
drwxr-xr-x 4 root root 4096 2012-03-01 14:49 man
-r--r--r-- 1 root root 114 2012-03-01 14:49 README.html
-rw-r--r-- 1 root root 444 2012-03-01 14:49 release
-rw-r--r-- 1 root root 19945271 2012-03-01 14:49 src.zip
-r--r--r-- 1 root root 172252 2012-03-01 14:49 THIRDPARTYLICENSEREADME.txt
root@ubuntu:/# export JAVA_HOME=/usr/lib/jvm/java-7-oracle
root@ubuntu:/# export PATH=$JAVA_HOME/bin:$PATH
root@ubuntu:/# env | grep JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Allerdings immer noch das selbe Problem:
root@ubuntu:/# for service in /etc/init.d/hadoop-0.20-*; do sudo $service start; done
+================================================= =====================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |
| > http://java.sun.com/javase/downloads/ < |
| |
| Hadoop requires Java 1.6 or later. |
| NOTE: This script will find Sun Java whether you install using the |
| binary or the RPM based installer. |
+================================================= =====================+
Was muss ich noch machen bzw was habe ich Falsch geamcht kann mir jemand weiterhelfen ??
Cloudera benötigt Sun/Oracle Java.
Ich habe Oracle Java 7 (JDK) installiert (wie hier beschrieben http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html):
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer
Wenn ich Cloudera (Hadoop) starten möchte bekomme ich folgendes:
for service in /etc/init.d/hadoop-0.20-*; do sudo $service start; done
+================================================= =====================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |
| > http://java.sun.com/javase/downloads/ < |
| |
| Hadoop requires Java 1.6 or later. |
| NOTE: This script will find Sun Java whether you install using the |
| binary or the RPM based installer. |
+================================================= =====================+
In der Dokumentation konnte ich folgendes lesen:
CDH3 requires the Oracle JDK 1.6.0_8 at a minimum. Cloudera recommends version 1.6.0_26. Before installing and deploying CDH:
Make sure you have the same version of the Oracle JDK on each node.
Make sure the JAVA_HOME environment variable is set for the root user on each node.
You can check by using a command such as
sudo env | grep JAVA_HOME
It should be set to point to the directory where the JDK is installed.
As the root user, set JAVA_HOME to the directory where the JDK is installed; for example:
# export JAVA_HOME=<jdk-install-dir>
# export PATH=$JAVA_HOME/bin:$PATH
where <jdk-install-dir> might be something like /usr/java/jdk1.6.0_26, depending on the system configuration and where the JDK is actually installed.
Ich habe Java dann unter dem Pfad gefunden und folgendes gemacht: /usr/lib/jvm/java-7-oracle
root@ubuntu:/usr/lib/jvm/java-7-oracle# ls -la
total 19700
drwxr-xr-x 8 root root 4096 2012-03-01 14:49 .
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 ..
drwxr-xr-x 2 root root 4096 2012-03-01 14:49 bin
-r--r--r-- 1 root root 3339 2012-03-01 14:49 COPYRIGHT
drwxr-xr-x 4 root root 4096 2012-03-01 14:49 db
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 include
drwxr-xr-x 5 root root 4096 2012-03-01 14:49 jre
drwxr-xr-x 3 root root 4096 2012-03-01 14:49 lib
-r--r--r-- 1 root root 40 2012-03-01 14:49 LICENSE
drwxr-xr-x 4 root root 4096 2012-03-01 14:49 man
-r--r--r-- 1 root root 114 2012-03-01 14:49 README.html
-rw-r--r-- 1 root root 444 2012-03-01 14:49 release
-rw-r--r-- 1 root root 19945271 2012-03-01 14:49 src.zip
-r--r--r-- 1 root root 172252 2012-03-01 14:49 THIRDPARTYLICENSEREADME.txt
root@ubuntu:/# export JAVA_HOME=/usr/lib/jvm/java-7-oracle
root@ubuntu:/# export PATH=$JAVA_HOME/bin:$PATH
root@ubuntu:/# env | grep JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Allerdings immer noch das selbe Problem:
root@ubuntu:/# for service in /etc/init.d/hadoop-0.20-*; do sudo $service start; done
+================================================= =====================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |
| > http://java.sun.com/javase/downloads/ < |
| |
| Hadoop requires Java 1.6 or later. |
| NOTE: This script will find Sun Java whether you install using the |
| binary or the RPM based installer. |
+================================================= =====================+
Was muss ich noch machen bzw was habe ich Falsch geamcht kann mir jemand weiterhelfen ??