【Nifi】 Nifi安装部署

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinosoft12345/article/details/87931691

最近开始研究一下Nifi,一个开源的数据处理工具。首先我们需要下载Nifi的应用并在本地安装部署。

1、访问官网网站http://nifi.apache.org/download.html

然后解压到本地的目录,我的目录是

2、修改配置

可以修改nifi.properties的日志目录,端口号等,我的是按默认的进行的。

3、启动服务,首先启动本期之前搭建过的zookeeper,然后接着到bin目录,双击run-nifi.bat启动,启动后

Failed to determine if Process 8240 is running; assuming that it is not
2019-02-26 11:36:52,471 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2019-02-26 11:36:52,472 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: D:\nifi-1.9.0
2019-02-26 11:36:52,472 INFO [main] org.apache.nifi.bootstrap.Command Command: D:\Program Files\Java\jdk1.8.0_121\bin\java.exe -classpath D:\nifi-1.9.0\.\conf;D:\nifi-1.9.0\.\lib\javax.servlet-api-3.1.0.jar;D:\nifi-1.9.0\.\lib\jcl-over-slf4j-1.7.25.jar;D:\nifi-1.9.0\.\lib\jetty-schemas-3.1.jar;D:\nifi-1.9.0\.\lib\jul-to-slf4j-1.7.25.jar;D:\nifi-1.9.0\.\lib\log4j-over-slf4j-1.7.25.jar;D:\nifi-1.9.0\.\lib\logback-classic-1.2.3.jar;D:\nifi-1.9.0\.\lib\logback-core-1.2.3.jar;D:\nifi-1.9.0\.\lib\nifi-api-1.9.0.jar;D:\nifi-1.9.0\.\lib\nifi-framework-api-1.9.0.jar;D:\nifi-1.9.0\.\lib\nifi-nar-utils-1.9.0.jar;D:\nifi-1.9.0\.\lib\nifi-properties-1.9.0.jar;D:\nifi-1.9.0\.\lib\nifi-runtime-1.9.0.jar;D:\nifi-1.9.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 -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=D:\nifi-1.9.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=57048 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=D:\nifi-1.9.0\bin\..\\logs org.apache.nifi.NiFi
2019-02-26 11:36:52,905 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file D:\nifi-1.9.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-26 11:36:52,944 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file D:\nifi-1.9.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-26 11:36:52,964 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 7524

等着3-5分钟,然后通过浏览器访问http://localhost:8080/nifi/

证明我们的服务启动成功了,后面我会接着来写相关的程序调用相关的内容

猜你喜欢

转载自blog.csdn.net/sinosoft12345/article/details/87931691