<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Error: JAVA_HOME is not set and Java could not be found in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19826#M2988</link>
    <description>&lt;P&gt;Ok so at this point I need to clarify, there is no valid reason to install the openJDK, generally speaking we only support the oracle JDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMHO there is something that has taken place up to this point that is preventing proper installation, perhaps things failed initially as the VM you are using failed to finish critical DB setup steps due to not having enough memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMHO really starting over with a fresh CentOS 6.4 or 6.5 VM makes sense at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once that VM is created make sure you have followed the "requirements" section of our installation guide with regard to the proper configuraiton of networking on your VM, I suggest setting up bridged networking in your VM software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-latest/Cloudera-Manager-Installation-Guide/cm5ig_cm_requirements.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-latest/Cloudera-Manager-Installation-Guide/cm5ig_cm_requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then download the simple installler and follow the path A installation steps, using the embedded postgres DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is detailed here in the section titled "&lt;/P&gt;&lt;P&gt;Download and Run the Cloudera Manager Server Installer"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_A.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_A.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2014 05:54:54 GMT</pubDate>
    <dc:creator>Grizzly</dc:creator>
    <dc:date>2014-10-08T05:54:54Z</dc:date>
    <item>
      <title>Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/18974#M2966</link>
      <description>&lt;P&gt;I installed cdh5.0 follow 'Installation Path B - Manual Installation Using Cloudera Manager Packages'&lt;/P&gt;&lt;P&gt;When i intalled oracle-j2sdk1.7-1.7.0&amp;nbsp;cloudera-manager-daemons-5.1.2&amp;nbsp;cloudera-manager-server-5.1.2 and cloudera-manager-server-db-2-5.1.2 in my linux6.4(64bit),on&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Database Setup page,i got an error like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;IMG border="0" /&gt;&lt;/DIV&gt;&lt;DIV&gt;INFO [JvmPauseMonitor:debug.JvmPauseMonitor@236] Detected pause in JVM or host machine (e.g. a stop the world GC, or JVM not scheduled): paused approximately 1039ms: no GCs detected.&lt;/DIV&gt;&lt;DIV&gt;+ cat&lt;BR /&gt;+======================================================================+&lt;BR /&gt;| Error: JAVA_HOME is not set and Java could not be found |&lt;BR /&gt;+----------------------------------------------------------------------+&lt;BR /&gt;| Please download the latest Oracle JDK from the Oracle Java web site |&lt;BR /&gt;| &amp;gt; &lt;A href="http://www.oracle.com/technetwork/java/javase/index.html" target="_blank"&gt;h &amp;nbsp;t t p : / &amp;nbsp;/ w w w .or acl e . c o m/technetwork/java/javase/index.html&lt;/A&gt; &amp;lt; |&lt;BR /&gt;| |&lt;BR /&gt;| Cloudera Manager requires Java 1.6 or later. |&lt;BR /&gt;| NOTE: This script will find Oracle Java whether you install using |&lt;BR /&gt;| the binary or the RPM based installer. |&lt;BR /&gt;+======================================================================+&lt;BR /&gt;+ exit 1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;what can i do ?&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:07:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/18974#M2966</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2022-09-16T09:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/18976#M2967</link>
      <description>&lt;P&gt;in test connection web,get error:&lt;SPAN&gt;Unexpected error. Unable to verify database connection&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 04:02:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/18976#M2967</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-19T04:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19102#M2968</link>
      <description>&lt;P&gt;who can help me?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 01:29:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19102#M2968</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19104#M2969</link>
      <description>To verify if Oracle Java was installed correctly, could you provide:&lt;BR /&gt;&lt;BR /&gt;# rpm -qa | grep oracle&lt;BR /&gt;# ls -l /usr/java&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2014 01:32:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19104#M2969</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2014-09-22T01:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19108#M2970</link>
      <description>&lt;P&gt;[root@cdh1 ~]# rpm -qa | grep oracle&lt;BR /&gt;oracle-j2sdk1.7-1.7.0+update55-2.x86_64&lt;BR /&gt;[root@cdh1 ~]# ls -l /usr/java/&lt;BR /&gt;total 4&lt;BR /&gt;drwxr-xr-x. 8 root root 4096 Sep 19 18:05 jdk1.7.0_55-cloudera&lt;BR /&gt;[root@cdh1 ~]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oracle Java was installed.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 02:27:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19108#M2970</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T02:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19116#M2971</link>
      <description>&lt;P&gt;how to set JAVA_HOME?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 05:38:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19116#M2971</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T05:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19118#M2972</link>
      <description>If you check the script /usr/share/cmf/bin/cmf-server on the host running&lt;BR /&gt;Cloudera Manager, you will see some checks for existing JDK locations. One&lt;BR /&gt;of them is /usr/java/jdk1.7* which matches your ls listing.&lt;BR /&gt;&lt;BR /&gt;​re you able to run the "bin/java" program from that location and see if it&lt;BR /&gt;prints the right version?&lt;BR /&gt;&lt;BR /&gt;# /usr/java/jdk1.7*/bin/java -version&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2014 05:45:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19118#M2972</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2014-09-22T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19122#M2973</link>
      <description>&lt;P&gt;here is my cloudera manager host show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@cdh1 ~]# java -version&lt;BR /&gt;java version "1.7.0_65"&lt;BR /&gt;OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)&lt;BR /&gt;OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@cdh1 ~]# /usr/bin/java -version&lt;BR /&gt;java version "1.7.0_65"&lt;BR /&gt;OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)&lt;BR /&gt;OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@cdh1 ~]# /usr/java/jdk1.7.0_55-cloudera/bin/java -version&lt;BR /&gt;java version "1.7.0_55"&lt;BR /&gt;Java(TM) SE Runtime Environment (build 1.7.0_55-b13)&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@cdh1 ~]# echo $JAVA_HOME&lt;BR /&gt;/usr/java/jdk1.7.0_55-cloudera&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@cdh1 ~]# ps -ef | grep cmf-server&lt;BR /&gt;root 1207 1 0 21:49 ? 00:00:00 su cloudera-scm -s /bin/bash -c nohup /usr/sbin/cmf-server&lt;BR /&gt;root 1495 1322 0 22:12 pts/1 00:00:00 grep cmf-server&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 06:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19122#M2973</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T06:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19124#M2974</link>
      <description>&lt;P&gt;JAVA_HOME seted in /etc/profile. and centos installed on VMware.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 06:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19124#M2974</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19126#M2975</link>
      <description>&lt;P&gt;[root@cdh1 ~]# whereis java&lt;BR /&gt;java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in&amp;nbsp;/usr/share/java directory have no file&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 06:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19126#M2975</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-22T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19400#M2976</link>
      <description>&lt;P&gt;how to set java_home ? &amp;nbsp;&lt;/P&gt;&lt;P&gt;who can help me ?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 10:12:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19400#M2976</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-26T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19408#M2977</link>
      <description>&lt;P&gt;you can set "JAVA_HOME" in /etc/defaults/cloudera-scm-server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add to the end of the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;export JAVA_HOME=/usr/java/jdk1.7.0_55&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 21:05:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19408#M2977</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-09-26T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19422#M2978</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank you for your help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I set the java_home in&amp;nbsp;/etc/default/cloudera-scm-server with 'export JAVA_HOME=/usr/java/jdk1.7.0_55-cloudera',but when click 'test connection' in Add Cloudera ManagementService with browser,i got the same error 'Unexpected error. Unable to verify database connection.', and the /var/log/cloudera-scm-server/cloudera-scm-server.log&amp;nbsp;file show like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INFO [JvmPauseMonitor:debug.JvmPauseMonitor@236] Detected pause in JVM or host machine (e.g. a stop the world GC, or JVM not scheduled): paused approximately 1024ms: no GCs detected.&lt;/P&gt;&lt;P&gt;+======================================================================+&lt;BR /&gt;| Error: JAVA_HOME is not set and Java could not be found |&lt;BR /&gt;+----------------------------------------------------------------------+&lt;BR /&gt;| Please download the latest Oracle JDK from the Oracle Java web site |&lt;BR /&gt;| &amp;gt; &lt;A href="http://www.oracle.com/technetwork/java/javase/index.html" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/index.html&lt;/A&gt; &amp;lt; |&lt;BR /&gt;| |&lt;BR /&gt;| Cloudera Manager requires Java 1.6 or later. |&lt;BR /&gt;| NOTE: This script will find Oracle Java whether you install using |&lt;BR /&gt;| the binary or the RPM based installer. |&lt;BR /&gt;+======================================================================+&lt;BR /&gt;+ exit 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Here is the java_home configure show:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[root@cdh1 ~]# tail /etc/default/cloudera-scm-server&lt;BR /&gt;# Java Options.&lt;BR /&gt;#&lt;BR /&gt;# Default value sets Java maximum heap size to 2GB, and Java maximum permanent&lt;BR /&gt;# generation size to 256MB.&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;export CMF_JAVA_OPTS="-Xmx2G -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp"&lt;BR /&gt;export JAVA_HOME=/usr/java/jdk1.7.0_55-cloudera&lt;BR /&gt;export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar&lt;BR /&gt;export PATH=$PATH:$JAVA_HOME/bin&lt;BR /&gt;[root@cdh1 ~]#&lt;BR /&gt;[root@cdh1 ~]#&lt;BR /&gt;[root@cdh1 ~]# echo $JAVA_HOME&lt;BR /&gt;/usr/java/jdk1.7.0_55-cloudera/&lt;BR /&gt;[root@cdh1 ~]# ls /usr/java/jdk1.7.0_55-cloudera/&lt;BR /&gt;bin db jre LICENSE README.html src.zip THIRDPARTYLICENSEREADME.txt&lt;BR /&gt;COPYRIGHT include lib man release THIRDPARTYLICENSEREADME-JAVAFX.txt&lt;BR /&gt;[root@cdh1 ~]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong? any how can i do?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2014 02:05:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19422#M2978</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-28T02:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19426#M2979</link>
      <description>&lt;P&gt;OK so realize NONE of this should be necessary, and this is not normal to need to configure things this way. &amp;nbsp;It is not necessary to have to set JAVA_HOME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we need to focus on this part of the message, rather than the JAVA_HOME message which appears to be a false-positive error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INFO [JvmPauseMonitor:debug.JvmPauseMonitor@236] Detected pause in JVM or host machine (e.g. a stop the world GC, or JVM not scheduled): paused approximately 1024ms: no GCs detected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How much memory is configured for your VM you are attempting to run things on? &amp;nbsp;How much physical memory does the system you are running the VM on have?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears the 1.7 openJDK has been installed as well, which is alongside of the oracle JDK on the system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you get for the following commands on the system:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -l /usr/java&lt;/P&gt;&lt;P&gt;# yum list installed "*jdk*"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2014 16:05:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19426#M2979</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-09-28T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19434#M2980</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;memory is configured for my&amp;nbsp;VM i'm&amp;nbsp;attempting to run things on is &lt;SPAN style="font-size: 14pt;"&gt;512MB&lt;/SPAN&gt;, and&amp;nbsp;physical memory the system i'm&amp;nbsp;running the VM on is &lt;SPAN style="font-size: 14pt;"&gt;8GB&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following commands on the system get like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -l /usr/java&lt;/P&gt;&lt;P&gt;total 4&lt;BR /&gt;drwxr-xr-x. 8 root root 4096 Sep 19 18:05 jdk1.7.0_55-cloudera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# yum list installed "*jdk*"&lt;/P&gt;&lt;P&gt;Loaded plugins: fastestmirror&lt;BR /&gt;Loading mirror speeds from cached hostfile&lt;BR /&gt;* base: mirrors.cug.edu.cn&lt;BR /&gt;* extras: mirrors.cug.edu.cn&lt;BR /&gt;* updates: mirrors.btte.net&lt;BR /&gt;base | 3.7 kB 00:00&lt;BR /&gt;extras | 3.3 kB 00:00&lt;BR /&gt;updates | 3.4 kB 00:00&lt;BR /&gt;updates/primary_db | 5.3 MB 00:01&lt;BR /&gt;Installed Packages&lt;BR /&gt;java-1.7.0-openjdk.x86_64 1:1.7.0.65-2.5.1.2.el6_5 @updates&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 01:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19434#M2980</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-29T01:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19448#M2981</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Memory configured for VM running things on is 512MB,and the physical memory the VM running on is 8GB.&lt;/P&gt;&lt;P&gt;The following commands get show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@cdh1 ~]# ls -l /usr/java&lt;BR /&gt;total 4&lt;BR /&gt;drwxr-xr-x. 8 root root 4096 Sep 19 18:05 jdk1.7.0_55-cloudera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@cdh1 ~]# yum list installed "*jdk*"&lt;BR /&gt;Loaded plugins: fastestmirror&lt;BR /&gt;Determining fastest mirrors&lt;BR /&gt;* base: mirrors.yun-idc.com&lt;BR /&gt;* extras: mirrors.yun-idc.com&lt;BR /&gt;* updates: mirrors.btte.net&lt;BR /&gt;base | 3.7 kB 00:00&lt;BR /&gt;extras | 3.3 kB 00:00&lt;BR /&gt;updates | 3.4 kB 00:00&lt;BR /&gt;Installed Packages&lt;BR /&gt;java-1.7.0-openjdk.x86_64 1:1.7.0.65-2.5.1.2.el6_5 @updates&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 07:58:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19448#M2981</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-29T07:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19480#M2982</link>
      <description>&lt;P&gt;Ok at this point I would suggest reviewing the "requirements" section, here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_cm_requirements.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_cm_requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also realize you need memory for CDH, so running the VM at a minimum of 4GB memory is necessary.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue you are seeing is because there is not enough memory, Cloudera Manager and CDH are memory intensive applicaitons. &amp;nbsp; The JAVA_HOME error message you are seeing is due to this (the message is a false indication of the problem, as I stated in my previous note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:01:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19480#M2982</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-09-29T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19508#M2983</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;I set the memory of VM to 4GB,but i got the same error.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:37:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19508#M2983</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-30T02:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19510#M2984</link>
      <description>&lt;P&gt;Need i reinstall the centos system?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:39:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19510#M2984</guid>
      <dc:creator>lyh3679305</dc:creator>
      <dc:date>2014-09-30T02:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: JAVA_HOME is not set and Java could not be found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19528#M2985</link>
      <description>No, that should not be necessary. Are there error messages in the cloudera manager logs? Exceptions maybe?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Sep 2014 11:06:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-JAVA-HOME-is-not-set-and-Java-could-not-be-found/m-p/19528#M2985</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-09-30T11:06:15Z</dc:date>
    </item>
  </channel>
</rss>

