<?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 How to change the default Java version? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101979#M14636</link>
    <description>&lt;P&gt;I am new to Hadoop and  started learning it, but have some beginners problems with the setup.  I had HDP 2.2 with JDK 1.7 and i tried to execute map reduce coded with 1.8.  And i realized that HDP 2.2 does not support JDK 1.8 and i have upgraded it to HDP 2.3.  When i execute Java -Version, i am still getting Java 1.7. As per the directions in HDP, i have used ambari-server setup to download JDK 1.8 and even after that Java -version is showing 1.7.  How to make it use JDK 1.8 as the default? &lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2016 00:59:58 GMT</pubDate>
    <dc:creator>ven04sai</dc:creator>
    <dc:date>2016-01-11T00:59:58Z</dc:date>
    <item>
      <title>How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101979#M14636</link>
      <description>&lt;P&gt;I am new to Hadoop and  started learning it, but have some beginners problems with the setup.  I had HDP 2.2 with JDK 1.7 and i tried to execute map reduce coded with 1.8.  And i realized that HDP 2.2 does not support JDK 1.8 and i have upgraded it to HDP 2.3.  When i execute Java -Version, i am still getting Java 1.7. As per the directions in HDP, i have used ambari-server setup to download JDK 1.8 and even after that Java -version is showing 1.7.  How to make it use JDK 1.8 as the default? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 00:59:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101979#M14636</guid>
      <dc:creator>ven04sai</dc:creator>
      <dc:date>2016-01-11T00:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101980#M14637</link>
      <description>&lt;P&gt;Try this &lt;A href="https://community.hortonworks.com/articles/4479/ambari-jdk-update-process.html" target="_blank"&gt;https://community.hortonworks.com/articles/4479/ambari-jdk-update-process.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 01:02:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101980#M14637</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2016-01-11T01:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101981#M14638</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2029/ven04sai.html" nodeid="2029"&gt;@Sairam Rachuri&lt;/A&gt; in your IDE make sure your code is set to sources 1.8.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 03:35:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101981#M14638</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-11T03:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101982#M14639</link>
      <description>&lt;P&gt;Thanks@Ali Bajwa and &lt;A href="https://community.hortonworks.com/questions/9327/how-to-change-the-default-java-version.html#"&gt;@Artem Ervits&lt;/A&gt;.  I tried Ali's suggestion and it still shows that Java 1.7 when i do Java -version.  But, i got a different error when I ran the mapred program in the terminal.   Now it says that i don't have the write access on the file/directory i am trying to write.  I need to check that.&lt;/P&gt;&lt;P&gt;When i run the same in Hue, i get a message that 'Output directory not set in JobConf.'  I am researching on this error now.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:25:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101982#M14639</guid>
      <dc:creator>ven04sai</dc:creator>
      <dc:date>2016-01-12T10:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101983#M14640</link>
      <description>&lt;P&gt;You might have to change the current java version by using&lt;/P&gt;&lt;PRE&gt; /usr/sbin/alternatives --config java&lt;/PRE&gt;&lt;P&gt;This will change the java version for the whole system and not just Ambari and the HDP components.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:14:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101983#M14640</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-01-12T16:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default Java version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101984#M14641</link>
      <description>&lt;P&gt;you need to set output directory in your job&lt;/P&gt;&lt;PRE&gt;    FileInputFormat.addInputPath(job, new Path(otherArgs.get(0)));
    FileOutputFormat.setOutputPath(job, new Path(otherArgs.get(1)));&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:22:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-default-Java-version/m-p/101984#M14641</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-12T16:22:25Z</dc:date>
    </item>
  </channel>
</rss>

