齐柏林飞艇:配置错误

时间:2020-05-25 09:14:32

标签: apache-zeppelin

当我尝试运行齐柏林飞艇时收到此错误消息:

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
 WARN [2020-05-25 09:08:31,181] ({main} ZeppelinConfiguration.java[create]:159) - Failed to load configuration, proceeding with a default
 INFO [2020-05-25 09:08:31,241] ({main} ZeppelinConfiguration.java[create]:171) - Server Host: 0.0.0.0
Exception in thread "main" java.lang.NumberFormatException: For input string: "tcp://172.30.239.172:80"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    at org.apache.zeppelin.conf.ZeppelinConfiguration.getInt(ZeppelinConfiguration.java:248)
    at org.apache.zeppelin.conf.ZeppelinConfiguration.getInt(ZeppelinConfiguration.java:243)
    at org.apache.zeppelin.conf.ZeppelinConfiguration.getServerPort(ZeppelinConfiguration.java:327)
    at org.apache.zeppelin.conf.ZeppelinConfiguration.create(ZeppelinConfiguration.java:173)
    at org.apache.zeppelin.server.ZeppelinServer.main(ZeppelinServer.java:129)

我正在部署Zeppelin,而没有进行任何配置。

编辑:

设置ZEPPELIN_PORT后出现其他错误消息:

ERROR [2020-05-25 12:41:41,354] ({main} ZeppelinServer.java[main]:262) - Error while running jettyServer
java.net.SocketException: Permission denied
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:85)
    at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
    at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308)
    at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
    at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.server.Server.doStart(Server.java:396)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.apache.zeppelin.server.ZeppelinServer.main(ZeppelinServer.java:253)

1 个答案:

答案 0 :(得分:1)

您似乎正在使用links with Docker compose或类似的名称,因此它为Zeppelin容器定义了ZEPPELIN_PORT形式的tcp://172.30.239.172:80环境变量。但是此环境变量应仅包含端口,例如808080

要解决此问题,请尝试将链接的容器从zeppelin重命名为其他名称,这样它就不会覆盖Zeppelin本身使用的环境变量。