Zepplin的安装和部署
下载: http://www.apache.org/dyn/closer.cgi/zeppelin/zeppelin-0.8.2/zeppelin-0.8.2-bin-all.tgz
若不需要修改8080端口, 可以直接 zeppelin-daemon.sh start 启动;
一般修改端口:
// 1. 修改 环境变量
vim conf/zeppelin-env.sh
export JAVA_HOME=/usr/java/jdk-release
export ZEPPELIN_PORT=48080
export ZEPPELIN_LOG_DIR=/home/bigdata/log/zeppeline // 修改日志文件目录;
# 关于HADOOP_HOME, HBASE_HOME, SPARK_HOME等目录, 可不配置; 直接从user环境中读取;
// 2. 修改 server.add
vim conf/zeppelin-site.xml
<!-- 注意把原来的 127.0.0.1 改成 主机域名或 0.0.0.0, 否则可能监听不到; -->
<property>
<name>zeppelin.server.addr</name>
<value>ldsver55</value>
<description>Server binding address</description>
</property>
<property>
<name>zeppelin.server.port</name>
<value>48080</value>
<description>Server port.</description>
</property>
如果改成非8080端口, 需要 helium.json配置文件
vim conf/helium.json
{
"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": "zeppelin-bubblechart@0.0.2",
"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
}
]
}
}