简体   繁体   中英

Hadoop enable simple authentication

I tried the steps listed here How to disable Hadoop Kerberos but my datanode wouldn't start because of this exception

java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 50010
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:212)
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)

I have apache hadoop 2.6 installed on a CentOS vm. I started hadoop with start-dfs.sh and start-yarn.sh . I'm trying to connect to hadoop from a java client with hdfs protocol but I am getting the below exception.

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): SIMPLE authentication is not enabled.  Available:[TOKEN]
    at org.apache.hadoop.ipc.Client.call(Client.java:1468)
    at org.apache.hadoop.ipc.Client.call(Client.java:1399)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)

I've seen a similar exception posted a few times by other people but it usually ends in [TOKEN, KERBEROS] . Do I need to enable KERBEROS authentication or is TOKEN something else? Ideally I would like to just use simple authentication. If I can't use simple authentication would installing CDH4 satisfy the TOKEN authentication?

问题是我将请求发送到从本地主机:8088获得的节点地址端口,而不是端口8020或core-site.xml中fs.defaultFS中指定的任何端口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM