吊舱细节试图在当地启动kubernetes nifi集群。采取的步骤如下:
从日志中找到nifi监听容器的44399端口。2020-07-30 15:01:05,052 INFO主org.apache.nifi.BootstrapListener启动引导程序,监听端口44399上的传入请求
在加载这个http://localhost:8080/时,我得到以下错误。
2020-07-30 15:31:48,066 ERROR [pool-2-thread-2] org.apache.nifi.BootstrapListener Failed to process request from Bootstrap due to java.io.IOException: Received invalid Secret Key for request type GET java.io.IOException: Received invalid Secret Key for request type GET at org.apache.nifi.BootstrapListener.readRequest(BootstrapListener.java:273) at org.apache.nifi.BootstrapListener.access$100(BootstrapListener.java:39) at org.apache.nifi.BootstrapListener$Listener$1.run(BootstrapListener.java:170) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)使用下面的命令在码头上运行相同的图像是很好的。docker run -名称nifi -p 8080:8080 -d apache/nifi:最新
发布于 2020-07-30 16:27:44
Nifi不公开44399作为端口,因此它不应该是可访问的,因此您无法访问。图像只公开8080,8443,10000,8000每个不同的用途。使用8080通过http访问Nifi,通过docker访问。
kubectl port-forward service/<nifi-svc-name> <local-port>:8080
或
kubectl port-forward pod/<nifi-pod-name> <local-port>:8080
这将在本地端口本地运行应用程序。
https://stackoverflow.com/questions/63177019
复制相似问题