Skip to content

Commit 82bc101

Browse files
authored
Merge pull request #1100 from WeDataSphere/master
Merge code to dev-1.1.2
2 parents c88391a + 96583be commit 82bc101

File tree

947 files changed

+59758
-23055
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

947 files changed

+59758
-23055
lines changed

.github/workflows/dlc.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"ignorePatterns": [
3-
{
4-
"pattern": "https://github.com/WeBankFinTech/DataSphereStudio-Doc"
5-
}
6-
],
72
"timeout": "10s",
83
"retryOn429": true,
94
"retryCount": 10,
@@ -13,5 +8,4 @@
138
401,
149
403
1510
]
16-
}
17-
11+
}

.gitignore

Lines changed: 112 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,115 @@
1+
.idea
2+
.idea/*
3+
14
.DS_Store
2-
.cache
35

4-
# for ide
6+
assembly/target
7+
assembly/dss-package/target
8+
9+
10+
# dss-commons
11+
dss-commons/dss-sender-service/target
12+
13+
# dss-appconn
14+
dss-appconn/appconns/dss-datachecker-appconn/target
15+
dss-appconn/appconns/dss-eventchecker-appconn/target
16+
dss-appconn/appconns/dss-orchestrator-framework-appconn/target
17+
dss-appconn/appconns/dss-schedulis-appconn/target
18+
dss-appconn/appconns/dss-sendemail-appconn/esb-email-support/target
19+
dss-appconn/appconns/dss-sendemail-appconn/sendemail-appconn-core/target
20+
dss-appconn/appconns/dss-workflow-appconn/target
21+
dss-appconn/appconns/dss-sso-appconn/target
22+
dss-appconn/appconns/dss-scriptis-appconn-appconn/target
23+
dss-appconn/dss-appconn-core/target
24+
dss-appconn/dss-appconn-loader/target
25+
dss-appconn/dss-schedule-appconn-core/target
26+
dss-appconn/linkis-appconn-engineplugin/target
27+
dss-appconn/appconns/dss-dolphinscheduler-appconn/target
28+
dss-appconn/dss-appconn-manager/dss-appconn-manager-client/target
29+
dss-appconn/dss-appconn-manager/dss-appconn-manager-core/target
30+
dss-appconn/dss-scheduler-appconn/target
31+
dss-appconn/appconns/dss-scriptis-appconn/target/
32+
33+
# dss-apps
34+
dss-apps/dss-apiservice-server/target
35+
dss-apps/dss-scriptis-server/target
36+
dss-apps/dss-apps-server/target
37+
dss-server/target
38+
39+
#dss-guide
40+
dss-apps/dss-user-guide/dss-user-guide-server/src/main/resources/
41+
dss-apps/dss-user-guide/dss-user-guide-server/target
42+
43+
# dss-commons
44+
dss-commons/dss-common/target
45+
dss-commons/dss-contextservice/target
46+
dss-commons/dss-bmlservice/target
47+
48+
# dss-framework
49+
dss-framework/dss-appconn-framework/target
50+
dss-framework/dss-framework-common/target
51+
dss-framework/dss-framework-orchestrator-server/target
52+
dss-framework/dss-framework-project-server/target
53+
dss-framework/dss-framework-workspace-server/target
54+
dss-framework/framework-plugins/dss-framework-orchestrator-publish/target
55+
dss-framework/framework-plugins/dss-framework-release-server/target
56+
dss-framework/framework-plugins/dss-framework-migrate-server/target
57+
dss-framework/dss-framework-admin/target
58+
dss-framework/dss-framework-sql-template/target
59+
dss-framework/dss-framework-dbapi-server/target
60+
dss-framework/dss-framework-admin-service/target
61+
dss-framework/dss-framework-proxy-user-service/target
62+
63+
64+
# dss-orchestrator
65+
dss-orchestrator/dss-orchestrator-common/target
66+
dss-orchestrator/dss-orchestrator-core/target
67+
dss-orchestrator/dss-orchestrator-db/target
68+
dss-orchestrator/dss-orchestrator-loader/target
69+
dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/target
70+
dss-orchestrator/orchestrators/dss-workflow/dss-linkis-node-execution/target
71+
dss-orchestrator/orchestrators/dss-workflow/dss-workflow-common/target
72+
dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/target
73+
dss-orchestrator/dss-orchestrator-conversion-standard/target
74+
dss-orchestrator/orchestrators/dss-workflow/dss-workflow-conversion-standard/target
75+
dss-orchestrator/orchestrators/dss-workflow/dss-workflow-sdk/target
76+
77+
# dss-standars
78+
dss-standard/dss-standard-common/target
79+
dss-standard/sso-standard/origin-sso-integration-standard/target
80+
dss-standard/sso-standard/spring-origin-sso-integration-plugin/target
81+
dss-standard/sso-standard/sso-integration-standard/target
82+
dss-standard/development-standard/development-process-standard/target
83+
dss-standard/development-standard/development-process-standard-execution/target
84+
dss-standard/structure-standard/dss-project-plugin/target
85+
dss-standard/structure-standard/dss-role-plugin/target
86+
dss-standard/structure-standard/dss-structure-integration-standard/target
87+
dss-standard/structure-standard/spring-origin-dss-project-plugin/target
88+
89+
#dss-data-api
90+
dss-apps/dss-data-api/dss-data-api-server/src/main/resources
91+
dss-apps/dss-data-api/dss-api-sql-template/target
92+
dss-apps/dss-data-api/dss-data-api-server/target
93+
94+
#dss-data-governance
95+
dss-apps/dss-data-governance/dss-data-governance-server/src/main/resources
96+
dss-apps/dss-data-governance/dss-data-governance-server/target
97+
dss-apps/dss-data-governance/dss-data-governance-common/target
98+
dss-apps/dss-data-governance/dss-data-asset-server/target
99+
dss-apps/dss-data-governance/dss-data-classification-server/target
100+
dss-apps/dss-data-governance/dss-data-warehouse-dao/target
101+
dss-apps/dss-data-governance/dss-data-warehouse-service/target
102+
dss-apps/dss-data-governance/dss-data-warehouse-server/target
103+
104+
105+
# plugins
106+
plugins/azkaban/linkis-jobtype/target
107+
plugins/linkis/dss-gateway-support/target
108+
109+
logs
110+
logs/*
111+
5112
*.iml
6-
*.ipr
7-
*.iws
8-
*.pyc
9-
*.pyo
10-
*.swp
11-
.idea/
12-
.idea_modules/
13-
.project
14-
.pydevproject
15-
.scala_dependencies
16-
.settings
17-
.classpath
18-
19-
# For SBT
20-
.jvmopts
21-
22-
# For Node.js
23-
node_modules/
24-
25-
# generated file
26-
.mvn/wrapper/maven-wrapper.jar
27-
dist/
28-
out/
29-
target/
30-
31-
# log folder
32-
logs/
33-
*.log
113+
/plugins/dolphinscheduler/dss-dolphinscheduler-client/target
114+
/plugins/dolphinscheduler/dolphinscheduler-prod-metrics/target
115+
/plugins/dolphinscheduler/dss-dolphinscheduler-token/target

assembly/bin/appconn-uninstall.sh

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
#!/bin/sh
2+
#Actively load user env
3+
source ~/.bashrc
4+
shellDir=`dirname $0`
5+
workDir=`cd ${shellDir}/..;pwd`
6+
7+
SOURCE_ROOT=${workDir}
8+
9+
#load config
10+
source ${SOURCE_ROOT}/conf/config.sh
11+
source ${SOURCE_ROOT}/conf/db.sh
12+
13+
APPCONN_NAME=''
14+
15+
LOCAL_IP="`ifconfig | grep 'inet' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}'`"
16+
17+
function isSuccess(){
18+
if [ $? -ne 0 ]; then
19+
echo "Failed to " $1
20+
exit 1
21+
else
22+
echo "Succeed to " $1
23+
fi
24+
}
25+
26+
27+
PROC_NAME=DSSProjectServerApplication
28+
ProcNumber=`ps -ef | grep -w $PROC_NAME | grep -v grep | wc -l`
29+
if [ $ProcNumber -le 0 ];then
30+
echo "${PROC_NAME} is not running, please ensure whether DSS is installed and started."
31+
exit 10
32+
else
33+
echo "Begin to uninstall AppConn plugin..."
34+
fi
35+
36+
37+
function getUninstallAppConn() {
38+
echo "Please input the name of uninstallation AppConn, e.g: schedulis."
39+
read -p "Please input the AppConn name:" idx
40+
if [[ 'exit' = "$idx" ]];then
41+
echo "exit!"
42+
exit 1
43+
else
44+
APPCONN_NAME=$idx
45+
fi
46+
echo "Current uninstallation AppConn is ${APPCONN_NAME}"
47+
echo ""
48+
echo -e "\e[1;31m Are you sure you want to uninstall AppConn ${APPCONN_NAME}, the workflow associated with the AppConn will not be available after uninstallation.\e[0m"
49+
echo -e "\e[1;31mIf you want to uninstall AppConn ${APPCONN_NAME}, please enter 1, otherwise enter 0.\e[0m"
50+
echo ""
51+
read -p "Please input your choice:" idx
52+
53+
if [[ '0' = "$idx" ]]; then
54+
echo "exit!"
55+
exit 1
56+
fi
57+
}
58+
59+
##choose execute mysql mode
60+
function executeSQL() {
61+
TEMP_DB_DML_PATH=${SOURCE_ROOT}/dss-appconns/${APPCONN_NAME}/db
62+
DB_DML_PATH=$TEMP_DB_DML_PATH/uninstall.sql
63+
mysql -h$MYSQL_HOST -P$MYSQL_PORT -u$MYSQL_USER -p$MYSQL_PASSWORD -D$MYSQL_DB --default-character-set=utf8 -e "source $DB_DML_PATH"
64+
isSuccess "complete the cleanup of the database $DB_DML_PATH"
65+
echo "Implement the $TEMP_DB_DML_PATH/uninstall.sql for $APPCONN_NAME succeed."
66+
}
67+
68+
69+
function deleteDML() {
70+
echo ""
71+
echo -e "\e[1;31m If you want to delete AppConn ${APPCONN_NAME} file, please enter 1, otherwise enter 0.\e[0m"
72+
echo ""
73+
read -p "Please input your choice:" idx
74+
if [[ '1' = "$idx" ]];then
75+
DML_PATH=${SOURCE_ROOT}/dss-appconns/${APPCONN_NAME}
76+
suffix=.zip
77+
rm -rf $DML_PATH$suffix
78+
rm -rf $DML_PATH
79+
isSuccess "complete the cleanup of the ${APPCONN_NAME} file."
80+
fi
81+
}
82+
83+
84+
echo ""
85+
echo "Step1: Get the uninstall AppConn name."
86+
getUninstallAppConn
87+
echo ""
88+
89+
echo "Step2: Delete AppConn $APPCONN_NAME database info."
90+
executeSQL
91+
echo ""
92+
93+
echo "Step3: Clear the plugin of $APPCONN_NAME AppConn in DSS."
94+
deleteDML
95+
echo ""
96+
echo "Now try to delete the plugin of ${APPCONN_NAME} AppConn in all DSS micro-services."
97+
echo "The following 2 ways can take effect:"
98+
echo "1. Restart DSS, we will use sh $SOURCE_ROOT/sbin/dss-start-all.sh to restart, it will spend 1 minute."
99+
echo "2. Do nothing, just wait for 5 minutes. Since the DSS micro-services will refresh all the AppConn plugins every 10 minutes."
100+
echo ""
101+
read -p "Please input the choise: " choise
102+
if [[ '1' = "$choise" ]]; then
103+
echo "You chose to restart dss-framework-project micro-services, now try to restart ..."
104+
sh $SOURCE_ROOT/sbin/dss-start-all.sh
105+
else
106+
echo "You chose to wait for 5 minutes."
107+
fi

assembly/bin/install.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ SERVER_IP=""
1313
SERVER_HOME=""
1414

1515
local_host="`hostname --fqdn`"
16-
LOCAL_IP=$(hostname -I)
17-
LOCAL_IP=${LOCAL_IP// /}
16+
LOCAL_IP=$(hostname -I | awk '{print $1}')
1817

1918
#To be compatible with MacOS and Linux
2019
txt=""
@@ -228,19 +227,12 @@ fi
228227
##Install dss projects
229228
function installDssProject() {
230229
echo "step2:update config"
231-
# if [ "$DSS_INSTALL_HOME" != "" ]
232-
# then
233-
# rm -rf $DSS_INSTALL_HOME
234-
# fi
235-
#echo ""
236-
#echo "-----------------DSS install start--------------------"
237230
SERVER_HOME=$DSS_INSTALL_HOME
238231
if [ "$SERVER_HOME" == "" ]
239232
then
240233
export SERVER_HOME=${workDir}/DSSInstall
241234
fi
242235
if [ -d $SERVER_HOME ] && [ "$SERVER_HOME" != "$workDir" ]; then
243-
rm -r $SERVER_HOME-bak
244236
echo "mv $SERVER_HOME $SERVER_HOME-bak"
245237
mv $SERVER_HOME $SERVER_HOME-bak
246238
fi

assembly/config/config.sh

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SERVER_HEAP_SIZE="512M"
77
### The install home path of DSS,Must provided
88
DSS_INSTALL_HOME=/appcom/Install/DSSInstall
99

10-
DSS_VERSION=1.1.0
10+
DSS_VERSION=1.1.2
1111

1212
DSS_FILE_NAME="dss-$DSS_VERSION"
1313

@@ -33,35 +33,13 @@ GATEWAY_PORT=9001
3333

3434
### DSS_SERVER
3535
### This service is used to provide dss-server capability.
36+
### dss-server
37+
DSS_SERVER_INSTALL_IP=127.0.0.1
38+
DSS_SERVER_PORT=9043
3639

37-
### project-server
38-
DSS_FRAMEWORK_PROJECT_SERVER_INSTALL_IP=127.0.0.1
39-
DSS_FRAMEWORK_PROJECT_SERVER_PORT=9002
40-
### orchestrator-server
41-
DSS_FRAMEWORK_ORCHESTRATOR_SERVER_INSTALL_IP=127.0.0.1
42-
DSS_FRAMEWORK_ORCHESTRATOR_SERVER_PORT=9003
43-
### apiservice-server
44-
DSS_APISERVICE_SERVER_INSTALL_IP=127.0.0.1
45-
DSS_APISERVICE_SERVER_PORT=9004
46-
### dss-workflow-server
47-
DSS_WORKFLOW_SERVER_INSTALL_IP=127.0.0.1
48-
DSS_WORKFLOW_SERVER_PORT=9005
49-
### dss-flow-execution-server
50-
DSS_FLOW_EXECUTION_SERVER_INSTALL_IP=127.0.0.1
51-
DSS_FLOW_EXECUTION_SERVER_PORT=9006
52-
###dss-scriptis-server
53-
DSS_SCRIPTIS_SERVER_INSTALL_IP=127.0.0.1
54-
DSS_SCRIPTIS_SERVER_PORT=9008
55-
56-
###dss-data-api-server
57-
DSS_DATA_API_SERVER_INSTALL_IP=127.0.0.1
58-
DSS_DATA_API_SERVER_PORT=9208
59-
###dss-data-governance-server
60-
DSS_DATA_GOVERNANCE_SERVER_INSTALL_IP=127.0.0.1
61-
DSS_DATA_GOVERNANCE_SERVER_PORT=9209
62-
###dss-guide-server
63-
DSS_GUIDE_SERVER_INSTALL_IP=127.0.0.1
64-
DSS_GUIDE_SERVER_PORT=9210
40+
### dss-apps-server
41+
DSS_APPS_SERVER_INSTALL_IP=127.0.0.1
42+
DSS_APPS_SERVER_PORT=9044
6543

6644
############## ############## dss_appconn_instance configuration start ############## ##############
6745
####eventchecker表的地址,一般就是dss数据库

0 commit comments

Comments
 (0)