<?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 8 on CDH with Cloudera Director 2.7.0 (AWS) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64833#M74840</link>
    <description>&lt;P&gt;Hi Behel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, we didn't get the example application.properties values correct in the 2.7.0 release, but the cmJavaPackages and defaultCmJavaPackages are the correct ones to set. cmJavaPackages is a list, so the syntax is a little odd (and our docs might not be quite right, still):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lp.bootstrap.packages.cmJavaPackages[0]: ".*=oracle-j2sdk1.8"&lt;/P&gt;&lt;P&gt;lp.bootstrap.packages.defaultCmJavaPackage: oracle-j2sdk1.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "javaPackage" property doesn't have any effect, so you can remove it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use the UI, Cloudera Director uses the AUTO Java installation strategy, so the settings won't have any effect on the cluster instances, just on the CM instance. Under AUTO, Director lets Cloudera Manager handle the cluster instances, and they only get Java 7 and maybe Java 6, depending on the version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get just Java 8 on everything, use the DIRECTOR_MANAGED Java installation strategy, which requires you to use a client configuration file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your setup of the Cloudera Director repo to make the oracle-j2sdk1.8 package available looks correct to me. You can always test it out manually by running yum from the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do let me know if the above helps you get things working!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 14:25:17 GMT</pubDate>
    <dc:creator>Bill Havanki</dc:creator>
    <dc:date>2018-02-22T14:25:17Z</dc:date>
    <item>
      <title>Java 8 on CDH with Cloudera Director 2.7.0 (AWS)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64830#M74839</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp;have a problem when I try to deploy a cluster with Java 8 through Cloudera Director, with the 2.7.0 version running on AWS EC2.&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp;tried&amp;nbsp;to follow the&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/director/latest/topics/director_create_java_clusters.html" target="_blank"&gt;documentation&lt;/A&gt;, but I got some&amp;nbsp;issues :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;-&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;cmJavaPackages&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;defaultCmJavaPackage&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;properties are missing in the application.properties file. Instead, there is a property named&amp;nbsp;l&lt;FONT face="andale mono,times"&gt;p.bootstrap.packages.javaPackage&lt;/FONT&gt;.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Here is&amp;nbsp;what I put&amp;nbsp;in order to have Java 8:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;lp.bootstrap.packages.javaPackage: oracle-j2sdk1.8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;lp.bootstrap.packages.cmJavaPackages: .*=oracle-j2sdk1.8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;lp.bootstrap.packages.defaultCmJavaPackage: oracle-j2sdk1.8&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;- Then, when I create a Cloudera Manager instance with the Director UI (with adding the Cloudera Director yum repo in the instance bootstraping), I&amp;nbsp;have both Java 7 and Java 8 JDKs installed on the instance&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;ls /usr/java&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;jdk1.7.0_67-cloudera jdk1.8.0_121-cloudera&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;- Finally, when I launch a cluster (so with the AUTO JDK Installation Strategy), I only have Java 7 JDK on my instances.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the&amp;nbsp;last RHEL AMI&amp;nbsp;(RHEL-7.4_HVM-20180103-x86_64-2-Hourly2-GP2 (ami-194cdc76)) on my instances, and this bootstrap script :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;sudo yum install --assumeyes wget&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;cd /etc/yum.repos.d/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;sudo wget "&lt;A href="https://archive.cloudera.com/director/redhat/7/x86_64/director/cloudera-director.repo" target="_blank"&gt;https://archive.cloudera.com/director/redhat/7/x86_64/director/cloudera-director.repo&lt;/A&gt;"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me ?&lt;BR /&gt;Did I miss something important in the configuration ?&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:53:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64830#M74839</guid>
      <dc:creator>Behel</dc:creator>
      <dc:date>2022-09-16T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java 8 on CDH with Cloudera Director 2.7.0 (AWS)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64833#M74840</link>
      <description>&lt;P&gt;Hi Behel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, we didn't get the example application.properties values correct in the 2.7.0 release, but the cmJavaPackages and defaultCmJavaPackages are the correct ones to set. cmJavaPackages is a list, so the syntax is a little odd (and our docs might not be quite right, still):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lp.bootstrap.packages.cmJavaPackages[0]: ".*=oracle-j2sdk1.8"&lt;/P&gt;&lt;P&gt;lp.bootstrap.packages.defaultCmJavaPackage: oracle-j2sdk1.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "javaPackage" property doesn't have any effect, so you can remove it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use the UI, Cloudera Director uses the AUTO Java installation strategy, so the settings won't have any effect on the cluster instances, just on the CM instance. Under AUTO, Director lets Cloudera Manager handle the cluster instances, and they only get Java 7 and maybe Java 6, depending on the version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get just Java 8 on everything, use the DIRECTOR_MANAGED Java installation strategy, which requires you to use a client configuration file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your setup of the Cloudera Director repo to make the oracle-j2sdk1.8 package available looks correct to me. You can always test it out manually by running yum from the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do let me know if the above helps you get things working!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:25:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64833#M74840</guid>
      <dc:creator>Bill Havanki</dc:creator>
      <dc:date>2018-02-22T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java 8 on CDH with Cloudera Director 2.7.0 (AWS)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64837#M74841</link>
      <description>&lt;P&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;It doesn't work with&amp;nbsp;lp.bootstrap.packages.cmJavaPackages[0]: ".*=oracle-j2sdk1.8" as a property, I have this error in the logs when I try to use the CLI :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lp.bootstrap.packages-com.cloudera.launchpad.bootstrap.PackageIndex$ConfigProperties': Could not bind properties to PackageIndex.ConfigProperties (prefix=lp.bootstrap.packages, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is java.lang.UnsupportedOperationException&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I put again&amp;nbsp;&lt;FONT face="andale mono,times" size="2"&gt;lp.bootstrap.packages.cmJavaPackages: .*=oracle-j2sdk1.8&amp;nbsp;&lt;/FONT&gt;as property and it works fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I&amp;nbsp;misunderstood&amp;nbsp;the Auto Strategy, maybe the documentation isn't very clear about it. I thought that this strategy forced Manager to deploy Java 8 on the cluster instances.&lt;BR /&gt;&lt;BR /&gt;It's ok with the Director_Managed Strategy, I have just Java 8 on my instances&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:57:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Java-8-on-CDH-with-Cloudera-Director-2-7-0-AWS/m-p/64837#M74841</guid>
      <dc:creator>Behel</dc:creator>
      <dc:date>2018-02-22T16:57:29Z</dc:date>
    </item>
  </channel>
</rss>

