How to disable Hadoop Kerberos

爱⌒轻易说出口 提交于 2019-12-12 15:27:28

问题


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.


回答1:


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




回答2:


Rajesh N has suggested to change the values in properties; But simply commenting those properties and restart the cluster will result in Simple cluster; When you want to enable security back, simply you can uncomment the same properties and restart the cluster;



来源:https://stackoverflow.com/questions/29744821/how-to-disable-hadoop-kerberos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!