本文介绍了如何禁用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 。

      参考:


      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.

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

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

    08-04 04:55
    查看更多