Hi, today when I setup the ES, it can't run and show the log.
C:\ELK-Stack\elasticsearch-5.5.1\bin>elasticsearch
[2017-11-01T11:44:38,152][INFO ][o.e.n.Node ] [] initializing ...
[2017-11-01T11:44:38,249][INFO ][o.e.e.NodeEnvironment ] [eJ-IsTE] using [1]
data paths, mounts [[(C:)]], net usable_space [34.1gb], net total_space [59.6gb]
, spins? [unknown], types [NTFS]
[2017-11-01T11:44:38,267][INFO ][o.e.e.NodeEnvironment ] [eJ-IsTE] heap size
[1.9gb], compressed ordinary object pointers [true]
[2017-11-01T11:44:38,758][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] []
uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: F
ailed to create node environment
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127
) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:
114) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar
eCommand.java:67) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
22) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5
.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
~[elasticsearch-5.5.1.jar:5.5.1]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.(Node.java:267) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.node.Node.(Node.java:244) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:232) ~[
elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:232) ~[ela
sticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elas
ticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123
) ~[elasticsearch-5.5.1.jar:5.5.1]
... 6 more
Caused by: java.io.IOException: failed to write in data directory [C:\ELK-Stack
elasticsearch-5.5.1\data\nodes\0\indices\O7wgrgaHQKSWCtLH6Rd5qA\1\translog] writ
e permission is required
at org.elasticsearch.env.NodeEnvironment.tryWriteTempFile(NodeEnvironmen
t.java:1076) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.env.NodeEnvironment.assertCanWrite(NodeEnvironment.
java:1058) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:278
) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.node.Node.(Node.java:264) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.node.Node.(Node.java:244) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:232) ~[
elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:232) ~[ela
sticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elas
ticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123
) ~[elasticsearch-5.5.1.jar:5.5.1]
... 6 more
Caused by: java.nio.file.FileAlreadyExistsException: C:\ELK-Stack\elasticsearch-
5.5.1\data\nodes\0\indices\O7wgrgaHQKSWCtLH6Rd5qA\1\translog.es_temp_file
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.j
ava:81) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav
a:97) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav
a:102) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystem
Provider.java:230) ~[?:?]
at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_141]
at java.nio.file.Files.createFile(Files.java:632) ~[?:1.8.0_141]
at org.elasticsearch.env.NodeEnvironment.tryWriteTempFile(NodeEnvironmen
t.java:1073) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.env.NodeEnvironment.assertCanWrite(NodeEnvironment.
java:1058) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:278
) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.node.Node.(Node.java:264) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.node.Node.(Node.java:244) ~[elasticsearch-5.5
.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:232) ~[
elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:232) ~[ela
sticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elas
ticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123
) ~[elasticsearch-5.5.1.jar:5.5.1]
... 6 more
thank u in advance.