-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: support submit pyspark once job on k8s and add clusterlabel to combinedlabel #4906
Conversation
@@ -23,4 +23,7 @@ public class LabelManagerConf { | |||
|
|||
public static final String LONG_LIVED_LABEL = | |||
CommonVars.apply("wds.linkis.label.node.long.lived.label.keys", "tenant").getValue(); | |||
|
|||
public static final boolean COMBINED_WITHOUT_YARN_DEFAULT = | |||
CommonVars.apply("wds.linkis.combined.without.yarn.default", true).getValue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove prefix of wds
@@ -247,8 +247,7 @@ public ResultResource requestResource(List<Label<?>> labels, NodeResource resour | |||
|
|||
List<PersistenceLock> persistenceLocks = new ArrayList<>(); | |||
EMInstanceLabel emInstanceLabel = labelContainer.getEMInstanceLabel(); | |||
CombinedLabel userCreatorEngineTypeLabel = | |||
labelContainer.getCombinedUserCreatorEngineTypeLabel(); | |||
CombinedLabel userCreatorEngineTypeLabel = labelContainer.getCombinedResourceLabel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename userCreatorEngineTypeLabel is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename userCreatorEngineTypeLabel is better
Already rename it.
private String getK8sMasterUrl(ExternalResourceProvider provider) { | ||
Map<String, Object> configMap = provider.getConfigMap(); | ||
String k8sMasterUrl = (String) configMap.get("k8sMasterUrl"); | ||
if (StringUtils.isEmpty(k8sMasterUrl)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use isBlank
instead of isEmpty
String k8sMasterUrl = getK8sMasterUrl(provider); | ||
try { | ||
String k8sConfig = (String) configMap.get("k8sConfig"); | ||
if (StringUtils.isNotEmpty(k8sConfig)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use isNotBlank
instead of isNotEmpty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
isNotBlank
instead ofisNotEmpty
Aready fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
What is the purpose of the change
Yarn-default
won't combined into CombinedResourceLabel ifwds.linkis.combined.without.yarn.default
is set to true(default).Test command:
Checklist