Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize BML default download user default jvm user #963

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

}