Zeppelin0.6.2安装配置

来源:互联网 发布:微星淘宝旗舰店叫什么 编辑:程序博客网 时间:2024/06/14 22:51
1.1

下载地址:

http://mirrors.tuna.tsinghua.edu.cn/apache/zeppelin/zeppelin-0.6.2/zeppelin-0.6.2-bin-all.tgz

根据下载地址,将zeppelin下载到对应的单板上并解压。

1.2

1.2.1       进入zeppelin-0.6.2-bin-all/conf目录下,复制zeppelin-site.xml.template文件并命名为zeppelin-site.xml,修改zeppelin-site.xml文件,修改内容如下:

<property>

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

 <value>8080</value>

 <description>Server port.</description>

</property>

若单板上8080端口被占用,则修改红色内容,否则可不做修改。

1.2.2       Nginx配置(可选内容,若可以直接访问内网,则不用配置)

location / {

           proxy_pass http://192.168.xxx.xxx:9090;

           proxy_http_version 1.1;

           proxy_set_header Upgrade $http_upgrade;

           proxy_set_header Connection "upgrade";

       }

此处,我已将1.2.1中的端口号修改为9090

1.3

1.3.1       修改/zeppelin/conf/zeppelin-site.xml文件

修改zeppelin.anonymous.allowed选项,将值由true改为false,内容如下:

<property>

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

      <value>false</value>

      <description>Anonymoususer allowed by default</description>

</property>

1.3.2       修改shiro.ini文件,红色内容为管理员对应的用户名和密码,根据需求修改

[users]

# List of userswith their password allowed to access Zeppelin.

# To use adifferent strategy (LDAP / Database / ...) check the shiro doc athttp://shiro.apache.org/configuration.html#Configuration-INISections

admin = password1

user1 =password2, role1, role2

user2 =password3, role3

user3 =password4, role2

1.4 重启zeppelin

./zeppelin-daemon.sh 
1.5 访问界面并登陆
原创粉丝点击