diff --git a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/config/HiveConfig.java b/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/config/HiveConfig.java deleted file mode 100644 index 1b0bfa28..00000000 --- a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/config/HiveConfig.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 WeBank - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.webank.wedatasphere.qualitis.config; - -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Configuration; - -/** - * @author howeye - */ -@Configuration -public class HiveConfig { - - @Value("${hive.username}") - private String username; - @Value("${hive.password}") - private String password; - - public HiveConfig() { - // Default Constructor - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } -} diff --git a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2ConnectException.java b/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2ConnectException.java deleted file mode 100644 index 1c9870da..00000000 --- a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2ConnectException.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2019 WeBank - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.webank.wedatasphere.qualitis.exception; - -/** - * @author howeye - */ -public class HiveServer2ConnectException extends Exception { - - public HiveServer2ConnectException(String message) { - super(message); - } -} diff --git a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2StatementException.java b/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2StatementException.java deleted file mode 100644 index b3d92d78..00000000 --- a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/exception/HiveServer2StatementException.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2019 WeBank - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.webank.wedatasphere.qualitis.exception; - -/** - * @author howeye - */ -public class HiveServer2StatementException extends Exception { - - public HiveServer2StatementException(String message) { - super(message); - } -} diff --git a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/submitter/impl/ExecutionManagerImpl.java b/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/submitter/impl/ExecutionManagerImpl.java index 665b3d24..f660ca30 100644 --- a/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/submitter/impl/ExecutionManagerImpl.java +++ b/core/scheduler/src/main/java/com/webank/wedatasphere/qualitis/submitter/impl/ExecutionManagerImpl.java @@ -18,7 +18,6 @@ import com.webank.wedatasphere.qualitis.bean.*; import com.webank.wedatasphere.qualitis.client.AbstractJobSubmitter; -import com.webank.wedatasphere.qualitis.config.HiveConfig; import com.webank.wedatasphere.qualitis.config.TaskExecuteLimitConfig; import com.webank.wedatasphere.qualitis.constant.TaskStatusEnum; import com.webank.wedatasphere.qualitis.converter.TemplateConverterFactory; @@ -48,7 +47,6 @@ import java.util.*; import java.util.concurrent.ExecutionException; -import java.util.concurrent.Future; import java.util.stream.Collectors; /** @@ -66,9 +64,6 @@ public class ExecutionManagerImpl implements ExecutionManager { @Autowired private ClusterInfoDao clusterInfoDao; - @Autowired - private HiveConfig hiveConfig; - @Autowired private TaskDao taskDao;