Zeppelin 部署

--zeppelin 下载地址

https://downloads.apache.org/zeppelin/

http://zeppelin.apache.org/download.html

 

 

[root@big-master1 conf]# cat /etc/profile

# /etc/profile

# System wide environment and startup programs, for login setup

# Functions and aliases go in /etc/bashrc

## Zeppelin ##

export ZEPPELIN_HOME=/usr/local/zeppelin

export PATH=$ZEPPELIN_HOME/bin:$PATH

 

 

[root@big-master1 ~]# cd /usr/local/zeppelin/

[root@big-master1 zeppelin]# ls

bin conf interpreter lib LICENSE licenses notebook NOTICE README.md zeppelin-web-0.8.2.war

[root@big-master1 zeppelin]# cd conf/

[root@big-master1 conf]# ls

configuration.xsl log4j.properties shiro.ini.template zeppelin-env.sh.template

interpreter-list log4j_yarn_cluster.properties zeppelin-env.cmd.template zeppelin-site.xml.template

 

 

[root@big-master1 conf]# cp shiro.ini.template shiro.ini

[root@big-master1 conf]# cp zeppelin-env.sh.template zeppelin-env.sh

[root@big-master1 conf]# cp zeppelin-site.xml.template zeppelin-site.xml

[root@big-master1 conf]# ll

total 96

-rw-r--r-- 1 tidb wheel 1326 Sep 26 2019 configuration.xsl

-rw-r--r-- 1 tidb wheel 2634 Sep 26 2019 interpreter-list

-rw-r--r-- 1 tidb wheel 1340 Sep 26 2019 log4j.properties

-rw-r--r-- 1 tidb wheel 1018 Sep 26 2019 log4j_yarn_cluster.properties

-rw-r--r-- 1 root root 5342 Jun 7 18:31 shiro.ini

-rw-r--r-- 1 tidb wheel 5342 Sep 26 2019 shiro.ini.template

-rw-r--r-- 1 tidb wheel 5799 Sep 26 2019 zeppelin-env.cmd.template

-rw-r--r-- 1 root root 8080 Jun 7 18:32 zeppelin-env.sh

-rw-r--r-- 1 tidb wheel 8080 Sep 26 2019 zeppelin-env.sh.template

-rwxr-xr-x 1 root root 20027 Jun 7 18:32 zeppelin-site.xml

-rwxr-xr-x 1 tidb wheel 20027 Sep 26 2019 zeppelin-site.xml.template

 

 

[root@big-master1 conf]# cat shiro.ini

[users]

admin=admin,admin

 

[root@big-master1 conf]# cat zeppelin-site.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!--

Licensed to the Apache Software Foundation (ASF) under one or more

contributor license agreements. See the NOTICE file distributed with

this work for additional information regarding copyright ownership.

The ASF licenses this file to You under the Apache License, Version 2.0

(the "License"); you may not use this file except in compliance with

the License. You may obtain a copy of the License at

 

http://www.apache.org/licenses/LICENSE-2.0

 

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

-->

 

<configuration>

 

<property>

<!-- zeppelin服务所在的IP地址 -->

<name>zeppelin.server.addr</name>

<value>big-master1</value>

<description>Server binding address</description>

</property>

 

<property>

<!-- zeppelin服务使用的端口,默认是8080,如果被占用请修改,此改为8096 -->

<name>zeppelin.server.port</name>

<value>8096</value>

<description>Server port.</description>

</property>

<!-- <value>8080</value> -->

<!-- zeppelin 能同时执行多个sparksql,默认为false -->

 

<property>

<name>zeppelin.spark.concurrentSQL</name>

<value>true</value>

<description>Server address</description>

</property>

 

<!-- Secure the Websocket Channle,是为了实现zeppelin多用户登陆使用 -->

<!-- 禁止匿名用户直接访问Zeppelin系统 -->

<property>

<name>zeppelin.anonymous.allowed</name>

<value>false</value>

<description>Anonymous user allowed by default</description>

</property>

 

<property>

<name>zeppelin.war.tempdir</name>

<value>webapps</value>

<description>Location of jetty temporary directory</description>

</property>

 

<property>

<name>zeppelin.notebook.dir</name>

<value>notebook</value>

<description>path or URI for notebook persist</description>

</property>

 

</configuration>

 

 

[root@big-master1 ~]# zeppelin-daemon.sh stop

Zeppelin stop [ OK ]

[root@big-master1 ~]# zeppelin-daemon.sh start

Zeppelin start [ OK ]

 

[root@big-master1 ~]# jps

30037 JournalNode

10181 HMaster

17255 ZeppelinServer

4023 ResourceManager

29642 DFSZKFailoverController

29804 NameNode

18141 Jps

28141 QuorumPeerMain

[root@big-master1 ~]# ps -ef |grep zeppelin

root 17255 1 0 21:21 pts/0 00:00:47 /usr/local/jdk1.8.0_251/bin/java -Dfile.encoding=UTF-8 -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -Dlog4j.configuration=file:///usr/local/zeppelin/conf/log4j.properties -Dzeppelin.log.file=/usr/local/zeppelin/logs/zeppelin-root-big-master1.log -cp :/usr/local/jdk1.8.0_251/lib/tools.jar/usr/local/jdk1.8.0_251/lib/dt.jar:/usr/local/zeppelin/lib/interpreter/*:/usr/local/zeppelin/lib/*:/usr/local/zeppelin/*::/usr/local/zeppelin/conf:/usr/local/hadoop/etc/hadoop org.apache.zeppelin.server.ZeppelinServer

root 18157 14443 0 22:47 pts/0 00:00:00 grep --color=auto zeppelin

 

 

[root@big-master1 ~]# netstat -aunltp |grep 8096

tcp6 0 0 192.168.41.20:8096 :::* LISTEN 17255/java

tcp6 0 0 192.168.41.20:8096 192.168.40.169:7560 ESTABLISHED 17255/java

 

 

##########################

http://192.168.41.20:8096

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值