其他分享
首页 > 其他分享> > ES--BUG 小记

ES--BUG 小记

作者:互联网

Caused by: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: org.elasticsearch.hadoop.rest.EsHadoopRemoteException: security_exception: missing authentication credentials for REST request [/]
null
	at org.elasticsearch.hadoop.rest.RestClient.checkResponse(RestClient.java:477)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:434)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:428)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:388)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:392)
	at org.elasticsearch.hadoop.rest.RestClient.get(RestClient.java:168)
	at org.elasticsearch.hadoop.rest.RestClient.mainInfo(RestClient.java:745)
	at org.elasticsearch.hadoop.rest.InitializationUtils.discoverClusterInfo(InitializationUtils.java:330)
	... 17 more
解决方案: 从以上字面意思,可以理解为缺失身份验证,即用户与密码,

那么添加相关的配置参数: 其他详细配置可官网查看:ES_Spark

.config("es.net.http.auth.user","*****")
.config("es.net.http.auth.pass","*****")

标签:java,RestClient,hadoop,rest,elasticsearch,org,BUG,ES,小记
来源: https://blog.csdn.net/weixin_44131414/article/details/104671004