Skip to content

Commit

Permalink
Merge pull request #1125 from WeDataSphere/master
Browse files Browse the repository at this point in the history
Merge latest code
  • Loading branch information
zqburde authored Jun 5, 2024
2 parents d32bbd9 + a5d16a4 commit f873293
Show file tree
Hide file tree
Showing 956 changed files with 77,229 additions and 76,173 deletions.
33 changes: 19 additions & 14 deletions assembly/bin/appconn-refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ if [ -z $SOURCE_ROOT ]; then
source ${SOURCE_ROOT}/conf/db.sh
fi

function refresh() {
while true; do
response=$(curl -H "Token-Code:BML-AUTH" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load)
if [[ $response == *"succeed"* ]]; then
break
else
sleep 5
fi
done
}

function isSuccess(){
if [ $? -ne 0 ]; then
echo "Failed to " + $1
Expand All @@ -31,6 +20,21 @@ function isSuccess(){
fi
}

function refresh() {
while true; do
response=$(curl -H "Token-Code:BML-AUTH" -H "Token-User:hadoop" -X GET http://${GATEWAY_INSTALL_IP}:${GATEWAY_PORT}/api/rest_j/v1/dss/framework/project/appconn/${APPCONN_NAME}/load)
if [[ $response == *"not appconn manager node"* ]]; then
echo 'not appconn manager node, we will try again 5 seconds later'
sleep 5
elif [[ $response == *"succeed"* ]]; then
echo $response
break
else
echo $response
exit 1
done
}

if [ -z $1 ];then
if [ -z $APPCONN_NAME ]; then
APPCONN_NAME=''
Expand All @@ -50,7 +54,7 @@ if [ -z $1 ];then
sh $SOURCE_ROOT/sbin/dss-start-all.sh
else
echo "You chose to wait for 5 minutes."
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn."
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn. Please wait!"
refresh
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-server."
echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin."
Expand All @@ -59,10 +63,11 @@ if [ -z $1 ];then
fi
else
APPCONN_NAME=$1
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn."
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn. Please wait!"
refresh
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-server."
echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin."
echo ""
exit 0
fi
fi

43 changes: 10 additions & 33 deletions assembly/dss-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>dss</artifactId>
<groupId>com.webank.wedatasphere.dss</groupId>
<version>1.1.2</version>
<version>1.1.0.20-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -52,8 +52,16 @@
<artifactId>hibernate-validator</artifactId>
<groupId>org.hibernate.validator</groupId>
</exclusion>
<exclusion>
<artifactId>xstream</artifactId>
<groupId>com.thoughtworks.xstream</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>xstream</artifactId>
<groupId>com.thoughtworks.xstream</groupId>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.dss</groupId>
<artifactId>dss-common</artifactId>
Expand Down Expand Up @@ -106,16 +114,7 @@
<artifactId>jackson-databind</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
Expand All @@ -132,28 +131,6 @@
<groupId>org.apache.linkis</groupId>
<artifactId>linkis-mybatis</artifactId>
<version>${linkis.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.linkis</groupId>
Expand Down
2 changes: 1 addition & 1 deletion assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>dss</artifactId>
<groupId>com.webank.wedatasphere.dss</groupId>
<version>1.1.2</version>
<version>1.1.0.20-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
Expand Down
3 changes: 3 additions & 0 deletions conf/application-dss.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eureka.client.serviceUrl.defaultZone=http://127.0.0.1:20303/eureka/
logging.config=classpath:log4j2.xml
management.endpoints.web.exposure.include=refresh,info
27 changes: 0 additions & 27 deletions conf/application-dss.yml

This file was deleted.

71 changes: 71 additions & 0 deletions conf/dss-framework-orchestrator-server.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#
# 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.
#
#

# Spring configurations
spring.server.port=9003
spring.spring.application.name=dss-framework-orchestrator-server-dev

wds.linkis.log.clear=true

wds.linkis.server.version=v1

##restful
wds.linkis.server.restful.scan.packages=com.webank.wedatasphere.dss.orchestrator.server.restful,com.webank.wedatasphere.dss.workflow.restful,org.apache.linkis.entrance.restful,com.webank.wedatasphere.dss.flow.execution.entrance.restful

##mybatis
wds.linkis.server.mybatis.mapperLocations=classpath*:com/webank/wedatasphere/dss/framework/appconn/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/orchestrator/core/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/server/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/application/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/workspace/mapper/impl/*.xml,classpath*:com/webank/wedatasphere/dss/workspace/common/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/orchestrator/db/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/workflow/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/framework/appconn/dao/impl/*.xml,classpath*:com/webank/wedatasphere/dss/flow/execution/entrance/dao/impl/*.xml

wds.linkis.server.mybatis.typeAliasesPackage=com.webank.wedatasphere.dss.server.entity,com.webank.wedatasphere.dss.application.entity,com.webank.wedatasphere.dss.framework.appconn.entity,com.webank.wedatasphere.dss.workflow.entity,com.webank.wedatasphere.dss.framework.appconn.entity

wds.linkis.server.mybatis.BasePackage=com.webank.wedatasphere.dss.framework.appconn.dao,com.webank.wedatasphere.dss.orchestrator.core.dao,com.webank.wedatasphere.dss.server.dao,com.webank.wedatasphere.dss.application.dao,com.webank.wedatasphere.dss.workspace.mapper,com.webank.wedatasphere.dss.workspace.common.dao,com.webank.wedatasphere.dss.workspace.common.dao,com.webank.wedatasphere.dss.orchestrator.db.dao,com.webank.wedatasphere.dss.workflow.dao,com.webank.wedatasphere.dss.framework.appconn.dao,com.webank.wedatasphere.dss.flow.execution.entrance.dao

wds.dss.server.scheduling.clear.cs.cron=0 0 3 * * ?

wds.dss.publish.max.remain.version=3

wds.dss.server.cs.clear.env=DEV

##export file dir
wds.dss.server.export.url=/appcom/tmp/dss
wds.dss.server.import.valid.immediately=false

##import file dir
wds.dss.file.upload.dir=/appcom/tmp/uploads
wds.dss.server.export.env=DEV
wds.dss.server.import.env=DEV

#####flow-execution######
wds.linkis.engine.application.name=flowExecutionEngine
wds.linkis.enginemanager.application.name=flowExecution

wds.linkis.query.application.name=linkis-ps-publicservice

wds.linkis.console.config.application.name=linkis-ps-publicservice
wds.linkis.engine.creation.wait.time.max=20m
wds.linkis.server.version=v1

wds.linkis.server.socket.mode=true

wds.linkis.client.flow.adminuser=ws

wds.linkis.server.component.exclude.classes=org.apache.linkis.entranceclient.conf.ClientForEntranceSpringConfiguration,org.apache.linkis.entranceclient.conf.ClientSpringConfiguration

wds.linkis.server.component.exclude.packages=org.apache.linkis.entrance.restful.
spring.spring.main.allow-bean-definition-overriding=true

wds.linkis.entrance.config.log.path=file:///appcom/tmp/dss/
wds.linkis.spark.engine.version=2.4.3
wds.linkis.hive.engine.version=2.3.3
Loading

0 comments on commit f873293

Please sign in to comment.