Skip to content

Commit 42f2eb4

Browse files
chore: add workaround in dev docs for opensearch issue (#18168)
Co-authored-by: Mike Fiedler <[email protected]>
1 parent a3a23d5 commit 42f2eb4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/dev/development/getting-started.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,21 @@ Errors when executing ``make initdb``
536536
opensearch wants a lot of memory (Dustin gives warehouse ~4GB locally).
537537
Refer to the tip under :ref:`running-warehouse-containers` section for more details.
538538

539+
* If ``make initdb`` fails with an error like::
540+
541+
A fatal error has been detected by the Java Runtime Environment:
542+
SIGILL (0x4) at pc=0x0000f819dfc67c5c, pid=25, tid=26
543+
544+
while building the ``warehouse-opensearch`` image, this is a known issue
545+
with OpenSearch in Apple M4 processors. A workaround (described in
546+
`this comment <https://github.com/elastic/elasticsearch/issues/118583#issuecomment-2567270484>`_)
547+
is to add the following line to ``dev/compose/opensearch/Dockerfile.yml`` (after
548+
the FROM line):
549+
550+
.. code-block:: docker
551+
552+
ENV _JAVA_OPTIONS=-XX:UseSVE=0
553+
539554

540555
"no space left on device" when using ``docker compose``
541556
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)