Skip to content

Commit

Permalink
Merge pull request #231 from peacewong/master
Browse files Browse the repository at this point in the history
Modify the SQL comment standardization problem and exclude the CDH version Jasper package
  • Loading branch information
yangzhiyue authored Dec 25, 2019
2 parents e6b0986 + 471f17d commit 3788f7c
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 14 deletions.
18 changes: 18 additions & 0 deletions assembly/public-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-cloudRPC</artifactId>
<version>${linkis.version}</version>
<exclusions>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
Expand All @@ -27,6 +37,14 @@
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ then
SERVER_IP=$local_host
fi
EUREKA_URL=http://$SERVER_IP:$EUREKA_PORT/eureka/
if ! executeCMD $SERVER_IP test -e $SERVER_HOME; then
if ! executeCMD $SERVER_IP "test -e $SERVER_HOME"; then
executeCMD $SERVER_IP "sudo mkdir -p $SERVER_HOME;sudo chown -R $deployUser:$deployUser $SERVER_HOME"
isSuccess "create the dir of $SERVER_HOME"
fi
Expand Down Expand Up @@ -283,7 +283,7 @@ then
SERVER_IP=$local_host
fi

if ! executeCMD $SERVER_IP test -e $SERVER_HOME; then
if ! executeCMD $SERVER_IP "test -e $SERVER_HOME"; then
executeCMD $SERVER_IP "sudo mkdir -p $SERVER_HOME;sudo chown -R $deployUser:$deployUser $SERVER_HOME"
isSuccess "create the dir of $SERVER_NAME"
fi
Expand Down
12 changes: 10 additions & 2 deletions bin/start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function executeCMD(){

#if there is no LINKIS_INSTALL_HOME,we need to source config again
if [ -z ${LINKIS_INSTALL_HOME} ];then
echo "Warning: LINKIS_INSTALL_HOME does not exist, we will source config"
echo "Info: LINKIS_INSTALL_HOME does not exist, we will source config"
if [ ! -f "${CONF_FILE}" ];then
echo "Error: can not find config file, start applications failed"
exit 1
Expand All @@ -95,7 +95,7 @@ then
SERVER_IP=$local_host
fi

if executeCMD $SERVER_IP test -e $SERVER_BIN; then
if ! executeCMD $SERVER_IP "test -e $SERVER_BIN"; then
echo "$SERVER_NAME is not installed,the startup steps will be skipped"
return
fi
Expand Down Expand Up @@ -201,6 +201,14 @@ if test -z "$SERVER_IP"
then
SERVER_IP=$local_host
fi

SERVER_BIN=${LINKIS_INSTALL_HOME}/$SERVER_NAME/bin

if ! executeCMD $SERVER_IP "test -e $SERVER_BIN"; then
echo "$SERVER_NAME is not installed,the checkServer steps will be skipped"
return
fi

sh $workDir/checkServices.sh $SERVER_NAME $SERVER_IP $SERVER_PORT
isSuccess "start $SERVER_NAME "
echo "<-------------------------------->"
Expand Down
5 changes: 5 additions & 0 deletions bin/stop-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ then
SERVER_IP=$local_host
fi

if ! executeCMD $SERVER_IP "test -e $SERVER_BIN"; then
echo "$SERVER_NAME is not installed,the stopApp steps will be skipped"
return
fi

isLocal $SERVER_IP
flag=$?
echo "Is local "$flag
Expand Down
2 changes: 1 addition & 1 deletion db/linkis_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ CREATE TABLE if not exists `linkis_resources_download_history` (



--创建资源任务表,包括上传,更新,下载
-- 创建资源任务表,包括上传,更新,下载
drop table if exists `linkis_resources_task`;
CREATE TABLE if not exists `linkis_resources_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
Expand Down
18 changes: 9 additions & 9 deletions db/module/linkis-bml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ CREATE TABLE `linkis_resources` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;

--修改expire_type的默认值为NULL
-- 修改expire_type的默认值为NULL
alter table linkis_resources alter column expire_type set default null;

--修改expire_time的默认值为NULL
-- 修改expire_time的默认值为NULL
alter table linkis_resources alter column expire_time set default null;


Expand All @@ -40,15 +40,15 @@ CREATE TABLE `linkis_resources_version` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--添加start_byte 和 end_byte 字段
-- 添加start_byte 和 end_byte 字段
ALTER TABLE `linkis_resources_version` ADD COLUMN `start_byte` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0 AFTER `size`;

ALTER TABLE `linkis_resources_version` ADD COLUMN `end_byte` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0 AFTER `start_byte`;

--version字段修改
-- version字段修改
alter table `linkis_resources_version` modify column `version` varchar(20) not null;

--给resource_id 和 version 加上联合唯一约束
-- 给resource_id 和 version 加上联合唯一约束
alter table `linkis_resources_version` add unique key `resource_id_version`(`resource_id`, `version`);


Expand All @@ -75,13 +75,13 @@ CREATE TABLE `linkis_resources_download_history` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


--删除resources_version_id 字段
-- 删除resources_version_id 字段
alter table `linkis_resources_download_history` drop column `resources_version_id`;

--添加resource_id 字段
-- 添加resource_id 字段
alter table `linkis_resources_download_history` add column `resource_id` varchar(50) not null after `state`;

--添加version字段
-- 添加version字段
alter table `linkis_resources_download_history` add column `version` varchar(20) not null after `resource_id`;

create table dws_bml_resources_contentType (
Expand All @@ -93,7 +93,7 @@ create table dws_bml_resources_contentType (
UNIQUE KEY `whitelist_contentType_uindex` (`content_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--创建资源任务表,包括上传,更新,下载
-- 创建资源任务表,包括上传,更新,下载
CREATE TABLE `linkis_resources_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`resource_id` varchar(50) DEFAULT NULL COMMENT '资源id,资源的uuid',
Expand Down
32 changes: 32 additions & 0 deletions metadata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -164,6 +172,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>

</dependency>
Expand Down Expand Up @@ -236,6 +252,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down Expand Up @@ -272,6 +296,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down
16 changes: 16 additions & 0 deletions resourceManager/resourcemanagerserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -236,6 +244,14 @@
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
Expand Down
16 changes: 16 additions & 0 deletions ujes/definedEngines/hive/enginemanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down

0 comments on commit 3788f7c

Please sign in to comment.