Exception in thread "main" java.nio.file.FileSystemException: /usr/share/elasticsearch/config/elasticsearch.yml.Dym72YkCRZ-GMAliqWE2IA.tmp -> /usr/share/elasticsearch/config/elasticsearch.yml: Device or resource busy
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:416)
at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:266)
at java.base/java.nio.file.Files.move(Files.java:1432)
at org.elasticsearch.xpack.security.cli.AutoConfigureNode.fullyWriteFile(AutoConfigureNode.java:1127)
at org.elasticsearch.xpack.security.cli.AutoConfigureNode.fullyWriteFile(AutoConfigureNode.java:1139)
at org.elasticsearch.xpack.security.cli.AutoConfigureNode.execute(AutoConfigureNode.java:687)
at org.elasticsearch.server.cli.ServerCli.autoConfigureSecurity(ServerCli.java:161)
at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:85)
at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
at org.elasticsearch.cli.Command.main(Command.java:50)
at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)
Cause: it is estimated that there is a problem with the mounting of the configuration file
My solution: when docker starts, it can run successfully without mounting the configuration file
1. The address bar cannot access port 9200
It needs to be added in elasticsearch.yml in the container
http.host: 0.0.0.0
2. After the above method is configured, you need to input the account password to access the 9200 port
After finding some solutions, you need to configure the following contents in the configuration file in the container
xpack.secruity.enabled: false
After restarting the container, ES can be run successfully
Note: VIM needs to be installed before editing the files in the container
Read More:
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- Java uses class array to report error Exception in thread “main” java.lang.NullPointerException solution
- [Solved] qrcode-error: Exception in thread “main” java.lang.NoClassDefFoundError…
- [Solved] Exception in thread “main“ java.lang.NoSuchFieldError: level
- [Solved] Hadoop Error: Exception in thread “main“ java.io.IOException: Error opening job jar: /usr/local/hadoop-2.
- Mybatis query error: Exception in thread “main” org.apache.ibatis.exceptions.PersistenceException…
- [Solved] ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed t
- Jmeter Error: ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
- Java error: unable to find or load main class (package name in source file)
- Elasticsearch Startup Error: unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp
- [Solved] Error: A JNI error has occurred, please check your installation and try again Exception in thread
- [Solved] tomcat Startup Error: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
- Problems and causes of Java’s main function format (public static void main (string args()))
- Java uses single thread pool to realize multi thread sequential execution (non alternating, non synchronous)
- The thread implementation of timer in Java
- Three ways of thread sequence alternate execution in Java lock free programming
- [Solved] Hbase-shell 2.x Error: Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal…
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- Java Running Error: Could not find or load main class
- Java Error: No enclosing instance of type Main is accessible. Must qualify the allocation with an encl