Skip to content

Commit 0a4e2ac

Browse files
authored
Merge pull request #952 from Zosimer/dss-datamodel
Linkis1.2.0[datamodel][dataassets][datawarehouse]
2 parents 1f62bed + 85b7898 commit 0a4e2ac

File tree

934 files changed

+74061
-3435
lines changed

Some content is hidden

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

934 files changed

+74061
-3435
lines changed

assembly/bin/executeSQL.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ function executeSQL() {
6969
isSuccess "source dss_dataapi_ddl.sql"
7070
mysql -h$MYSQL_HOST -P$MYSQL_PORT -u$MYSQL_USER -p$MYSQL_PASSWORD -D$MYSQL_DB --default-character-set=utf8 -e "source $DB_CONF_PATH/apps/dss_guide_ddl.sql"
7171
isSuccess "source dss_guide_ddl.sql"
72+
mysql -h$MYSQL_HOST -P$MYSQL_PORT -u$MYSQL_USER -p$MYSQL_PASSWORD -D$MYSQL_DB --default-character-set=utf8 -e "source $DB_CONF_PATH/apps/datamodel.sql"
73+
isSuccess "source datamodel.sql"
74+
mysql -h$MYSQL_HOST -P$MYSQL_PORT -u$MYSQL_USER -p$MYSQL_PASSWORD -D$MYSQL_DB --default-character-set=utf8 -e "source $DB_CONF_PATH/apps/datawarehouse.sql"
75+
isSuccess "source datawarehouse.sql"
7276
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"
7377
isSuccess "source dss_dml_real.sql"
7478
echo "Rebuild the table"

assembly/bin/install.sh

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,18 @@ function replaceCommonIp() {
121121
DSS_DATA_API_SERVER_PORT=9208
122122
fi
123123

124-
if [ -z "$DSS_DATA_GOVERNANCE_SERVER_INSTALL_IP" ]; then
125-
DSS_DATA_GOVERNANCE_SERVER_INSTALL_IP=$LOCAL_IP
124+
if [ -z "$DSS_DATA_ASSETS_SERVER_INSTALL_IP" ]; then
125+
DSS_DATA_ASSETS_SERVER_INSTALL_IP=$LOCAL_IP
126126
fi
127-
if [ -z "$DSS_DATA_GOVERNANCE_SERVER_PORT" ]; then
128-
DSS_DATA_GOVERNANCE_SERVER_PORT=9209
127+
if [ -z "$DSS_DATA_ASSETS_SERVER_INSTALL_IP" ]; then
128+
DSS_DATA_ASSETS_SERVER_INSTALL_IP=9300
129+
fi
130+
if [ -z "$DSS_DATAMODEL_CENTER_SERVER_INSTALL_IP" ]; then
131+
DSS_DATAMODEL_CENTER_SERVER_INSTALL_IP=9400
132+
fi
133+
134+
if [ -z "$DSS_DATA_WAREHOUSE_SERVER_INSTALL_IP" ]; then
135+
DSS_DATA_WAREHOUSE_SERVER_INSTALL_IP=9500
129136
fi
130137

131138
if [ -z "$DSS_GUIDE_SERVER_INSTALL_IP" ]; then
@@ -343,13 +350,38 @@ function installDssProject() {
343350
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
344351
installPackage
345352

346-
###install dss-data-governance-server
347-
SERVER_NAME=dss-data-governance-server
348-
SERVER_IP=$DSS_DATA_GOVERNANCE_SERVER_INSTALL_IP
349-
SERVER_PORT=$DSS_DATA_GOVERNANCE_SERVER_PORT
350-
UPLOAD_LIB_FILES=$DSS_FILE_PATH/lib/dss-data-governance/$SERVER_NAME
351-
LIB_PATH=$SERVER_HOME/lib/dss-data-governance
352-
LOG_PATH=$SERVER_HOME/logs/dss-data-governance/$SERVER_NAME
353+
###install dss-data-assets-server
354+
SERVER_NAME=dss-data-assets-server
355+
SERVER_IP=$DSS_DATA_ASSETS_SERVER_INSTALL_IP
356+
SERVER_PORT=$DSS_DATA_ASSETS_SERVER_PORT
357+
UPLOAD_LIB_FILES=$DSS_FILE_PATH/lib/dss-data-assets-server/$SERVER_NAME
358+
LIB_PATH=$SERVER_HOME/lib/dss-data-assets-server
359+
LIB_PATH=$SERVER_HOME/lib/atlas-application.properties
360+
LOG_PATH=$SERVER_HOME/logs/dss-data-assets-server/$SERVER_NAME
361+
CONF_SERVER_PROPERTIES=$SERVER_HOME/conf/$SERVER_NAME.properties
362+
CONF_DSS_PROPERTIES=$SERVER_HOME/conf/dss.properties
363+
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
364+
installPackage
365+
366+
###install dss-data-warehouse-server
367+
SERVER_NAME=dss-data-warehouse-server
368+
SERVER_IP=$DSS_DATA_WAREHOUSE_SERVER_INSTALL_IP
369+
SERVER_PORT=$DSS_DATA_WAREHOUSE_SERVER_PORT
370+
UPLOAD_LIB_FILES=$DSS_FILE_PATH/lib/dss-data-warehouse-server/$SERVER_NAME
371+
LIB_PATH=$SERVER_HOME/lib/dss-data-warehouse-server
372+
LOG_PATH=$SERVER_HOME/logs/dss-data-warehouse-server/$SERVER_NAME
373+
CONF_SERVER_PROPERTIES=$SERVER_HOME/conf/$SERVER_NAME.properties
374+
CONF_DSS_PROPERTIES=$SERVER_HOME/conf/dss.properties
375+
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml
376+
installPackage
377+
378+
###install dss-datamodel-center-server
379+
SERVER_NAME=dss-datamodel-center-server
380+
SERVER_IP=$DSS_DATAMODEL_CENTER_SERVER_INSTALL_IP
381+
SERVER_PORT=$DSS_DATAMODEL_CENTER_SERVER_PORT
382+
UPLOAD_LIB_FILES=$DSS_FILE_PATH/lib/dss-datamodel-center-server/$SERVER_NAME
383+
LIB_PATH=$SERVER_HOME/lib/dss-datamodel-center-server
384+
LOG_PATH=$SERVER_HOME/logs/dss-datamodel-center-server/$SERVER_NAME
353385
CONF_SERVER_PROPERTIES=$SERVER_HOME/conf/$SERVER_NAME.properties
354386
CONF_DSS_PROPERTIES=$SERVER_HOME/conf/dss.properties
355387
CONF_APPLICATION_YML=$SERVER_HOME/conf/application-dss.yml

assembly/config/config.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,19 @@ DSS_FLOW_EXECUTION_SERVER_PORT=9006
5252
###dss-scriptis-server
5353
DSS_SCRIPTIS_SERVER_INSTALL_IP=127.0.0.1
5454
DSS_SCRIPTIS_SERVER_PORT=9008
55+
###dss-data-assets-server
56+
DSS_DATA_ASSETS_SERVER_INSTALL_IP=127.0.0.1
57+
DSS_DATA_ASSETS_SERVER_PORT=9300
58+
###dss-datamodel-center-server
59+
DSS_DATAMODEL_CENTER_SERVER_INSTALL_IP=127.0.0.1
60+
DSS_DATAMODEL_CENTER_SERVER_PORT=9400
61+
###dss-data-warehouse-server
62+
DSS_DATA_WAREHOUSE_SERVER_INSTALL_IP=127.0.0.1
63+
DSS_DATA_WAREHOUSE_SERVER_PORT=9500
5564

5665
###dss-data-api-server
5766
DSS_DATA_API_SERVER_INSTALL_IP=127.0.0.1
5867
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
6268
###dss-guide-server
6369
DSS_GUIDE_SERVER_INSTALL_IP=127.0.0.1
6470
DSS_GUIDE_SERVER_PORT=9210
@@ -83,5 +89,4 @@ EMAIL_PORT=25
8389
8490
EMAIL_PASSWORD=xxxxx
8591
EMAIL_PROTOCOL=smtp
86-
############## ############## dss_appconn_instance configuration end ############## ##############
87-
92+
############## ############## dss_appconn_instance configuration end ############## ##############

assembly/dss-package/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>dss</artifactId>
2323
<groupId>com.webank.wedatasphere.dss</groupId>
24-
<version>1.1.0</version>
24+
<version>1.2.0</version>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>
2727
<artifactId>dss-package</artifactId>

assembly/dss-package/src/main/assembly/distribution.xml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,40 @@
287287
<!--dss-data-api-server-->
288288
<fileSet>
289289
<directory>
290-
${basedir}/../../dss-data-api/dss-data-api-server/target/out/dss-data-api-server/lib/
290+
${basedir}/../../dss-apps/dss-data-api/dss-data-api-server/target/out/dss-data-api-server/lib/
291291
</directory>
292-
<outputDirectory>lib/dss-data-api/dss-data-api-server</outputDirectory>
292+
<outputDirectory>lib/dss-apps/dss-data-api-server</outputDirectory>
293+
<includes>
294+
<include>**/*</include>
295+
</includes>
296+
</fileSet>
297+
298+
299+
<fileSet>
300+
<directory>
301+
${basedir}/../../dss-apps/dss-dataasset-management/dss-data-assets-server/target/out/dss-data-assets-server/lib/
302+
</directory>
303+
<outputDirectory>lib/dss-apps/dss-data-assets-server</outputDirectory>
304+
<includes>
305+
<include>**/*</include>
306+
</includes>
307+
</fileSet>
308+
309+
<fileSet>
310+
<directory>
311+
${basedir}/../../dss-apps/dss-datamodel-center/dss-datamodel-center-server/target/out/dss-datamodel-center-server/lib/
312+
</directory>
313+
<outputDirectory>lib/dss-apps/dss-datamodel-center-server</outputDirectory>
293314
<includes>
294315
<include>**/*</include>
295316
</includes>
296317
</fileSet>
297318

298-
<!--dss-data-governance-server-->
299319
<fileSet>
300320
<directory>
301-
${basedir}/../../dss-data-governance/dss-data-governance-server/target/out/dss-data-governance-server/lib/
321+
${basedir}/../../dss-apps/dss-datawarehouse-design/dss-data-warehouse-server/target/out/dss-data-warehouse-server/lib/
302322
</directory>
303-
<outputDirectory>lib/dss-data-governance/dss-data-governance-server</outputDirectory>
323+
<outputDirectory>lib/dss-apps/dss-data-warehouse-server</outputDirectory>
304324
<includes>
305325
<include>**/*</include>
306326
</includes>

assembly/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>dss</artifactId>
2424
<groupId>com.webank.wedatasphere.dss</groupId>
25-
<version>1.1.0</version>
25+
<version>1.2.0</version>
2626
</parent>
2727
<packaging>pom</packaging>
2828
<modelVersion>4.0.0</modelVersion>

conf/atlas-application.properties

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Generated by Apache Ambari. Sun Feb 27 10:44:18 2022
2+
3+
atlas.audit.hbase.tablename=ATLAS_ENTITY_AUDIT_EVENTS
4+
atlas.audit.hbase.zookeeper.quorum=hdp
5+
atlas.audit.zookeeper.session.timeout.ms=60000
6+
atlas.authentication.keytab=/etc/security/keytabs/atlas.service.keytab
7+
atlas.authentication.method.file=true
8+
atlas.authentication.method.file.filename=/home/hadoop/software/apache-atlas-2.0.0/conf/users-credentials.properties
9+
atlas.authentication.method.kerberos=false
10+
atlas.authentication.method.ldap=false
11+
atlas.authentication.method.ldap.ad.base.dn=
12+
atlas.authentication.method.ldap.ad.bind.dn=
13+
atlas.authentication.method.ldap.ad.bind.password=
14+
atlas.authentication.method.ldap.ad.default.role=ROLE_USER
15+
atlas.authentication.method.ldap.ad.domain=
16+
atlas.authentication.method.ldap.ad.referral=ignore
17+
atlas.authentication.method.ldap.ad.url=
18+
atlas.authentication.method.ldap.ad.user.searchfilter=(sAMAccountName={0})
19+
atlas.authentication.method.ldap.base.dn=
20+
atlas.authentication.method.ldap.bind.dn=
21+
atlas.authentication.method.ldap.bind.password=
22+
atlas.authentication.method.ldap.default.role=ROLE_USER
23+
atlas.authentication.method.ldap.groupRoleAttribute=cn
24+
atlas.authentication.method.ldap.groupSearchBase=
25+
atlas.authentication.method.ldap.groupSearchFilter=
26+
atlas.authentication.method.ldap.referral=ignore
27+
atlas.authentication.method.ldap.type=ldap
28+
atlas.authentication.method.ldap.url=
29+
atlas.authentication.method.ldap.user.searchfilter=
30+
atlas.authentication.method.ldap.userDNpattern=uid=
31+
atlas.authentication.principal=atlas
32+
atlas.authorizer.impl=ranger
33+
atlas.cluster.name=bigdata_all_in_one
34+
atlas.enableTLS=false
35+
atlas.graph.index.search.solr.mode=cloud
36+
atlas.graph.index.search.solr.wait-searcher=true
37+
atlas.graph.index.search.solr.zookeeper-url=hadoop:2181/infra-solr
38+
atlas.graph.storage.hbase.table=atlas_janus
39+
atlas.graph.storage.hostname=hdp
40+
atlas.kafka.auto.commit.enable=false
41+
atlas.kafka.bootstrap.servers=hadoop:6667
42+
atlas.kafka.hook.group.id=atlas
43+
atlas.kafka.zookeeper.connect=hadoop:2181
44+
atlas.kafka.zookeeper.connection.timeout.ms=30000
45+
atlas.kafka.zookeeper.session.timeout.ms=60000
46+
atlas.kafka.zookeeper.sync.time.ms=20
47+
atlas.lineage.schema.query.hive_table=hive_table where __guid='%s'\, columns
48+
atlas.lineage.schema.query.Table=Table where __guid='%s'\, columns
49+
atlas.notification.create.topics=true
50+
atlas.notification.embedded=false
51+
atlas.notification.replicas=1
52+
atlas.notification.topics=ATLAS_HOOK,ATLAS_ENTITIES
53+
atlas.proxyusers=
54+
atlas.rest.address=http://hadoop:21000
55+
atlas.server.address.id1=hadoop:21000
56+
atlas.server.bind.address=0.0.0.0
57+
atlas.server.ha.enabled=false
58+
atlas.server.http.port=21000
59+
atlas.server.https.port=21443
60+
atlas.server.ids=id1
61+
atlas.simple.authz.policy.file=/home/hadoop/software/apache-atlas-2.0.0/conf/atlas-simple-authz-policy.json
62+
atlas.solr.kerberos.enable=false
63+
atlas.ssl.exclude.protocols=TLSv1.2
64+
atlas.sso.knox.browser.useragent=
65+
atlas.sso.knox.enabled=false
66+
atlas.sso.knox.providerurl=
67+
atlas.sso.knox.publicKey=
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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+
# Spring configurations
19+
spring.server.port=9300
20+
spring.spring.application.name=dss-data-assets-server
21+
wds.linkis.test.mode=true
22+
wds.linkis.log.clear=true
23+
wds.linkis.server.version=v1
24+
25+
26+
wds.linkis.server.mybatis.datasource.url=jdbc:mysql://localhost:3306/hive?useSSL=false&characterEncoding=UTF-8
27+
28+
wds.linkis.server.mybatis.datasource.username=root
29+
30+
***REMOVED***root
31+
32+
33+
34+
35+
36+
wds.linkis.server.restful.scan.packages=com.webank.wedatasphere.dss.data.governance.restful
37+
38+
##mybatis
39+
wds.linkis.server.mybatis.mapperLocations=classpath*:com/webank/wedatasphere/dss/data/governance/dao/impl/*.xml
40+
41+
wds.linkis.server.mybatis.typeAliasesPackage=com.webank.wedatasphere.dss.data.governance.entity
42+
43+
wds.linkis.server.mybatis.BasePackage=com.webank.wedatasphere.dss.data.governance.dao
44+
45+
46+
# atlas config
47+
atlas.rest.address=http://localhost:21000
48+
atlas.username=admin
49+
atlas.password=admin123
50+
atlas.client.readTimeoutMSecs=60000
51+
atlas.client.connectTimeoutMSecs=60000
52+
53+
# create root classification
54+
atlas.root.indicator=datamodel_indicator
55+
atlas.root.measure=datamodel_measure
56+
atlas.root.dimension=datamodel_dimension
57+
atlas.root.layer=datamodel_layer
58+
atlas.root.theme=datamodel_theme
59+
60+
# create root glossary
61+
atlas.root.label=datamodel_label
62+
atlas.root.collection=datamodel_collection
63+
64+
65+
# hive metadata config
66+
metastore.datasource.driver=com.mysql.jdbc.Driver
67+
metastore.datasource.url=jdbc:mysql://localhost:3306/hive?characterEncoding=UTF-8
68+
metastore.datasource.username=root
69+
metastore.datasource.password=root
70+
71+
72+
wds.workspace.client.serverurl=http://localhost:9001
73+
74+
wds.workspace.client.authtoken.key=hadoop
75+
76+
wds.workspace.client.authenticationStrategy=org.apache.linkis.httpclient.dws.authentication.TokenAuthenticationStrategy
77+
78+
wds.workspace.client.discovery.enabled=false
79+
80+
wds.workspace.client.authtoken.value=hadoop
81+
82+
spring.spring.mvc.servlet.path=/api/rest_j/v1
83+
84+
wds.workspace.client.dws.version=v1
85+
86+
wds.wedatasphere.data.assert.client.strategy=static
87+
88+

conf/dss-data-governance-server.properties

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)