Hi, I refer the instruction(https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment) to try to develop a kibana plugin, but there are some problems.
at this step: yarn es snapshot
I can't run es snapshot as user mode because I install yarn
at root.
I know ES can't run as root, so how can I do?
when I run as root:
[root@localhost kibana]# yarn es snapshot yarn run v1.9.0-20180614.1132 $ node scripts/es snapshot info Installing from snapshot β info version: 7.0.0-alpha1 β info install path: /run/media/es3/80967063-20eb-4c15-82d1-56e01f888254/kibana/.es/7.0.0-alpha1 β info license: basic β info downloading from https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz β info etags match, using cache from 2018-06-19T14:11:24.808Z β info install directory already exists, removing β info extracting /run/media/es3/80967063-20eb-4c15-82d1-56e01f888254/kibana/.es/cache/elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz β info extracted to /run/media/es3/80967063-20eb-4c15-82d1-56e01f888254/kibana/.es/7.0.0-alpha1 β info setting bootstrap password to changeme info Starting β debg bin/elasticsearch β info [o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main] β org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root β at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β Caused by: java.lang.RuntimeException: can not run elasticsearch as root β at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-7.0.0-alpha1-SNAPSHOT.jar:7.0.0-alpha1-SNAPSHOT] β ... 6 more βERROR ES exited with code 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
thank you in advance!