We have installed a elasticsearch hdfs plug-in on the elasticSearch V 2.3.1 node and are trying to create a hdfs repo with the following command.
PUT _snapshot/my_hdfs_repository
{
"type": "hdfs",
"settings": {
"uri": "hdfs://namenode:8020/",
"path": "elasticsearch/respositories/my_hdfs_repository",
"conf.dfs.client.read.shortcircuit": "true"
}
}
This command works well while using nodename:port. Our env has the High Availabillity turned on with hdfs nameservice.
When we try creating hdfs repository using the nameservice ("uri": "hdfs://nameservice/")
, we get UnknownHostException - Cannot create Hdfs file-system for uri [hdfs://SA20HDPA] nested: IllegalArgumentException[java.net.UnknownHostException: SA20HDPA]; nested: UnknownHostException[SA20HDPA].
Any help is appreciated.