Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure conne

今天在使用Java代码操作hdfs文件的时候报错:

Server (是指hdfs) asks us to fall back to SIMPLE auth, but this client (是指程序) is configured to only allow secure (是指kerberos) connections.

原因是代码中编写了登录kerberos的代码,而hdfs没有开kerberos.

此时Java代码和hdfs的通信使用的不是相同的认证方式,hdfs只识别简单认证模式,而代码程序是kerberos认证模式.

发布了68 篇原创文章 · 获赞 4 · 访问量 7379

猜你喜欢

转载自blog.csdn.net/weixin_44455388/article/details/103344356
今日推荐