`
sillycat
  • 浏览: 2564584 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Data Solution 2019(5)Zeppelin Authentication

 
阅读更多
Data Solution 2019(5)Zeppelin Authentication

Limit the other endpoint can only be access by the localhost machine.
> docker run -d -p 127.0.0.1:9870:9870 -p 127.0.0.1:9000:9000 -p 8080:8080 -p 127.0.0.1:4040:4040 -v $(shell pwd)/zeppelin/notebook:/tool/zeppelin/notebook -v $(shell pwd)/zeppelin/conf:/tool/zeppelin/conf --name $(NAME) $(IMAGE):$(TAG)
Only 8080 can be access by out side of the world.
Set Up Hadoop Command line on Server
> wget http://mirror.olnevhost.net/pub/apache/hadoop/common/hadoop-3.2.0/hadoop-3.2.0.tar.gz
> yum install -y java-1.8.0-openjdk-devel
> cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
PATH=$PATH:/opt/hadoop/bin
JAVA_HOME=/usr/lib/jvm/java-1.8.0
export PATH
export JAVA_HOME
List from the root directory
> hdfs dfs -ls hdfs://localhost:9000/
Create a directory
> hdfs dfs -mkdir hdfs://localhost:9000/company1
List the directory again
> hdfs dfs -ls hdfs://localhost:9000/
Found 1 items
drwxr-xr-x   - root supergroup          0 2019-03-03 19:26 hdfs://localhost:9000/company1
Set Up the Authentication for Zeppelin
Find and Prepare Zeppelin configuration file zeppelin-site.xml
<property>
  <name>zeppelin.anonymous.allowed</name>
  <value>false</value>
  <description>Anonymous user allowed by default</description>
</property>
Find and set up shiro.ini
[users]
# List of users with their password allowed to access Zeppelin.
# To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuration-INISections
# To enable admin user, uncomment the following line and set an appropriate password.
admin1 = password1, admin
admin2 = password2, admin
[urls]
# This section is used for url-based security. For details see the shiro.ini documentation.
#
# You can secure interpreter, configuration and credential information by urls.
# Comment or uncomment the below urls that you want to hide:
# anon means the access is anonymous.
# authc means form based auth Security.
#
# IMPORTANT: Order matters: URL path expressions are evaluated against an incoming request
# in the order they are defined and the FIRST MATCH WINS.
#
# To allow anonymous access to all but the stated urls,
# uncomment the line second last line (/** = anon) and comment the last line (/** = authc)
#
/api/version = anon
# Allow all authenticated users to restart interpreters on a notebook page.
# Comment out the following line if you would like to authorize only admin users to restart interpreters.
/api/interpreter/setting/restart/** = authc
/api/interpreter/** = authc, roles[admin]
/api/configurations/** = authc, roles[admin]
/api/credential/** = authc, roles[admin]
#/** = anon
/** = authc
Then, we need username and password to work on Zeppelin now.
References:
http://www.voidcn.com/article/p-tmpoqwmv-yz.html
https://www.cnblogs.com/reblue520/p/7255612.html

分享到:
评论

相关推荐

    zeppelin-authentication:Zeppelin的简单身份验证

    Docker的Zeppelin身份验证 是的笔记本。 Zeppelin不支持身份验证,这是多用户环境的要求。 这是尝试使用nginx和Docker容器提供简单的基于密码的身份验证。 创建密码文件 需要基本的密码文件进行身份验证。 我不随...

    zeppelin-0.8.1-bin-all.tgz

    5. **监控与维护**:使用bin/zeppelin-daemon.sh stop命令停止服务,定期检查日志以确保系统运行正常。 Zeppelin的0.8.1版本相比之前的版本可能包含一些性能优化和新功能,具体可查阅官方文档了解详细变更。对于...

    zeppelin-0.8.0-bin-all.tgz

    5. **配置和管理**:Zeppelin 提供了统一的管理界面,可以方便地配置和管理解释器、用户权限、日志等,适合企业级部署和管理。 6. **协作与分享**:笔记本文档可以被共享和协作,支持版本控制,便于团队成员之间的...

    apache zeppelin使用文档

    ##### 5. 使用其他组件 - Zeppelin 支持多种其他组件,如 Flink、Hive 等。 - 对于 Hive,需要配置 Thrift 服务地址。 - 其他插件如 Spark、Kylin、Phoenix 等的配置方法与 Hive 类似。 ##### 6. 观看官方入门视频...

    Apache Zeppelin 0.7.2 中文文档

    Apache Zeppelin 0.7.2 中文文档 Apache Zeppelin 0.7.2 中文文档 Apache Zeppelin 0.7.2 中文文档

    zeppelin&amp;说明书.rar

    5. **防火墙设置**:如果系统有防火墙,记得开放Zeppelin默认的端口(通常是8080)以允许外部访问。 **三、使用Zeppelin** 1. **访问Web界面**:启动成功后,通过浏览器访问`http://your_server_ip:8080`,输入默认...

    zeppelin素材

    zeppelin主题两个,愿得一人心 ,白首不相离 首先保证已经越狱并安装了Zeppelin,【Zeppelin安装教程】  1,下载你想要的文字或者图标到你的电脑,本文最后会提供部分小编喜欢的图标  2,手机连接PP助手,点开...

    zeppelin简单安装.md

    cloudera manager6.2.1web界面集成zeppelin,由于原装的CDH6.2.1parcel包没有包含zeppelin组件,我们公司又用到了这个zeppelin组件,所以我临危受命开始安装zeppelin,刚开始的时候也是不太懂怎么安装,第一次接触最新的...

    zeppelin_docs

    zeppelin source for documents.zeppelin source for documents.zeppelin source for documents.zeppelin source for documents.

    藏经阁-nabling Apache Zeppelin_ and Spark_ for Data Science in the

    Apache Zeppelin 和 Spark 在数据科学企业应用中的启用 Apache Zeppelin 是一个基于 Web 的交互式笔记本,旨在使数据科学家和数据分析师更方便地处理大数据。 Apache Spark 是一个开源的数据处理引擎,能够高效地...

    bk_zeppelin-component-guide.pdf

    Hortonworks Data Platform: Apache Zeppelin Component Guide Copyright © 2012-2017 Hortonworks, Inc. Some rights reserved. The Hortonworks Data Platform, powered by Apache Hadoop, is a massively ...

    zeppelin集成ldap

    5. **新建目录**:创建用于存储证书的目录。 ```bash mkdir /etc/openldap/cacerts ``` 6. **启动服务**:启动LDAP服务,并检查服务状态。 ```bash service slapd start service slapd restart ``` 7. **...

    Scala Data Analysis Cookbook(PACKT,2015)

    Next, you’ll get an understanding of concepts that will help you visualize data using the Apache Zeppelin and Bokeh bindings in Scala, enabling exploratory data analysis. iscover how to program ...

    Zeppelin 2

    【标题】"Zeppelin 2" 是一个与字体设计相关的主题,这可能指的是一个特定的字体库或设计风格。在IT行业中,字体设计是用户体验设计的重要组成部分,尤其是在网页设计、移动应用界面、图形用户界面(GUI)以及数字...

    zeppelin-数据分析资源

    Apache Zeppelin Zeppelin

    Apache Zeppelin 未授权任意命令执行.md

    Apache Zeppelin 未授权任意命令执行

    minecraft zeppelin1.8.1

    minecraft zeppelin mod 1.8.1

    zeppelin外部jar包

    在Apache Zeppelin中,外部JAR包的管理是至关重要的,因为这允许用户引入自定义库或依赖项,以便在Zeppelin笔记本中执行特定的Java、Scala或Spark代码。标题和描述都提到了"zeppelin外部jar包",这意味着我们将讨论...

Global site tag (gtag.js) - Google Analytics