<?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: Java version of HDP2.6 conflict? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200298#M62489</link>
    <description>&lt;P&gt;Actually presumably  hive can't find the 112 version, hence the error. I updated to 112 but the error is still there &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 16:22:47 GMT</pubDate>
    <dc:creator>ed_day</dc:creator>
    <dc:date>2017-06-07T16:22:47Z</dc:date>
    <item>
      <title>Java version of HDP2.6 conflict?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200294#M62485</link>
      <description>&lt;P&gt;I am trying to use Hive View 2.0 in my cluster (HDP 2.6.0.3 (Ambari 2.5.0.3)) But I get the java.lang.NullPointerException error, and as per &lt;A href="https://community.hortonworks.com/questions/106053/cannot-use-hive-view-20.html"&gt;this&lt;/A&gt; question I have tried everything except checking Java versions.&lt;/P&gt;&lt;P&gt;Can anyone tell me how to check the Java use by HDP/Hive?&lt;/P&gt;&lt;P&gt;And how do I upgrade my java to match?&lt;/P&gt;&lt;P&gt;TIA!&lt;/P&gt;&lt;P&gt;My java:&lt;/P&gt;&lt;PRE&gt; java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:32:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200294#M62485</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-06-07T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Java version of HDP2.6 conflict?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200295#M62486</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding your query "Can anyone tell me how to check the Java use by HDP/Hive?"&lt;/P&gt;&lt;P&gt;You can use the following command to find out which Java Binary it is using .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# ps -ef | grep ^hive
hive     23474     1  0 Jun02 ?        00:45:46 /usr/jdk64/jdk1.7.0_67/bin/java -Xmx1024m -Dhdp.version=2.5.3.0-37 -Djava.net.preferIPv4Stack=true -Dhdp.version=2.5.3.0-37 -Dhadoop.log.dir=/var/log/hadoop/hive -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/hdp/2.5.3.0-37/hadoop -Dhadoop.id.str=hive -Dhadoop.root.logger=INFO,console..........&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Whatever Java binary path it shows , you can run the version command on it &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# /usr/jdk64/jdk1.7.0_67/bin/java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Changing the java version can be achieved as mentioned in ; &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-administration/content/ch_changing_the_jdk_version_on_an_existing_cluster.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-administration/content/ch_changing_the_jdk_version_on_an_existing_cluster.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:39:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200295#M62486</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-07T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Java version of HDP2.6 conflict?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200296#M62487</link>
      <description>&lt;P&gt;Support Martrix for HDP 2.6 is JDK 1.8+ as below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_support-matrices/content/ch_matrices-hdp.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_support-matrices/content/ch_matrices-hdp.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;Taable 2.2. HDP 2.6.0 JDK Support
JDKVersionOpen SourceJDK8†
OracleJDK 8
JDK7† , deprecated
JDK 7, deprecated
&lt;/PRE&gt;&lt;P&gt;Please update exactly when you getting this error, it give more clarity ?.&lt;/P&gt;&lt;P&gt;Up-grading the jave version is not the solution .&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:48:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200296#M62487</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2017-06-07T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Java version of HDP2.6 conflict?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200297#M62488</link>
      <description>&lt;P&gt;Thanks, very helpful! the Hive is 112 as opposed to 111. Does that sound like it would be a problem?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:18:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200297#M62488</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-06-07T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java version of HDP2.6 conflict?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200298#M62489</link>
      <description>&lt;P&gt;Actually presumably  hive can't find the 112 version, hence the error. I updated to 112 but the error is still there &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:22:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-version-of-HDP2-6-conflict/m-p/200298#M62489</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-06-07T16:22:47Z</dc:date>
    </item>
  </channel>
</rss>

