# ImmutableSettings not. amember of ES

**URL:** <https://discuss.elastic.co/t/immutablesettings-not-amember-of-es/195093>\
**Category:** Elasticsearch\
**Created:** [August 13, 2019, 7:58pm UTC](https://discuss.elastic.co/t/immutablesettings-not-amember-of-es/195093 "2019-08-13T19:58:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreaperez](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@andreaperez](https://discuss.elastic.co/u/andreaperez)\
**Post date:** [August 13, 2019, 7:58pm UTC](https://discuss.elastic.co/t/immutablesettings-not-amember-of-es/195093/1 "2019-08-13T19:58:09Z")

</div>

Hi!  
I'm using elasticsearch to import data from S3 to be visualized in kibana, to do this I'm using spark scala running in an EMR instance. The ES service is being started with the following command

`< /usr/lib/spark/bin/spark-shell --packages org.elasticsearch:elasticsearch-spark-20_2.11:6.7.0,org.elasticsearch.client:elasticsearch-rest-high-level-client:6.7.0>`

By default saveToEs() posts the data to a locahost, but i need to configure it to be sent to amazon's elastic search instance. I read I need ImmutableSettings to do so, but when trying to import it, I get the following error:

```auto
scala> import org.elasticsearch.common.settings.ImmutableSettings
<console>:23: error: object ImmutableSettings is not a member of package org.elasticsearch.common.settings

```

I've tried importing until 'settings' and works fine, but fails with immutable settings.

Appreciate it you can help me import this or with any way to change the posting address

---

<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:** [September 10, 2019, 7:58pm UTC](https://discuss.elastic.co/t/immutablesettings-not-amember-of-es/195093/2 "2019-09-10T19:58:10Z")

</div>

Closed on September 10, 2019, 7:58pm UTC

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