nifi1.24.0 在arm架构,双ip部署报错问题解决
System Error
The request contained an invalid host header [192.168.1.11:8888] in the request [/nifi/]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:
127.0.0.1
127.0.0.1:8888
localhost
localhost:8888
[::1]
[::1]:8888
fdz57
fdz57:8888
192.168.1.12
192.168.1.12:8888
192.168.1.11
2023-12-05 20:49:10,281 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2023-12-05 20:49:10,282 INFO [main] org.apache.nifi.NiFi Started Application Controller in 13.678 seconds (13678755900 ns)
2023-12-05 20:49:17,705 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:17,765 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:18,887 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:18,934 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:20,095 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:20,158 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:20,862 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:20,902 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:27,441 INFO [pool-7-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Initiating checkpoint of FlowFile Repository
2023-12-05 20:49:27,441 INFO [pool-7-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Successfully checkpointed FlowFile Repository with 0 records in 0 milliseconds文章来源:https://www.toymoban.com/news/detail-758238.html
解决方法:
在/etc/hosts 下添加(其中12为实际ip,11为映射后的ip)
192.168.1.12 192.168.1.11:8888
192.168.1.12 192.168.1.11:8888文章来源地址https://www.toymoban.com/news/detail-758238.html
到了这里,关于nifi 映射ip部署报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!