<?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_HOME not set; results may vary - no solution found in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303405#M221538</link>
    <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50362"&gt;@bingo&lt;/a&gt;&amp;nbsp;'s solution to get Nifi to find my JAVA_HOME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you mention that Nifi does not need this to run. Do you know what is the impact for running nifi without it knowing where Java is installed?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 19:17:29 GMT</pubDate>
    <dc:creator>Tokolosk</dc:creator>
    <dc:date>2020-09-25T19:17:29Z</dc:date>
    <item>
      <title>JAVA_HOME not set; results may vary - no solution found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303357#M221519</link>
      <description>&lt;P&gt;If I do&amp;nbsp;&lt;STRONG&gt;echo $JAVA_HOME&lt;/STRONG&gt; I get&amp;nbsp;/usr/lib/jvm/java-8-openjdk-amd64 as a response, yet I cannot get nifi to see it when it starts, always gives this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;nifi.sh: JAVA_HOME not set; results may vary&lt;/P&gt;&lt;P&gt;Java home:&lt;/P&gt;&lt;P&gt;NiFi home: /opt/nifi-1.12.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is on a clean Ubuntu 18.04 installation, having followed these instructions:&amp;nbsp;&lt;A href="https://techexpert.tips/apache-nifi/apache-nifi-installation-ubuntu-linux/" target="_blank"&gt;https://techexpert.tips/apache-nifi/apache-nifi-installation-ubuntu-linux/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;At this point really not sure what to do.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 19:50:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303357#M221519</guid>
      <dc:creator>Tokolosk</dc:creator>
      <dc:date>2020-09-24T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA_HOME not set; results may vary - no solution found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303368#M221522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you define JAVA_HOME in your environment, then you must use the command:&lt;BR /&gt;export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64&lt;BR /&gt;And then the script will pick it up from your environment. Also please check if nifi bootstrap.conf file is configured properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 01:38:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303368#M221522</guid>
      <dc:creator>dyadav1</dc:creator>
      <dc:date>2020-09-25T01:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA_HOME not set; results may vary - no solution found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303369#M221523</link>
      <description>&lt;P&gt;you may set JAVA_HOME in&amp;nbsp; '&lt;STRONG&gt;nifi-env.sh&lt;/STRONG&gt;' which in the same dir with '&lt;SPAN&gt;nifi.sh'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 02:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303369#M221523</guid>
      <dc:creator>bingo</dc:creator>
      <dc:date>2020-09-25T02:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA_HOME not set; results may vary - no solution found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303398#M221535</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81245"&gt;@Tokolosk&lt;/a&gt;&amp;nbsp;JAVA_HOME is not required for nifi to operate.&lt;/P&gt;&lt;PRE&gt;[root@c7401 nifi-1.12.0]# ./bin/nifi.sh start
nifi.sh: JAVA_HOME not set; results may vary

Java home: 
NiFi home: /root/nifi-1.12.0

Bootstrap Config File: /root/nifi-1.12.0/conf/bootstrap.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only commands in my node are (not ubuntu but should be similar):&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="s1"&gt;yum install java java-devel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;wget http://apache.mirrors.hoobly.com/nifi/1.12.0/nifi-1.12.0-bin.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;unzip nifi-1.12.0-bin.zip &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;cd nifi-1.12.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;./bin/nifi.sh start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;tail -f logs/nifi-app.log&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;2020-09-25 12:15:14,828 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2020-09-25 12:15:14,828 INFO [main] org.apache.nifi.web.server.JettyServer http://192.168.74.101:8080/nifi
2020-09-25 12:15:14,828 INFO [main] org.apache.nifi.web.server.JettyServer http://10.0.2.15:8080/nifi
2020-09-25 12:15:14,828 INFO [main] org.apache.nifi.web.server.JettyServer http://127.0.0.1:8080/nifi&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If you are having problems, be sure to tail logs/nifi-app.log and look for errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 12:27:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303398#M221535</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-09-25T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA_HOME not set; results may vary - no solution found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303405#M221538</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50362"&gt;@bingo&lt;/a&gt;&amp;nbsp;'s solution to get Nifi to find my JAVA_HOME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you mention that Nifi does not need this to run. Do you know what is the impact for running nifi without it knowing where Java is installed?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 19:17:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JAVA-HOME-not-set-results-may-vary-no-solution-found/m-p/303405#M221538</guid>
      <dc:creator>Tokolosk</dc:creator>
      <dc:date>2020-09-25T19:17:29Z</dc:date>
    </item>
  </channel>
</rss>

