Dave,

As Mike and Otto pointed out, Java 9 is not yet supported by Apache NiFi. 
However, once you install the Java 8 runtime (JRE), you will still encounter a 
couple issues given your existing process.

* Double-clicking the “run-nifi.bat” will not start the application 
successfully. NiFi is a persistent application, so you will need to open a 
command prompt and then type “run-nifi.bat” and hit Enter. This “command 
window”/“terminal”/“shell” will remain open and the NiFi application will be 
running. You can monitor the status by looking at $NIFI_HOME/logs/nifi-app.log. 
After about 15 - 20 seconds, try going to “http://localhost:8080/nifi/” in your 
browser.
* The reason it was not working before is that you had a space in the directory 
name and this was not handled from the command prompt. Using double quotes 
around this directory name is required on Windows: "D:\Apache NiFi”

Here are some helpful tips for getting comfortable in the Windows command 
prompt: https://stackoverflow.com/a/41049135/70465

Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jun 15, 2018, at 5:20 AM, Mike Thomsen <[email protected]> wrote:
> 
> Yeah, Java 9 support is slated for NiFi 1.7.0.
> 
> On Fri, Jun 15, 2018 at 6:44 AM Otto Fowler <[email protected]> wrote:
> 
>> Running with Java 9 is not supported with 1.6.0 I believe.
>> 
>> 
>> 
>> On June 15, 2018 at 06:32:27, Dave ([email protected]) wrote:
>> 
>> Hi,
>> 
>> I am not sure if I can post my query here. If I am not supposed to, my
>> apologies. Please let me know if I can start a different thread.
>> 
>> I am also facing a similar situation. when I right click on "run-nifi.bat",
>> Command screen opens and some logs displayed. and then it stops or hangs.
>> Can you please guide me?
>> 
>> I am the only user of my laptop and system administrator.
>> 
>> nifi-app.log
>> <
>> 
>> http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1006/nifi-app.log
>>> 
>> 
>> nifi-bootstrap.log
>> <
>> 
>> http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1006/nifi-bootstrap.log
>>> 
>> 
>> nifi-user.log - is an empty file
>> 
>> os version : Windows 10 Pro
>> java version : java version "9.0.4"
>> Java(TM) SE Runtime Environment (build
>> 9.0.4+11)
>> Java HotSpot(TM) 64-Bit Server VM (build
>> 9.0.4+11, mixed mode)
>> nifi version : nifi-1.6.0-bin
>> 
>> Thanks in advance for you time and support.
>> 
>> The below log is from the CMD screen:
>> Failed to determine if Process 15208 is running; assuming that it is not
>> 2018-06-15 13:55:44,400 INFO [main] org.apache.nifi.bootstrap.Command
>> Starting Apache NiFi...
>> 2018-06-15 13:55:44,402 INFO [main] org.apache.nifi.bootstrap.Command
>> Working Directory: D:\nifi-1.6.0-bin
>> 2018-06-15 13:55:44,403 INFO [main] org.apache.nifi.bootstrap.Command
>> Command: C:\Program Files\Java\jdk-9.0.4\bin\java.exe -classpath
>> 
>> D:\nifi-1.6.0-bin\.\conf;D:\nifi-1.6.0-bin\.\lib\javax.servlet-api-3.1.0.jar;D:\nifi-1.6.0-bin\.\lib\jcl-over-slf4j-1.7.25.jar;D:\nifi-1.6.0-bin\.\lib\jetty-schemas-3.1.jar;D:\nifi-1.6.0-bin\.\lib\jul-to-slf4j-1.7.25.jar;D:\nifi-1.6.0-bin\.\lib\log4j-over-slf4j-1.7.25.jar;D:\nifi-1.6.0-bin\.\lib\logback-classic-1.2.3.jar;D:\nifi-1.6.0-bin\.\lib\logback-core-1.2.3.jar;D:\nifi-1.6.0-bin\.\lib\nifi-api-1.6.0.jar;D:\nifi-1.6.0-bin\.\lib\nifi-framework-api-1.6.0.jar;D:\nifi-1.6.0-bin\.\lib\nifi-nar-utils-1.6.0.jar;D:\nifi-1.6.0-bin\.\lib\nifi-properties-1.6.0.jar;D:\nifi-1.6.0-bin\.\lib\nifi-runtime-1.6.0.jar;D:\nifi-1.6.0-bin\.\lib\slf4j-api-1.7.25.jar
>> 
>> -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m
>> -Djavax.security.auth.useSubjectCredsOnly=true
>> -Djava.security.egd=file:/dev/urandom
>> -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true
>> -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol
>> -XX:+UseG1GC
>> -Dnifi.properties.file.path=D:\nifi-1.6.0-bin\.\conf\nifi.properties
>> -Dnifi.bootstrap.listen.port=55899 -Dapp=NiFi
>> -Dorg.apache.nifi.bootstrap.config.log.dir=D:\nifi-1.6.0-bin\bin\..\\logs
>> org.apache.nifi.NiFi
>> WARNING: An illegal reflective access operation has occurred
>> WARNING: Illegal reflective access by
>> org.apache.nifi.bootstrap.util.OSUtils
>> (file:/D:/nifi-1.6.0-bin/lib/bootstrap/nifi-bootstrap-1.6.0.jar) to field
>> java.lang.ProcessImpl.handle
>> WARNING: Please consider reporting this to the maintainers of
>> org.apache.nifi.bootstrap.util.OSUtils
>> WARNING: Use --illegal-access=warn to enable warnings of further illegal
>> reflective access operations
>> WARNING: All illegal access operations will be denied in a future release
>> 2018-06-15 13:55:45,400 WARN [main] org.apache.nifi.bootstrap.Command
>> Failed
>> to set permissions so that only the owner can read pid file
>> D:\nifi-1.6.0-bin\bin\..\run\nifi.pid; this may allows others to have
>> access
>> to the key needed to communicate with NiFi. Permissions should be changed
>> so
>> that only the owner can read this file
>> 2018-06-15 13:55:45,487 WARN [main] org.apache.nifi.bootstrap.Command
>> Failed
>> to set permissions so that only the owner can read status file
>> D:\nifi-1.6.0-bin\bin\..\run\nifi.status; this may allows others to have
>> access to the key needed to communicate with NiFi. Permissions should be
>> changed so that only the owner can read this file
>> 2018-06-15 13:55:45,661 INFO [main] org.apache.nifi.bootstrap.Command
>> Launched Apache NiFi with Process ID 9732
>> 
>> *Note: *Before this issue, I was having this folder in a folder by name
>> "Apache NiFi:. But at that, when I click on "run-nifi.bat", I got a message
>> 'D:\Apache' is not recognized as an internal or external command,
>> operable program or batch file.
>> 
>> 
>> 
>> --
>> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
>> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to