如何禁用Hadoop Kerberos [英] How to disable Hadoop Kerberos

查看:618
本文介绍了如何禁用Hadoop Kerberos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用内部脚本来设置Hadoop集群。它默认配置Hadoop安全与Kerberos。这对于开发环境来说非常不方便。

我搜索了很多,但结果都是关于如何启用...。



请帮忙给一些参考或建议。 更改这些值包括:

core-site.xml(HDFS):

  • hadoop.security.authentication 简单


  • hadoop.security.authorization false


  • hdfs-site.xml(HDFS): b
    $ b


    1. dfs.datanode.address 50010


    2. dfs.datanode.http.address 50075



    3. hbase-site.xml(HBASE):


      1. hbase.security.authentication 简单


      2. hbase.security.authorization false 注释这些属性如果存在: hbase.regionserver.kerberos.principal HBA se.regionserver.keytab.file hbase.master.kerberos.principal hbase.master.keytab.file hbase.rpc.engine





      $ b


      1. 注释这些行如果存在: kerberos。 removeHostFromPrincipal = true kerberos.removeRealmFromPrincipal = true

      权限:



      将HDFS数据目录权限更改为 755 。在 hdfs-site.xml 中搜索 dfs.data.dir


      在所有节点上进行这些更改。重新启动群集并检查它是否被禁用。

      参考: https://groups.google.com/a/cloudera.org/forum/#!topic/cdh -user / 7_1DEdpdY3E


      I used a internal script to setup a Hadoop cluster. It configured Hadoop security with Kerberos by default. This is very inconvenient for a developing environment.

      I googled a lot, but the results are all about "how to enable ...".

      Please help to give some reference or advice.

      解决方案

      Change the values for:

      core-site.xml(HDFS):

      1. hadoop.security.authentication to simple

      2. hadoop.security.authorization to false

      hdfs-site.xml(HDFS):

      1. dfs.datanode.address to 50010

      2. dfs.datanode.http.address to 50075

      hbase-site.xml(HBASE):

      1. hbase.security.authentication to simple

      2. hbase.security.authorization to false

      3. Comment these properties if present: hbase.regionserver.kerberos.principal, hbase.regionserver.keytab.file, hbase.master.kerberos.principal, hbase.master.keytab.file, hbase.rpc.engine.

      zoo.cfg:

      1. Comment these line if present: kerberos.removeHostFromPrincipal=true, kerberos.removeRealmFromPrincipal=true

      Permission:

      Change the HDFS data directory permission to 755. Search for dfs.data.dir in hdfs-site.xml.

      Do these changes on all nodes. Restart your cluster and check if its disabled.

      Reference: https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/7_1DEdpdY3E

      这篇关于如何禁用Hadoop Kerberos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆