You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by al...@apache.org on 2022/02/22 12:46:54 UTC

[incubator-inlong] branch master updated: [INLONG-2646][MQ]The startup script cannot detect that pulsar starts the process in standalone mode (#2647)

This is an automated email from the ASF dual-hosted git repository.

aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new f6d0e45  [INLONG-2646][MQ]The startup script cannot detect that pulsar starts the process in standalone mode (#2647)
f6d0e45 is described below

commit f6d0e455f1a30f60dac4128674015ecbfbc75889
Author: Greedyu <60...@qq.com>
AuthorDate: Tue Feb 22 20:46:45 2022 +0800

    [INLONG-2646][MQ]The startup script cannot detect that pulsar starts the process in standalone mode (#2647)
    
    * The detection of the pulsar process adds another startup class PulsarStandaloneStarter
    
    * Update bin/inlong-daemon
    
    Co-authored-by: densonyu <de...@tencent.com>
    Co-authored-by: dockerzhang <do...@apache.org>
---
 bin/inlong-daemon | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/inlong-daemon b/bin/inlong-daemon
index 35b0f94..4cb9dbb 100644
--- a/bin/inlong-daemon
+++ b/bin/inlong-daemon
@@ -213,7 +213,7 @@ start_inlong_all() {
   echo "Judge the choice of message middleware tubemq or pulsar"
   if [ $source_type == "pulsar" ]; then
     # Judge whether the pulsar cluster is started in the current system
-    pulsar_thread=$($JAVA_HOME/bin/jps | grep PulsarBrokerStarter)
+    pulsar_thread=$($JAVA_HOME/bin/jps | egrep 'PulsarBrokerStarter | PulsarStandaloneStarter')
     if [ ! -n "$pulsar_thread" ]; then
       echo "The system does not start the pulsar. Please start the pulsar manually first"
       exit 1