[2019-01-16T03:03:35,543][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node_48] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: tech.beshu.ror.commons.settings.SettingsMalformedException: Could not find required attribute 'readonlyrest' in file cluster:{name=resultInquiry},node:{name
=node_48, attr={rack=r1}, data=false, ingest=true, master=true},path:{data=[/data/elastic/data], logs=/data/elastic/log, home=/opt/soft/elasticsearch-6.5.1},indices:{memory={index_buffer_size=20%}, recovery={max_bytes_per_sec=200mb}},discovery:{zen={minimum_master_nodes=1, no_master_block=write, fd={ping_timeout=10s}, ping={unicast={hosts=[es1, es2]}}}},action:{destructive_requires_name=true},client:{type=node},http:{port=9200, max_content_length=500mb, cors={allow-origin=*, enabled=true}},bootstrap:{memory_lock=true, system_call_filter=false},gateway:{recover_after_nodes=4, expected_nodes=6, recover_after_time=1m},xpack:{monitoring={enabled=true, collection={enabled=true}}, security={enabled=false}},network:{bind_host=es1, publish_host=0.0.0.0} at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.1.jar:6.5.1]
    at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.1.jar:6.5.1]
Caused by: tech.beshu.ror.commons.settings.SettingsMalformedException: Could not find required attribute 'readonlyrest' in file cluster:{name=resultInquiry},node:{name=node_48, attr={rack=r1}, data=fals
e, ingest=true, master=true},path:{data=[/data/elastic/data], logs=/data/elastic/log, home=/opt/soft/elasticsearch-6.5.1},indices:{memory={index_buffer_size=20%}, recovery={max_bytes_per_sec=200mb}},discovery:{zen={minimum_master_nodes=1, no_master_block=write, fd={ping_timeout=10s}, ping={unicast={hosts=[es1, es2]}}}},action:{destructive_requires_name=true},client:{type=node},http:{port=9200, max_content_length=500mb, cors={allow-origin=*, enabled=true}},bootstrap:{memory_lock=true, system_call_filter=false},gateway:{recover_after_nodes=4, expected_nodes=6, recover_after_time=1m},xpack:{monitoring={enabled=true, collection={enabled=true}}, security={enabled=false}},network:{bind_host=es1, publish_host=0.0.0.0}    at tech.beshu.ror.commons.settings.RawSettings.req(RawSettings.java:110) ~[?:?]
    at tech.beshu.ror.commons.settings.RawSettings.inner(RawSettings.java:219) ~[?:?]
    at tech.beshu.ror.commons.settings.BasicSettings.<init>(BasicSettings.java:88) ~[?:?]
    at tech.beshu.ror.commons.settings.BasicSettings.fromFile(BasicSettings.java:172) ~[?:?]
    at tech.beshu.ror.commons.settings.BasicSettings.fromFileObj(BasicSettings.java:149) ~[?:?]
    at tech.beshu.ror.es.SettingsObservableImpl.<init>(SettingsObservableImpl.java:60) ~[?:?]
    at tech.beshu.ror.es.ReadonlyRestPlugin.lambdacreateComponents0(ReadonlyRestPlugin.java:102) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_191]
    at tech.beshu.ror.es.ReadonlyRestPlugin.createComponents(ReadonlyRestPlugin.java:99) ~[?:?]
    at org.elasticsearch.node.Node.lambdanew11(Node.java:472) ~[elasticsearch-6.5.1.jar:6.5.1]
    at java.util.stream.ReferencePipeline71.accept(ReferencePipeline.java:267) ~[?:1.8.0_191]
    at java.util.ArrayListArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_191]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_191]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_191]
    at java.util.stream.ReduceOpsReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_191]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_191]
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_191]
    at org.elasticsearch.node.Node.<init>(Node.java:475) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.1.jar:6.5.1]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.1.jar:6.5.1]
    ... 6 more
ll /opt/soft/elasticsearch-6.5.1/config/
-rw-r--r-- 1 root    root      115 Jan 16 02:49 readonlyrest.yml
chown -R elastic:elastic  /opt/soft/elasticsearch-6.5.1
chmod +w /opt/soft/elasticsearch-6.5.1/config/*

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code