[ https://issues.apache.org/jira/browse/AMBARI-24851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16669999#comment-16669999 ]
ASF GitHub Bot commented on AMBARI-24851: ----------------------------------------- kasakrisz closed pull request #15: AMBARI-24851 - Logsearch: debug mode using java 8 and 11 URL: https://github.com/apache/ambari-logsearch/pull/15 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/ambari-logsearch-server/src/main/scripts/logsearch.sh b/ambari-logsearch-server/src/main/scripts/logsearch.sh index 1b64832995..a8211685e9 100755 --- a/ambari-logsearch-server/src/main/scripts/logsearch.sh +++ b/ambari-logsearch-server/src/main/scripts/logsearch.sh @@ -149,7 +149,12 @@ function start() { LOGSEARCH_DEBUG_PORT=${LOGSEARCH_DEBUG_PORT:-"5005"} if [ "$LOGSEARCH_DEBUG" = "true" ]; then - LOGSEARCH_JAVA_OPTS="$LOGSEARCH_JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=*:$LOGSEARCH_DEBUG_PORT,server=y,suspend=$LOGSEARCH_DEBUG_SUSPEND " + if [ $java_version == "8" ]; then + LOGSEARCH_DEBUG_ADDRESS=$LOGSEARCH_DEBUG_PORT + else + LOGSEARCH_DEBUG_ADDRESS="*:$LOGSEARCH_DEBUG_PORT" + fi + LOGSEARCH_JAVA_OPTS="$LOGSEARCH_JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=$LOGSEARCH_DEBUG_ADDRESS,server=y,suspend=$LOGSEARCH_DEBUG_SUSPEND " fi if [ "$LOGSEARCH_SSL" = "true" ]; then ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Logsearch: debug mode using java 8 and 11 > ----------------------------------------- > > Key: AMBARI-24851 > URL: https://issues.apache.org/jira/browse/AMBARI-24851 > Project: Ambari > Issue Type: Bug > Components: ambari-logsearch > Affects Versions: 2.8.0 > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Labels: pull-request-available > Fix For: 2.8.0 > > > Logsearch server can not be started in debug mode if Logsearch is running in > an Ambari managed cluster using java 8 -- This message was sent by Atlassian JIRA (v7.6.3#76005)