# Repository HDFS change in security.prinicpal

**URL:** <https://discuss.elastic.co/t/repository-hdfs-change-in-security-prinicpal/121000>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 7:40am UTC](https://discuss.elastic.co/t/repository-hdfs-change-in-security-prinicpal/121000 "2018-02-22T07:40:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveyDevOps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveydevops/32/57124_2.png) [@DaveyDevOps](https://discuss.elastic.co/u/DaveyDevOps)\
**Post date:** [February 22, 2018, 7:40am UTC](https://discuss.elastic.co/t/repository-hdfs-change-in-security-prinicpal/121000/1 "2018-02-22T07:40:51Z")

</div>

Elasticsearch 5.6.6 with Repository HDFS plugin, HDFS kerberized

Just wanted to share my experience.

Short version:  
Needed to restart following a change in security.prinicpal

Long version:  
Attempted to update the security.prinicpal of an existing HDFS snapshot repository.

Created updated keytabs and deployed.  
Deleted the existing Repository definition, and posted updated definition.  
`POST _snapshot/REPOSITORY/_verify` was successful, as was a test snapshot.

But the next day `_verify` was failing with

```json
 "type": "unchecked_i_o_exception",
    "reason": "unchecked_i_o_exception: Could not re-authenticate",
    "caused_by": {
      "type": "i_o_exception",
      "reason": "Login failure for OLDPRINICPAL@REALM from keytab elasticsearch-5.6.6/config/repository-hdfs/krb5.keytab: javax.security.auth.login.LoginException: Unable to obtain password from user\n",
      "caused_by": {
        "type": "login_exception",
        "reason": "login_exception: Unable to obtain password from user\n"

```

Deleting and re-adding the repository would provide a short term fix.  
In the end concluded that a restart was needed. After restarting the masters, the error message changed and provided the specific node where the connection was failing.

I would suspect Kerberos renewal held onto the old principal until restart.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 22, 2018, 7:41am UTC](https://discuss.elastic.co/t/repository-hdfs-change-in-security-prinicpal/121000/2 "2018-03-22T07:41:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
