Skip to content

Commit

Permalink
Dev 1.1.15 webank hive (#289)
Browse files Browse the repository at this point in the history
* fix hive bug

* code format
  • Loading branch information
aiceflower authored Sep 12, 2023
1 parent 3a47847 commit a7a4301
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ object RPCConfiguration {
).getValue.split(",")

val METADATAQUERY_SERVICE_APPLICATION_NAME: CommonVars[String] =
CommonVars("wds.linkis.gateway.conf.publicservice.name", "linkis-ps-metadataquery")
CommonVars("wds.linkis.gateway.conf.metadataquery.name", "linkis-ps-metadataquery")

val METADATAQUERY_SERVICE_LIST: Array[String] = CommonVars(
"wds.linkis.gateway.conf.metadataquery.list",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ class DriverAndYarnReqResourceService(
} catch {
case ex: Exception =>
throw new RMWarnException(
RMErrorCode.ACROSS_CLUSTER_RULE_FAILED.getErrorCode,
ex.getMessage
)
RMErrorCode.ACROSS_CLUSTER_RULE_FAILED.getErrorCode,
ex.getMessage
)
}

logger.info(s"user: $user, creator: $creator task meet the threshold rule")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ object AcrossClusterRulesJudgeUtils extends Logging {
} else {
throw new RMWarnException(
RMErrorCode.ACROSS_CLUSTER_RULE_FAILED.getErrorCode,
s"usedCPUPercentage: $usedCPUPercentage, CPUPercentageThreshold: $CPUPercentageThreshold" +
s"usedMemoryPercentage: $usedMemoryPercentage, MemoryPercentageThreshold: $MemoryPercentageThreshold"
s"usedCPUPercentage: $usedCPUPercentage, CPUPercentageThreshold: $CPUPercentageThreshold" +
s"usedMemoryPercentage: $usedMemoryPercentage, MemoryPercentageThreshold: $MemoryPercentageThreshold"
)
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public class FsRestfulApi {
*/
private boolean checkIsUsersDirectory(String requestPath, String userName, Boolean withAdmin) {
// 配置文件默认关闭检查,withadmin默认true,特殊情况传false 开启权限检查(
// The configuration file defaults to disable checking, with admin defaulting to true, and in special cases, false is passed to enable permission checking)
// The configuration file defaults to disable checking, with admin defaulting to true, and in
// special cases, false is passed to enable permission checking)
boolean ownerCheck = WorkSpaceConfiguration.FILESYSTEM_PATH_CHECK_OWNER.getValue();
if (!ownerCheck && withAdmin) {
LOGGER.debug("not check filesystem owner.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ class DefaultGatewayParser(gatewayParsers: Array[GatewayParser]) extends Abstrac
) {
RPCConfiguration.PUBLIC_SERVICE_APPLICATION_NAME.getValue
// In order to be compatible with metadata module name refactoring,this logic will be removed in subsequent versions
} else if (RPCConfiguration.LINKIS_DATASOURCE_SERVICE_LIST.contains(serviceId)) {
RPCConfiguration.LINKIS_DATASOURCE_SERVICE_NAME.getValue
} else if (RPCConfiguration.METADATAQUERY_SERVICE_LIST.contains(serviceId)) {
RPCConfiguration.METADATAQUERY_SERVICE_APPLICATION_NAME.getValue
} else if (RPCConfiguration.LINKIS_MANAGER_SERVICE_LIST.contains(serviceId)) {
RPCConfiguration.LINKIS_MANAGER_SERVICE_NAME.getValue
// After the complete merge is completed, it needs to be removed
} else if (RPCConfiguration.LINKIS_DATASOURCE_SERVICE_LIST.contains(serviceId)) {
RPCConfiguration.LINKIS_DATASOURCE_SERVICE_NAME.getValue
} else {
serviceId
}
Expand Down

0 comments on commit a7a4301

Please sign in to comment.