# Compiling elasticsearch for ARM

**URL:** https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553
**Category:** Elasticsearch
**Created:** [August 22, 2018, 12:50pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553 "2018-08-22T12:50:16Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)
#### Post date: [August 22, 2018, 12:50pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/1 "2018-08-22T12:50:17Z")

</div>

Hi,

I want to use ELK on an ARM platform running Ubuntu. I started by compiling elasticsearch as instructed here: [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)

After a long time compilation (./gradlew assemble), I didn't get a `build` directory where I'd hope to see a binary.

Can you guys provide a bit more instruction on how to successfully compile elasticsearch for arm?

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [August 24, 2018, 10:53am UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/2 "2018-08-24T10:53:15Z")

</div>

Hi,

the `build` directory is not at the project root but rather at the respective subproject's root. For example, if you are looking for the open source tarball, you need to go to `distribution/archives/oss-tar/build/distributions`. Similarly you will find the other artefacts in their respective subproject build directories.

Daniel

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [August 24, 2018, 12:00pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/3 "2018-08-24T12:00:25Z")

</div>

The artifacts that we provide on our download pages should run on ARM without issue, and even include the necessary native libraries for ARM. While we do not support running on ARM at this time, is there a problem with our pre-built artifacts that you had?

---

<div class="post-metadata">

### Author: ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)
#### Post date: [August 25, 2018, 3:52pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/4 "2018-08-25T15:52:55Z")

</div>

Thanks a lot! I found the .deb package under `distributions` and it installed. However, I get this when starting the service:

```auto
Aug 23 12:59:29 francisadmin systemd[1]: Started Elasticsearch.
Aug 23 12:59:32 francisadmin elasticsearch[12643]: OpenJDK Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will 
Aug 23 12:59:32 francisadmin elasticsearch[12643]: Unrecognized VM option 'UseAVX=2'
Aug 23 12:59:32 francisadmin elasticsearch[12643]: Error: Could not create the Java Virtual Machine.
Aug 23 12:59:32 francisadmin elasticsearch[12643]: Error: A fatal exception has occurred. Program will exit.
Aug 23 12:59:32 francisadmin systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 12:59:32 francisadmin systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Aug 24 05:32:03 francisadmin systemd[1]: Started Elasticsearch.
Aug 24 05:32:06 francisadmin elasticsearch[18517]: OpenJDK Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will 

```

I dunno what to do regarding the jvm. Any clues?

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [August 25, 2018, 6:43pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/5 "2018-08-25T18:43:39Z")

</div>

> [@francisaugusto](#):
>
> Aug 23 12:59:32 francisadmin elasticsearch[12643]: Unrecognized VM option 'UseAVX=2'

The key error message is this line. This is the result of a flag that we ship with by default in `jvm.options` that is needed to work around a bug in the JDK for JDK 9 and JDK 10 on x64. Since AVX instructions are x64 functionality, the ARM JVM rightfully balks at these flags being present in the startup options.

Find the line `10-:-XX:UseAVX=2` in `/etc/elasticsearch/jvm.options` and comment it out or remove it (if you remove it, you can remove the comment about it too).

---

<div class="post-metadata">

### Author: ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)
#### Post date: [August 26, 2018, 4:32pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/6 "2018-08-26T16:32:28Z")

</div>

Thanks a lot Jason! I will try that tomorrow. I am trying to run the whole ELK stack on ARM. Will the other parts (Logstash and Kibana) run on ARM as well?

Best,

Francis

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [August 26, 2018, 5:19pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/7 "2018-08-26T17:19:52Z")

</div>

Logstash will likely be fine on ARM because it runs on the JVM.

Kibana will not because we bundle Node.js with Kibana which requires a native executable. We are not currently bundling a version of Kibana with Node.js compiled for ARM.

---

<div class="post-metadata">

### Author: ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)
#### Post date: [September 3, 2018, 4:51pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/8 "2018-09-03T16:51:25Z")

</div>

That's sad - I was planning on running Kibana for log visualization on an ARM instance... ☹

---

<div class="post-metadata">

### Author: ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)
#### Post date: [September 3, 2018, 5:14pm UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/9 "2018-09-03T17:14:59Z")

</div>

Still getting errors:

```auto
Sep 03 17:08:42 francisadmin systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 03 17:08:42 francisadmin systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Sep 03 17:11:16 francisadmin systemd[1]: Started Elasticsearch.
Sep 03 17:11:18 francisadmin elasticsearch[18673]: OpenJDK Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sep 03 17:12:45 francisadmin systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 03 17:12:45 francisadmin systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Sep 03 17:13:06 francisadmin systemd[1]: Started Elasticsearch.
Sep 03 17:13:08 francisadmin elasticsearch[18843]: OpenJDK Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

```

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [September 4, 2018, 3:21am UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/10 "2018-09-04T03:21:51Z")

</div>

Sorry but these error messages do not give any indication of the problem. You will have to look in the Elasticsearch logs to see if there is something helpful there, or poke around until you find a more helpful error message.

---

<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: [October 2, 2018, 3:21am UTC](https://discuss.elastic.co/t/compiling-elasticsearch-for-arm/145553/11 "2018-10-02T03:21:51Z")

</div>

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