# Databricks + ElasticSearch setup

**URL:** <https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578>\
**Category:** Elasticsearch\
**Created:** [October 13, 2022, 8:52pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578 "2022-10-13T20:52:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![protatopancake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/protatopancake/32/100428_2.png) [@protatopancake](https://discuss.elastic.co/u/protatopancake)\
**Post date:** [October 13, 2022, 8:52pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578/1 "2022-10-13T20:52:10Z")

</div>

First and foremost, apologies for the very simple question.

Today is my first day using Elasticsearch. After doing some research I found I can use the tool via a Databricks cluster, which I'm moderately familiar with. In the documentation on databricks here:

> **[ElasticSearch | Databricks on AWS](https://docs.databricks.com/external-data/elasticsearch.html)**
>
> Learn how to read and write data to Elasticsearch using Databricks.

```auto

### Elasticsearch

<img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt5ebe80fb665aef6b/5ea8c8f26b62d4563b6ecec2/brand-elasticsearch-220x130.svg" width="300">

1. Launch a cluster in your workspace or choose an existing cluster.
2. Once the new cluster is running, go to the "Libraries" tab of that cluster, and click "Install new" -> choose "Maven" -> enter the maven coordinates `org.elasticsearch:elasticsearch-spark-30_2.12:7.17.6` -> click "Install".
3. Once the installation has finished, attach this notebook to the cluster, and run write and/or read operations against your Elasticsearch cluster

**Important** : In the following cells, replace `<ip-address>`, `<port>`, `<ssl>`, `<hostname>` and `<index>` with your Elasticsearch configuration 

%sh 
nc -vz ip-address port

```

My confusion is how to find/create the ip-address, port, ssl, hostname, and index.  
This seems like it should be easy, but I can't find anywhere that it's actually spelled out for the slow folks, aka me. Any advice or documentation is greatly appreciated. Thanks in advance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 13, 2022, 9:10pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578/2 "2022-10-13T21:10:19Z")

</div>

Welcome to our community! 😃

Where do you have Elasticsearch installed?

---

<div class="post-metadata">

**Author:** ![protatopancake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/protatopancake/32/100428_2.png) [@protatopancake](https://discuss.elastic.co/u/protatopancake)\
**Post date:** [October 13, 2022, 9:13pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578/3 "2022-10-13T21:13:45Z")

</div>

Thank you! I have both downloaded Elasticsearch locally and have enabled Elasticsearch (Elastic Cloud) on the Azure subscription and resource group that Databricks is using

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 13, 2022, 10:42pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578/4 "2022-10-13T22:42:04Z")

</div>

If you go into your Elastic Cloud cluster management page you should see;  
 ![Screen Shot 2022-10-14 at 09.40.23](https://us1.discourse-cdn.com/elastic/original/3X/3/2/3244067695d2dae910812b78869fc5a2bb7ad6c7.png)

Just use the `Copy endpoing` for Elasticsearch and that's all you should need 🙂

---

<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:** [November 10, 2022, 10:42pm UTC](https://discuss.elastic.co/t/databricks-elasticsearch-setup/316578/5 "2022-11-10T22:42:54Z")

</div>

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