When I create hdfs repository,throws a exception.As follows:

Are you able to collect any logs from the Elasticsearch node that is accepting the request that might have more information about why the connection was refused? I would double check to make sure that each Elasticsearch node is able to reach the HDFS cluster as the repository is initialized on every node.