WE CANT EVEN GET BIN/ELASTICSEARCH WORKING!!!!
This commit is contained in:
parent
2babdaefd4
commit
368c41666c
|
@ -345,17 +345,5 @@ mvn -Dtests.coverage test jacoco:report
|
||||||
|
|
||||||
== Debugging from an IDE
|
== Debugging from an IDE
|
||||||
|
|
||||||
If you want to run elasticsearch from your IDE, you should launch the `Bootstrap` class using the following parameters:
|
If you want to run elasticsearch from your IDE, you should execute ./run.sh
|
||||||
|
It opens a remote debugging port that you can connect with your IDE.
|
||||||
* `-Des.foreground=yes`: run elasticsearch as a foreground process
|
|
||||||
* `-Des.path.home=/path/to/elasticsearch/core/source_dir`: define fro which dir your process is allowed to write files
|
|
||||||
* `-Des.security.manager.enabled=false`: disable the security manager
|
|
||||||
* `-Des.http.cors.enabled=true`: if you want to use with Sense
|
|
||||||
* `-Des.http.cors.allow-origin=*`: if you want to use with Sense
|
|
||||||
|
|
||||||
For example:
|
|
||||||
|
|
||||||
```
|
|
||||||
-Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/heapdump.hprof -Delasticsearch -Des.foreground=yes -ea -Des.path.home=/Users/me/workspace/elasticsearch/core/ -Des.security.manager.enabled=false -Des.http.cors.enabled=true -Des.http.cors.allow-origin=*
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* Licensed to Elasticsearch under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.elasticsearch.bootstrap;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Same as {@link Elasticsearch} just runs it in the foreground by default (does not close
|
|
||||||
* sout and serr).
|
|
||||||
*/
|
|
||||||
public class ElasticsearchF {
|
|
||||||
|
|
||||||
public static void main(String[] args) throws Throwable {
|
|
||||||
System.setProperty("es.foreground", "yes");
|
|
||||||
Bootstrap.main(args);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue