问题
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):
hadoop.security.authentication
tosimple
hadoop.security.authorization
tofalse
hdfs-site.xml(HDFS):
dfs.datanode.address
to50010
dfs.datanode.http.address
to50075
hbase-site.xml(HBASE):
hbase.security.authentication
tosimple
hbase.security.authorization
tofalse
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:
- 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