【Nifi】 Nifi安裝部署

最近開始研究一下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/

證明我們的服務啓動成功了,後面我會接着來寫相關的程序調用相關的內容

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章