Skip to content

Commit 428bfda

Browse files
authored
Merge pull request #1102 from WeBankFinTech/dev-1.1.2
Dev 1.1.2
2 parents 1a05b4c + 18816e2 commit 428bfda

File tree

962 files changed

+73586
-32802
lines changed

Some content is hidden

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

962 files changed

+73586
-32802
lines changed

Diff for: .github/workflows/dlc.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"ignorePatterns": [
33
{
44
"pattern": "https://github.com/WeBankFinTech/DataSphereStudio-Doc"
5+
},
6+
{
7+
"pattern": "http://localhost"
8+
},
9+
{
10+
"pattern": "http://127.0.0.1"
511
}
612
],
713
"timeout": "10s",
@@ -13,5 +19,4 @@
1319
401,
1420
403
1521
]
16-
}
17-
22+
}

Diff for: .gitignore

+112-30
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

Diff for: assembly/bin/appconn-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function isSuccess(){
2626
fi
2727
}
2828

29-
PROC_NAME=DSSProjectServerApplication
29+
PROC_NAME=DSSServerApplication
3030
ProcNumber=`ps -ef | grep -w $PROC_NAME | grep -v grep | wc -l`
3131
if [ $ProcNumber -le 0 ];then
3232
echo "${PROC_NAME} is not running, please ensure whether DSS is installed and started."

Diff for: assembly/bin/appconn-refresh.sh

+17-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ if [ -z $SOURCE_ROOT ]; then
1111
source ${SOURCE_ROOT}/conf/db.sh
1212
fi
1313

14+
function refresh() {
15+
while true; do
16+
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)
17+
if [[ $response == *"succeed"* ]]; then
18+
break
19+
else
20+
sleep 5
21+
fi
22+
done
23+
}
24+
1425
function isSuccess(){
1526
if [ $? -ne 0 ]; then
1627
echo "Failed to " + $1
@@ -39,18 +50,18 @@ if [ -z $1 ];then
3950
sh $SOURCE_ROOT/sbin/dss-start-all.sh
4051
else
4152
echo "You chose to wait for 5 minutes."
42-
echo "Now try to call dss-framework-project to reload the plugin of $APPCONN_NAME AppConn."
43-
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
44-
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-framework-project."
53+
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn."
54+
refresh
55+
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-server."
4556
echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin."
4657
echo ""
4758
exit 0
4859
fi
4960
else
5061
APPCONN_NAME=$1
51-
echo "Now try to call dss-framework-project to reload the plugin of $APPCONN_NAME AppConn."
52-
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
53-
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-framework-project."
62+
echo "Now try to call dss-server to reload the plugin of $APPCONN_NAME AppConn."
63+
refresh
64+
isSuccess "reload the plugin of $APPCONN_NAME AppConn in dss-server."
5465
echo "Now please wait for 5 minutes, then all of the DSS micro-services will refresh the ${APPCONN_NAME} AppConn plugin."
5566
echo ""
5667
exit 0

Diff for: assembly/bin/appconn-uninstall.sh

+107
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

0 commit comments

Comments
 (0)