From 368c41666c50ec30e443ab42464299ac81aaba9a Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 9 Aug 2015 08:09:44 -0400 Subject: [PATCH] WE CANT EVEN GET BIN/ELASTICSEARCH WORKING!!!! --- TESTING.asciidoc | 16 ++-------- .../bootstrap/ElasticsearchF.java | 32 ------------------- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 core/src/main/java/org/elasticsearch/bootstrap/ElasticsearchF.java diff --git a/TESTING.asciidoc b/TESTING.asciidoc index b507588d50d..7308d55dd2c 100644 --- a/TESTING.asciidoc +++ b/TESTING.asciidoc @@ -345,17 +345,5 @@ mvn -Dtests.coverage test jacoco:report == Debugging from an IDE -If you want to run elasticsearch from your IDE, you should launch the `Bootstrap` class using the following parameters: - -* `-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=* -``` - +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. diff --git a/core/src/main/java/org/elasticsearch/bootstrap/ElasticsearchF.java b/core/src/main/java/org/elasticsearch/bootstrap/ElasticsearchF.java deleted file mode 100644 index 9190b6eca6f..00000000000 --- a/core/src/main/java/org/elasticsearch/bootstrap/ElasticsearchF.java +++ /dev/null @@ -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); - } -}