You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/07/11 06:02:56 UTC

[GitHub] [incubator-dolphinscheduler] CycloneBoy commented on issue #2623: [BUG] run shell task error in worker server use idea

CycloneBoy commented on issue #2623:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2623#issuecomment-656997405


   This bug has been fixed.
   [source code of branch dev: CommonUtils.java](https://github.com/apache/incubator-dolphinscheduler/blob/dev/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/CommonUtils.java)
   
   ```java
    /**
      * @return get the path of system environment variables
      */
     public static String getSystemEnvPath() {
       String envPath = PropertyUtils.getString(Constants.DOLPHINSCHEDULER_ENV_PATH);
       if (StringUtils.isEmpty(envPath)) {
         URL envDefaultPath = CommonUtils.class.getClassLoader().getResource(Constants.ENV_PATH);
   
         if (envDefaultPath != null){
           envPath = envDefaultPath.getPath();
           logger.debug("env path :{}", envPath);
         }else{
           envPath =  "/etc/profile";
         }
       }
   
       return envPath;
     }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org