Skip to content

Commit

Permalink
Merge pull request #462 from WeBankFinTech/dev-0.11.0
Browse files Browse the repository at this point in the history
Dev 0.11.0
  • Loading branch information
peacewong authored Jan 19, 2021
2 parents 4ac1a51 + fea04cf commit c5dbcb1
Show file tree
Hide file tree
Showing 240 changed files with 5,417 additions and 412 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.idea
.DS_Store

target/

assembly/target

core/cloudModule/target/
Expand Down Expand Up @@ -65,6 +67,7 @@ ujes/definedEngines/python/entrance/target/
ujes/definedEngines/spark/engine/target/
ujes/definedEngines/spark/enginemanager/target/
ujes/definedEngines/spark/entrance/target/
ujes/definedEngines/presto/entrance/target/
ujes/engine/target/
ujes/enginemanager/target/
ujes/entrance/target/
Expand Down
4 changes: 2 additions & 2 deletions assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis</artifactId>
<version>0.10.0</version>
<relativePath>../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions assembly/public-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
22 changes: 22 additions & 0 deletions assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,28 @@
</includes>
</fileSet>-->

<!-- elasticsearch -->
<fileSet>
<directory>
${project.parent.basedir}/ujes/definedEngines/es/entrance/target/
</directory>
<outputDirectory>share/linkis/ujes/es</outputDirectory>
<includes>
<include>*.zip</include>
</includes>
</fileSet>

<!-- presto -->
<fileSet>
<directory>
${project.parent.basedir}/ujes/definedEngines/presto/entrance/target/
</directory>
<outputDirectory>share/linkis/ujes/presto</outputDirectory>
<includes>
<include>*.zip</include>
</includes>
</fileSet>

<!--resourcemanager-->
<fileSet>
<directory>
Expand Down
4 changes: 2 additions & 2 deletions bml/bml-engine-hook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.webank.wedatasphere.linkis.bml.conf

import com.webank.wedatasphere.linkis.bml.utils.BmlHookUtils
import com.webank.wedatasphere.linkis.common.conf.CommonVars

/**
* created by cooperyang on 2019/9/23
* Description:
*/
object BmlHookConf {
val WORK_DIR_STR = CommonVars("wds.linkis.bml.work.dir", "user.dir")
val WORK_DIR_STR = CommonVars("wds.linkis.bml.work.dir", BmlHookUtils.getCurrentWorkDir)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import java.io.File
import java.util

import com.webank.wedatasphere.linkis.bml.client.{BmlClient, BmlClientFactory}
import com.webank.wedatasphere.linkis.bml.conf.BmlHookConf
import com.webank.wedatasphere.linkis.bml.exception.BmlHookDownloadException
import com.webank.wedatasphere.linkis.bml.utils.BmlHookUtils
import com.webank.wedatasphere.linkis.common.exception.ErrorException
Expand Down Expand Up @@ -42,12 +43,13 @@ class BmlEnginePreExecuteHook extends EnginePreExecuteHook with Logging{
val pathType:String = "file://"

override def callPreExecuteHook(engineExecutorContext: EngineExecutorContext, executeRequest: ExecuteRequest, code: String): String = {
val workDir = BmlHookUtils.getCurrentWorkDir
val workDir = BmlHookConf.WORK_DIR_STR.getValue
val jobId = engineExecutorContext.getJobId
var hookCode = code
executeRequest match {
case resourceExecuteRequest:ResourceExecuteRequest => val resources = resourceExecuteRequest.resources
if (null == resources) return code
resources foreach {
if (null == resources) return hookCode
val resourcePaths = resources map {
case resource:util.Map[String, Object] => val fileName = resource.get(FILE_NAME_STR).toString
val resourceId = resource.get(RESOURCE_ID_STR).toString
val version = resource.get(VERSION_STR).toString
Expand All @@ -65,13 +67,23 @@ class BmlEnginePreExecuteHook extends EnginePreExecuteHook with Logging{
}
if (response.isSuccess){
logger.info(s"for job $jobId resourceId $resourceId version $version download to path $fullPath ok")
fullPath
}else{
logger.warn(s"for job $jobId resourceId $resourceId version $version download to path $fullPath Failed")
null
}
case _ => logger.warn("job resource cannot download")
case _ =>
logger.warn("job resource cannot download")
null
}
hookCode = if (StringUtils.isNotBlank(hookCode)) hookCode else executeRequest.code
hookCode = callResourcesDownloadedHook(resourcePaths.toArray, engineExecutorContext, executeRequest, hookCode)
case _ =>
}
if (StringUtils.isNotBlank(code)) code else executeRequest.code
if (StringUtils.isNotBlank(hookCode)) hookCode else executeRequest.code
}

def callResourcesDownloadedHook(resourcePaths: Array[String], engineExecutorContext: EngineExecutorContext, executeRequest: ExecuteRequest, code: String): String = {
code
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.webank.wedatasphere.linkis.bml.utils

import com.webank.wedatasphere.linkis.common.utils.Utils

/**
* created by cooperyang on 2019/9/24
* Description:
Expand Down
4 changes: 2 additions & 2 deletions bml/bmlclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions bml/bmlcommon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 2 additions & 1 deletion bml/bmlserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bml/bmlserver/pom_k8s.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion conf/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ MDM_PORT=9118
## java application default jvm memory
export SERVER_HEAP_SIZE="512M"

LINKIS_VERSION=0.10.0
LINKIS_VERSION=0.11.0
2 changes: 1 addition & 1 deletion contextservice/cs-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-highavailable/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-listener/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-search/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-server/pom_k8s.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion contextservice/cs-ujes-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
8 changes: 6 additions & 2 deletions core/cloudModule/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -132,6 +132,10 @@
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.0.0.RELEASE</version>
<exclusions>
<exclusion>
<artifactId>jsr311-api</artifactId>
<groupId>javax.ws.rs</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
4 changes: 2 additions & 2 deletions core/cloudMybatis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
Expand Down
4 changes: 2 additions & 2 deletions core/cloudProtocol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ trait ResponseEngine extends RetryableProtocol {
* @param pid
*/
case class ResponseEnginePid(port: Int, pid: String) extends RetryableProtocol
/**
* engine send to engineManager
* @param host
*/
case class ResponseEngineHost(port: Int, host: String) extends RetryableProtocol
/**
* engine send to engineManager
* @param port
Expand Down
4 changes: 2 additions & 2 deletions core/cloudRPC/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private[rpc] class BaseRPCSender extends Sender with Logging {
val msg = RPCProduct.getRPCProduct.toMessage(message)
msg.data("duration", timeout.toMillis)
BaseRPCSender.addInstanceInfo(msg.getData)
val response = getRPC.receiveAndReply(msg)
val response = getRPC.receiveAndReplyInMills(msg)
RPCConsumer.getRPCConsumer.toObject(response)
}

Expand Down
4 changes: 2 additions & 2 deletions core/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.10.0</version>
<relativePath>../../pom.xml</relativePath>
<version>0.11.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Loading

0 comments on commit c5dbcb1

Please sign in to comment.