Elastic search clustering

I tried to set up Elasticsearch on docker.
but i can't volume mount on /usr/share/Elasticsearch/config.

/usr/share/elasticsearch/data, /usr/share/elasticsearch/plugins is okay. but only i can't volume mount path is /usr/share/elasticsearch/config

this is my error logs
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/jvm.options

Welcome to our community! :smiley:

It'd help if you could share your configs.

ROBIN_CPUSET_RANGE=0,2,9-39,48-49,51-79

Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/Elasticsearch/config/jvm.options

at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)

at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)

at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)

at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)

at java.base/java.nio.file.Files.newByteChannel(Files.java:375)

at java.base/java.nio.file.Files.newByteChannel(Files.java:426)

at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)

at java.base/java.nio.file.Files.newInputStream(Files.java:160)

at org.Elasticsearch.tools.launchers.JvmOptionsParser.readJvmOptionsFiles(JvmOptionsParser.java:167)

at org.Elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:128)

at org.Elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)

ports:
- containerPort: 9200
name: es-http
protocol: TCP
- containerPort: 9300
name: es-transport
protocol: TCP
storage:
- type: sixthsensees
media: SSD
path: /usr/share/Elasticsearch/data
size: 256G
protection: 0
count: 1
fixedcount: true
volumeMounts:
- mountPath: /usr/share/Elasticsearch/config
name: config
volumes:
- name: config
hostPath:
path: "${HOME}/crts/"

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