当前位置: 首页 > 知识库问答 >
问题:

无法在Windows 10上安装Apache Nifi

孙俊彦
2023-03-14

我已经安装了Apache nifi-1.8.0。我的PC中安装了JDK-11.0.2。我已经将Nifi文件夹放在路径C:\demo\nifi-1.8.0上,将JDK放在路径C:\java上。

我无法启动Apache Nifi。

2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Demo\NIFI-1~1.0
2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Java\jdk-11.0.2\bin\java.exe -classpath C:\Demo\NIFI-1~1.0\.\conf;C:\Demo\NIFI-1~1.0\.\lib\javax.servlet-api-3.1.0.jar;C:\Demo\NIFI-1~1.0\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\jetty-schemas-3.1.jar;C:\Demo\NIFI-1~1.0\.\lib\jul-to-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-classic-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-core-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-framework-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-nar-utils-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-properties-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-runtime-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\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=C:\Demo\NIFI-1~1.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=52205 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Demo\NIFI-1~1.0\bin\..\\logs --add-modules=java.xml.bind org.apache.nifi.NiFi
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.nifi.bootstrap.util.OSUtils (file:/C:/Demo/nifi-1.8.0/lib/bootstrap/nifi-bootstrap-1.8.0.jar) to method java.lang.ProcessImpl.pid()
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
2019-02-02 11:28:11,093 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Demo\NIFI-1~1.0\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
2019-02-02 11:28:11,140 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Demo\NIFI-1~1.0\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
2019-02-02 11:28:11,202 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 7500

在nifi-bootstrap.log中,我得到以下错误:

2019-02-02 11:28:10,858 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: []
2019-02-02 11:28:10,890 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED
2019-02-02 11:28:10,890 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STOPPED
2019-02-02 11:28:10,890 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_DIED
2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Demo\NIFI-1~1.0
2019-02-02 11:28:10,983 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Java\jdk-11.0.2\bin\java.exe -classpath C:\Demo\NIFI-1~1.0\.\conf;C:\Demo\NIFI-1~1.0\.\lib\javax.servlet-api-3.1.0.jar;C:\Demo\NIFI-1~1.0\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\jetty-schemas-3.1.jar;C:\Demo\NIFI-1~1.0\.\lib\jul-to-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-classic-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-core-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-framework-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-nar-utils-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-properties-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-runtime-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\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=C:\Demo\NIFI-1~1.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=52205 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Demo\NIFI-1~1.0\bin\..\\logs --add-modules=java.xml.bind org.apache.nifi.NiFi 
2019-02-02 11:28:11,093 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Demo\NIFI-1~1.0\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
2019-02-02 11:28:11,140 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Demo\NIFI-1~1.0\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
2019-02-02 11:28:11,202 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 7500
2019-02-02 11:28:11,265 INFO [NiFi logging handler] org.apache.nifi.StdOut Error occurred during initialization of boot layer
2019-02-02 11:28:11,265 INFO [NiFi logging handler] org.apache.nifi.StdOut java.lang.module.FindException: Module java.xml.bind not found
2019-02-02 11:28:12,229 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

共有1个答案

蒋无尘
2023-03-14

在文档中找不到支持nifi的java版本

但java 11中的问题是

将java降级到版本8

 类似资料:
  • 本文向大家介绍windows10安装mysql5.7.17教程,包括了windows10安装mysql5.7.17教程的使用技巧和注意事项,需要的朋友参考一下 本教程为大家分享了mysql5.7.17安装配置方法,供大家参考,具体内容如下 操作 全允许 精彩专题分享:mysql不同版本安装教程 mysql5.7各版本安装教程 以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持呐喊

  • 本文向大家介绍windows10安装mysql5.7.18教程,包括了windows10安装mysql5.7.18教程的使用技巧和注意事项,需要的朋友参考一下 本教程为大家分享了mysql5.7.18安装配置方法,供大家参考,具体内容如下 一、mysql5.7.18安装配置 1、MySQL下载:https://www.mysql.com/downloads/ Download MySQL Comm

  • 问题内容: 我正在运行Linux(2.6.18-164.15.1.el5.centos.plus),并尝试安装pyodbc。我正在做pip install pyodbc并得到很长的错误列表,这些错误以 错误:命令“ gcc”失败,退出状态为1 我查看了 /root/.pip/pip.log ,看到了以下内容: InstallationError:命令/ usr / local / bin / py

  • 我试图在PyCharm上安装TensorFlow

  • 我试图通过克隆repo在mac os 10.13上安装Multicorn。在我的机器上,但得到错误,我还安装了mac os 10.13的xcode。 我得到的错误: Python的版本是2.7 clang-wall-Wwiness-原型-Wpoint er-arith-Wdisonation-post-语句-Wfalse=vla-Wendif-标签-Wwiness-forment-属性-Wform

  • 问题内容: 我安装了Python 2.7和NumPy。我已经下载了SciPy的预构建二进制文件,但是安装脚本因以下错误而失败: 找不到Blas库。可以在文件(部分)中指定搜索目录的目录,也可以通过设置BLAS环境变量来指定 目录。 我真的对这件事还不了解。我以为这是一个简单的安装过程,但事实并非如此。我用Google搜索了BLAS环境变量,但是找不到任何合适的变量。任何帮助表示赞赏。 麦克风 编辑

  • 进入插件部分后, 我继续进行常规安装: 但是在一些安装屏幕之后,netbean给了我这个错误: 这发生在加载一段时间后: 有人知道为什么会这样吗? 注意:我使用的是macOS Mojave