赞
踩
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
解决方法:
在/etc/hosts 下添加(其中12为实际ip,11为映射后的ip)
192.168.1.12 192.168.1.11:8888
192.168.1.12 192.168.1.11:8888
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。