0.7.3+ 0.80 zeppelin 修改端口后无法启动

首先 zeppelin的端口默认是8080 ,当我们把zeppelin放到服务器上时候,一般8080是大家都在争抢的端口,一般就把8080端口修改掉,
zeppelin 我一般修改为7980端口,修改前,0.8.0版本的zeppelin还能正常启动,修改后就启动不起来,查看日志报错 说 conf/目录下 helium.json不存在,查看确实没有呀,你本身没有带 ,肯定没有,但是为了让zeppelin启动,就创建了 一个空的 helium.json,还是启动不起来,报java nullpoint,只能找一个像 helium.json内容的填充进来

http://zeppelin.apache.org/docs/0.7.0/rest-api/rest-helium.html

{
  "status": "OK",
  "message": "",
  "body": {
    "zeppelin.clock": [
      {
        "registry": "local",
        "pkg": {
          "type": "APPLICATION",
          "name": "zeppelin.clock",
          "description": "Clock (example)",
          "artifact": "zeppelin-examples\/zeppelin-example-clock\/target\/zeppelin-example-clock-0.7.0-SNAPSHOT.jar",
          "className": "org.apache.zeppelin.example.app.clock.Clock",
          "resources": [
            [
              ":java.util.Date"
            ]
          ],
          "icon": "icon"
        },
        "enabled": false
      }
    ],
    "zeppelin-bubblechart": [
      {
        "registry": "local",
        "pkg": {
          "type": "VISUALIZATION",
          "name": "zeppelin-bubblechart",
          "description": "Animated bubble chart",
          "artifact": ".\/..\/helium\/zeppelin-bubble",
          "icon": "icon"
        },
        "enabled": true
      },
      {
        "registry": "local",
        "pkg": {
          "type": "VISUALIZATION",
          "name": "zeppelin-bubblechart",
          "description": "Animated bubble chart",
          "artifact": "[email protected]",
          "icon": "icon"
        },
        "enabled": false
      }
    ],
    "zeppelinhorizontalbar": [
      {
        "registry": "local",
        "pkg": {
          "type": "VISUALIZATION",
          "name": "zeppelinhorizontalbar",
          "description": "Horizontal Bar chart (example)",
          "artifact": ".\/zeppelin-examples\/zeppelin-example-horizontalbar",
          "icon": "icon"
        },
        "enabled": true
      }
    ]
  }
}

将上述的json 内容 copy 到 helium.json 就可以了,然后启动zeppelin成功

你可能感兴趣的:(0.7.3+ 0.80 zeppelin 修改端口后无法启动)