Skip to content

Commit 8d2afbb

Browse files
Merge pull request #461 from JackChen0810/dev-1.0.1
fix bug
2 parents 4bb29c5 + e6f8161 commit 8d2afbb

File tree

35 files changed

+457
-194
lines changed

35 files changed

+457
-194
lines changed

assembly/bin/appconn-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,8 @@ echo ""
106106

107107
echo "step4:refresh appconn load"
108108
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
109+
echo ""
110+
111+
echo ""
112+
echo "step5:Restart the DSS service,please use sbin/dss-start-all.sh to restart it!"
109113
echo ""

assembly/bin/install.sh

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ SERVER_IP=""
1313
SERVER_HOME=""
1414

1515
local_host="`hostname --fqdn`"
16-
LOCAL_IP="`ifconfig | grep 'inet' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}'`"
16+
LOCAL_IP=$(hostname -I)
17+
LOCAL_IP=${LOCAL_IP// /}
1718

1819
#To be compatible with MacOS and Linux
1920
txt=""
@@ -54,8 +55,8 @@ function checkJava(){
5455

5556
checkJava
5657

57-
dos2unix ${workDir}/config/*
58-
dos2unix ${workDir}/bin/*
58+
dos2unix -q ${workDir}/config/*
59+
dos2unix -q ${workDir}/bin/*
5960

6061
echo "step1:load config"
6162
source ${workDir}/config/config.sh
@@ -113,11 +114,11 @@ function replaceCommonIp() {
113114
fi
114115

115116
if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
116-
echo "GATEWAY_INSTALL_IP is equals $GATEWAY_INSTALL_IP ,we will change it to ip address"
117+
#echo "GATEWAY_INSTALL_IP is equals $GATEWAY_INSTALL_IP ,we will change it to ip address"
117118
GATEWAY_INSTALL_IP=$LOCAL_IP
118119
fi
119120
if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
120-
echo "EUREKA_INSTALL_IP is equals $EUREKA_INSTALL_IP ,we will change it to ip address"
121+
#echo "EUREKA_INSTALL_IP is equals $EUREKA_INSTALL_IP ,we will change it to ip address"
121122
EUREKA_INSTALL_IP=$LOCAL_IP
122123
fi
123124
}
@@ -150,7 +151,7 @@ function changeConf(){
150151
sed -i "s#spring.spring.application.name=.*#spring.spring.application.name=$SERVER_FULL_NAME#g" $CONF_SERVER_PROPERTIES
151152
fi
152153
sed -i "s#wds.dss.appconn.scheduler.project.store.dir.*#wds.dss.appconn.scheduler.project.store.dir=$WDS_SCHEDULER_PATH#g" $CONF_SERVER_PROPERTIES
153-
isSuccess "subsitution $CONF_SERVER_PROPERTIES of $SERVER_NAME"
154+
isSuccess "subsitution $CONF_SERVER_PROPERTIES"
154155
}
155156
##function end
156157

@@ -204,12 +205,13 @@ fi
204205

205206
##Install dss projects
206207
function installDssProject() {
208+
echo "step2:update config"
207209
# if [ "$DSS_INSTALL_HOME" != "" ]
208210
# then
209211
# rm -rf $DSS_INSTALL_HOME
210212
# fi
211-
echo ""
212-
echo "-----------------DSS install start--------------------"
213+
#echo ""
214+
#echo "-----------------DSS install start--------------------"
213215
SERVER_HOME=$DSS_INSTALL_HOME
214216
if [ "$SERVER_HOME" == "" ]
215217
then
@@ -224,7 +226,7 @@ function installDssProject() {
224226
sudo mkdir -p $SERVER_HOME;sudo chown -R $deployUser:$deployUser $SERVER_HOME
225227
isSuccess "Create the dir of $SERVER_HOME"
226228

227-
echo ""
229+
#echo ""
228230
SERVER_NAME=dss-framework-project-server
229231
SERVER_IP=$DSS_FRAMEWORK_PROJECT_SERVER_INSTALL_IP
230232
SERVER_PORT=$DSS_FRAMEWORK_PROJECT_SERVER_PORT
@@ -237,7 +239,7 @@ function installDssProject() {
237239
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
238240
###install project-Server
239241
installPackage
240-
echo ""
242+
#echo ""
241243

242244
SERVER_NAME=dss-framework-orchestrator-server
243245
SERVER_IP=$DSS_FRAMEWORK_ORCHESTRATOR_SERVER_INSTALL_IP
@@ -250,7 +252,7 @@ function installDssProject() {
250252
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
251253
###install project-Server
252254
installPackage
253-
echo ""
255+
#echo ""
254256

255257
SERVER_NAME=dss-apiservice-server
256258
SERVER_IP=$DSS_APISERVICE_SERVER_INSTALL_IP
@@ -263,7 +265,7 @@ function installDssProject() {
263265
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
264266
###install dss-apiservice-server
265267
installPackage
266-
echo ""
268+
#echo ""
267269

268270
SERVER_NAME=dss-datapipe-server
269271
SERVER_IP=$DSS_DATAPIPE_SERVER_INSTALL_IP
@@ -276,7 +278,7 @@ function installDssProject() {
276278
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
277279
###install dss-datapipe-server
278280
installPackage
279-
echo ""
281+
#echo ""
280282

281283
##Flow execution Install
282284
PACKAGE_DIR=dss
@@ -291,7 +293,7 @@ function installDssProject() {
291293
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
292294
###Install flow execution
293295
installPackage
294-
echo ""
296+
#echo ""
295297

296298
SERVER_NAME=dss-workflow-server
297299
SERVER_IP=$DSS_WORKFLOW_SERVER_INSTALL_IP
@@ -304,10 +306,11 @@ function installDssProject() {
304306
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
305307
###install dss-workflow-server
306308
installPackage
307-
echo ""
308-
echo "-----------------DSS install end--------------------"
309-
echo ""
309+
#echo "-----------------DSS install end--------------------"
310+
#echo ""
310311

311312
}
312313
ENV_FLAG="dev"
313-
installDssProject
314+
installDssProject
315+
316+
echo "Congratulations! You have installed DSS $DSS_VERSION successfully, please use sbin/dss-start-all.sh to start it!"

conf/dss-workflow-server.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ wds.dss.appconn.scheduler.azkaban.login.passwd=
4141
##import file dir
4242
wds.dss.file.upload.dir=/appcom/tmp/uploads
4343

44-
wds.dss.server.export.env=DEV
44+
wds.dss.server.export.env=DEV
45+
wds.dss.server.import.env=DEV
46+

db/dss_dml.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ INSERT INTO `dss_onestop_menu` (`id`, `name`, `title_en`, `title_cn`, `descripti
6363
INSERT INTO `dss_onestop_menu` (`id`, `name`, `title_en`, `title_cn`, `description`, `is_active`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`) VALUES('5','管理员功能','administrator function','管理员功能','管理员功能描述','0',NULL,NULL,NULL,NULL,NULL,NULL);
6464

6565
DELETE FROM dss_onestop_menu_application;
66-
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('2',NULL,'1','StreamSQL development','StreamSQL开发','Real-time application development is a streaming solution jointly built by WeDataSphere, Boss big data team and China Telecom ctcloud Big data team.','实时应用开发是微众银行微数域(WeDataSphere)、Boss直聘大数据团队 和 中国电信天翼云大数据团队 社区联合共建的流式解决方案,以 Linkis 做为内核,基于 Flink Engine 构建的批流统一的 Flink SQL,助力实时化转型。','streaming, realtime','流式,实时','0','under union construction','联合共建中','related information','相关资讯','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujukaifa-logo',NULL,NULL,NULL,NULL,NULL,'shujukaifa-icon');
66+
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('2',NULL,'0','StreamSQL development','StreamSQL开发','Real-time application development is a streaming solution jointly built by WeDataSphere, Boss big data team and China Telecom ctcloud Big data team.','实时应用开发是微众银行微数域(WeDataSphere)、Boss直聘大数据团队 和 中国电信天翼云大数据团队 社区联合共建的流式解决方案,以 Linkis 做为内核,基于 Flink Engine 构建的批流统一的 Flink SQL,助力实时化转型。','streaming, realtime','流式,实时','0','under union construction','联合共建中','related information','相关资讯','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujukaifa-logo',NULL,NULL,NULL,NULL,NULL,'shujukaifa-icon');
6767
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('3','11','1','Data service development','数据服务开发','Data service is a unified API service jointly built by WeDataSphere and Ihome Big data Team. With Linkis and DataSphere Studio as the kernel.','数据服务是微众银行微数域(WeDataSphere)与 艾佳生活大数据团队 社区联合共建的统一API服务,以 Linkis 和 DataSphere Studio 做为内核,提供快速将 Scriptis 脚本生成数据API的能力,协助企业统一管理对内对外的API服务。','API, data service','API,数据服务','1','under union construction','进入数据服务','related information','相关资讯','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujufuwu-logo',NULL,NULL,NULL,NULL,NULL,'shujufuwu-icon');
6868
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('4','1','2','Scriptis','Scriptis','Scriptis is a one-stop interactive data exploration analysis tool built by WeDataSphere, uses Linkis as the kernel.','Scriptis是微众银行微数域(WeDataSphere)打造的一站式交互式数据探索分析工具,以任意桥(Linkis)做为内核,提供多种计算存储引擎(如Spark、Hive、TiSpark等)、Hive数据库管理功能、资源(如Yarn资源、服务器资源)管理、应用管理和各种用户资源(如UDF、变量等)管理的能力。','scripts development,IDE','脚本开发,IDE','1','enter Scriptis','进入Scriptis','user manual','用户手册','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujukaifa-logo',NULL,NULL,NULL,NULL,NULL,'shujukaifa-icon');
6969

70-
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('9',NULL,'4','Exchangis','Exchangis','Exchangis is a lightweight, high scalability, data exchange platform, support for structured and unstructured data transmission between heterogeneous data sources.','Exchangis是一个轻量级的、高扩展性的数据交换平台,支持对结构化及无结构化的异构数据源之间的数据传输,在应用层上具有数据权限管控、节点服务高可用和多租户资源隔离等业务特性,而在数据层上又具有传输架构多样化、模块插件化和组件低耦合等架构特点。','user manual','生产,运维','0','enter Exchangis','进入Exchangis','user manual','用户手册','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujujiaohuan-logo',NULL,NULL,NULL,NULL,NULL,'shujujiaohuan-icon');
70+
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('9',NULL,'0','Exchangis','Exchangis','Exchangis is a lightweight, high scalability, data exchange platform, support for structured and unstructured data transmission between heterogeneous data sources.','Exchangis是一个轻量级的、高扩展性的数据交换平台,支持对结构化及无结构化的异构数据源之间的数据传输,在应用层上具有数据权限管控、节点服务高可用和多租户资源隔离等业务特性,而在数据层上又具有传输架构多样化、模块插件化和组件低耦合等架构特点。','user manual','生产,运维','0','enter Exchangis','进入Exchangis','user manual','用户手册','http://127.0.0.1:8088/wiki/scriptis/manual/workspace_cn.html','shujujiaohuan-logo',NULL,NULL,NULL,NULL,NULL,'shujujiaohuan-icon');
7171
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('10','7','5','Workspace management','工作空间管理',NULL,NULL,NULL,NULL,'1','workspace management','工作空间管理',NULL,NULL,NULL,'shujukaifa-logo',NULL,NULL,NULL,NULL,NULL,'shujukaifa-icon');
7272
INSERT INTO `dss_onestop_menu_application` (`id`, `application_id`, `onestop_menu_id`, `title_en`, `title_cn`, `desc_en`, `desc_cn`, `labels_en`, `labels_cn`, `is_active`, `access_button_en`, `access_button_cn`, `manual_button_en`, `manual_button_cn`, `manual_button_url`, `icon`, `order`, `create_by`, `create_time`, `last_update_time`, `last_update_user`, `image`) VALUES('11',NULL,'5','User resources management','用户资源管理',NULL,NULL,NULL,NULL,'1','user resource management','用户资源管理',NULL,NULL,NULL,'shujukaifa-logo',NULL,NULL,NULL,NULL,NULL,'shujukaifa-icon');
7373

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
*
3+
* * Copyright 2019 WeBank
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * http://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
19+
package com.webank.wedatasphere.dss.appconn.visualis.publish;
20+
21+
import com.google.common.collect.Maps;
22+
import com.webank.wedatasphere.dss.standard.app.development.ref.ExportRequestRef;
23+
import com.webank.wedatasphere.dss.standard.app.sso.Workspace;
24+
25+
import java.util.Map;
26+
27+
public class VisualisExportRequestRef implements ExportRequestRef {
28+
29+
Map<String, Object> parameters = Maps.newHashMap();
30+
Workspace workspace;
31+
32+
@Override
33+
public Object getParameter(String key) {
34+
return parameters.get(key);
35+
}
36+
37+
@Override
38+
public void setParameter(String key, Object value) {
39+
parameters.put(key, value);
40+
}
41+
42+
@Override
43+
public Map<String, Object> getParameters() {
44+
return parameters;
45+
}
46+
47+
@Override
48+
public String getName() {
49+
return parameters.get("name").toString();
50+
}
51+
52+
@Override
53+
public String getType() {
54+
return parameters.get("type").toString();
55+
}
56+
57+
@Override
58+
public Workspace getWorkspace() {
59+
return workspace;
60+
}
61+
62+
@Override
63+
public void setWorkspace(Workspace workspace) {
64+
this.workspace = workspace;
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
*
3+
* * Copyright 2019 WeBank
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * http://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
19+
package com.webank.wedatasphere.dss.appconn.visualis.publish;
20+
21+
import com.google.common.collect.Maps;
22+
import com.webank.wedatasphere.dss.standard.app.development.ref.ImportRequestRef;
23+
import com.webank.wedatasphere.dss.standard.app.sso.Workspace;
24+
25+
import java.util.Map;
26+
27+
public class VisualisImportRequestRef implements ImportRequestRef {
28+
29+
Map<String, Object> parameters = Maps.newHashMap();
30+
Workspace workspace;
31+
32+
@Override
33+
public Object getParameter(String key) {
34+
return parameters.get(key);
35+
}
36+
37+
@Override
38+
public void setParameter(String key, Object value) {
39+
parameters.put(key, value);
40+
}
41+
42+
@Override
43+
public Map<String, Object> getParameters() {
44+
return parameters;
45+
}
46+
47+
@Override
48+
public String getName() {
49+
return parameters.get("name").toString();
50+
}
51+
52+
@Override
53+
public String getType() {
54+
return parameters.get("type").toString();
55+
}
56+
57+
@Override
58+
public boolean equals(Object ref) {
59+
return false;
60+
}
61+
62+
@Override
63+
public String toString() {
64+
return parameters.toString();
65+
}
66+
67+
@Override
68+
public Workspace getWorkspace() {
69+
return workspace;
70+
}
71+
72+
@Override
73+
public void setWorkspace(Workspace workspace) {
74+
this.workspace = workspace;
75+
}
76+
}

0 commit comments

Comments
 (0)