我无法从jupyterhub docker访问apache livy服务器。 从docker内部卷曲curl localhost:8998 / sessions,响应为 “卷曲:(7)无法连接到本地主机端口8998:连接被拒绝。”
Livy server and session is active.
Livy User Impersonation applied.
livy-conf livy.impersonation.enabled true
livy-conf livy.server.session.timeout 5h
livy-conf livy.spark.master yarn-cluster
我的.sparkmagic / config.json是:
https://github.com/jupyter-incubator/sparkmagic/blob/master/sparkmagic/example_config.json