Skip to content

Commit

Permalink
Merge pull request #963 from peacewong/dev-1.0.2
Browse files Browse the repository at this point in the history
Optimize BML default download user default jvm user
  • Loading branch information
leeebai authored Aug 17, 2021
2 parents b3f0ef8 + f404402 commit 0850689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.webank.wedatasphere.linkis.bml.common.BmlProjectNoEditException;
import com.webank.wedatasphere.linkis.bml.common.BmlResourceExpiredException;
import com.webank.wedatasphere.linkis.bml.common.BmlServerParaErrorException;
import com.webank.wedatasphere.linkis.bml.conf.BmlServerConfiguration;
import com.webank.wedatasphere.linkis.bml.service.*;
import com.webank.wedatasphere.linkis.bml.util.HttpRequestHelper;
import com.webank.wedatasphere.linkis.common.exception.ErrorException;
Expand Down Expand Up @@ -58,7 +59,7 @@ public class BmlProjectRestful {
private static final String PROJECT_NAME_STR = "projectName";
private static final String EDIT_USERS_STR = "editUsers";
private static final String ACCESS_USERS_STR = "accessUsers";
public static final String DEFAULT_PROXY_USER = "hadoop";
public static final String DEFAULT_PROXY_USER = BmlServerConfiguration.BML_DEFAULT_PROXY_USER().getValue();

@Autowired
private BmlProjectService bmlProjectService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package com.webank.wedatasphere.linkis.bml.conf
import java.util.concurrent.TimeUnit

import com.webank.wedatasphere.linkis.common.conf.CommonVars
import com.webank.wedatasphere.linkis.common.utils.Utils

object BmlServerConfiguration {
val BML_HDFS_PREFIX = CommonVars("wds.linkis.bml.hdfs.prefix", "/apps-data")
Expand All @@ -32,4 +33,7 @@ object BmlServerConfiguration {

val BML_MAX_THREAD_SIZE:CommonVars[Int] = CommonVars[Int]("wds.linkis.server.maxThreadSize", 30)


val BML_DEFAULT_PROXY_USER = CommonVars("wds.linkis.bml.default.proxy.user", Utils.getJvmUser)

}

0 comments on commit 0850689

Please sign in to comment.