You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/09/18 18:07:24 UTC

[GitHub] [incubator-linkis] Dlimeng opened a new pull request, #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Dlimeng opened a new pull request, #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458

   ### What is the purpose of the change
   Extend linkis  seatunnel
   Fixes  #3260
   
   ### Brief change log
   1.linkis-engineconn-plugins add seatunne
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   1.linkis-metadata-query-server
   loader:MetaClassLoaderManager maps doris  clickhouse
   2.linkis-metadata-query-service-mysql
   doris  clickhouse 
   
   
   
   <!--
   
   Note
   
   1. Mark the PR title as `[WIP] title` until it's ready to be reviewed.
      如果PR还未准备好被review,请在标题上添加[WIP]标识(WIP work in progress)
   
   2. Always add/update tests for any changes unless you have a good reason.
      除非您有充分的理由,否则任何修改都需要添加/更新测试
      
   3. Always update the documentation to reflect the changes made in the PR.
      始终更新文档以反映 PR 中所做的更改  
      
   4. After the PR is submitted, please pay attention to the execution result of git action check. 
      If there is any failure, please adjust it in time
      PR提交后,请关注git action check 执行结果,关键的check失败时,请及时修正
      
   5. Before the pr is merged, if the commit is missing, you can continue to commit the code
       在未合并前,如果提交有遗漏,您可以继续提交代码 
   
   6. After you submit PR, you can add assistant WeChat, the WeChat QR code is 
      https://user-images.githubusercontent.com/7869972/176336986-d6b9be8f-d1d3-45f1-aa45-8e6adf5dd244.png 
      您提交pr后,可以添加助手微信,微信二维码为
      https://user-images.githubusercontent.com/7869972/176336986-d6b9be8f-d1d3-45f1-aa45-8e6adf5dd244.png
   
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] dlimeng commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
dlimeng commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r1014675867


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/seatunnel/core/base/config/ConfigBuilder.java:
##########
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.core.base.config;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.seatunnel.apis.base.env.RuntimeEnv;
+import org.apache.seatunnel.common.config.ConfigRuntimeException;
+import org.apache.seatunnel.core.spark.SparkStarter;
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigFactory;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigRenderOptions;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigResolveOptions;
+
+import java.nio.file.Path;
+
+/**
+ * Used to build the {@link Config} from file.
+ *
+ * @param <ENVIRONMENT> environment type.
+ */
+public class ConfigBuilder<ENVIRONMENT extends RuntimeEnv> {
+
+  private static final Log LOGGER = LogFactory.getLog(SparkStarter.class);

Review Comment:
   ok



##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/seatunnel/core/base/config/PluginFactory.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.core.base.config;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;

Review Comment:
   ok
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] Dlimeng commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
Dlimeng commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r984651457


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/utils/JarLoader.java:
##########
@@ -0,0 +1,169 @@
+/*
+ * Copyright 2019 WeBank
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.client.utils;
+
+import org.apache.commons.lang3.Validate;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.security.AccessControlContext;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+public class JarLoader extends URLClassLoader {
+  private AccessControlContext acc;

Review Comment:
   1



##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/utils/JarLoader.java:
##########
@@ -0,0 +1,169 @@
+/*
+ * Copyright 2019 WeBank
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.client.utils;
+
+import org.apache.commons.lang3.Validate;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.security.AccessControlContext;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+public class JarLoader extends URLClassLoader {
+  private AccessControlContext acc;

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone merged pull request #3458: [Feature][1.3.1] linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
casionone merged PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
casionone commented on PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#issuecomment-1298620043

   ```
   seatunnel-core-flink-2.1.2.jar
   seatunnel-core-flink-sql-2.1.2.jar
   seatunnel-core-spark-2.1.2.jar
   clickhouse-jdbc-0.3.2-patch11.jar
   postgresql-42.3.1.jar 
   ```
   this new dependencies  license need add to  linkis-dist/release-docs/xxxx


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
casionone commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r1010509708


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/seatunnel/core/base/config/ConfigBuilder.java:
##########
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.core.base.config;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.seatunnel.apis.base.env.RuntimeEnv;
+import org.apache.seatunnel.common.config.ConfigRuntimeException;
+import org.apache.seatunnel.core.spark.SparkStarter;
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigFactory;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigRenderOptions;
+import org.apache.seatunnel.shade.com.typesafe.config.ConfigResolveOptions;
+
+import java.nio.file.Path;
+
+/**
+ * Used to build the {@link Config} from file.
+ *
+ * @param <ENVIRONMENT> environment type.
+ */
+public class ConfigBuilder<ENVIRONMENT extends RuntimeEnv> {
+
+  private static final Log LOGGER = LogFactory.getLog(SparkStarter.class);

Review Comment:
   recommend to use slf4j 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] codecov[bot] commented on pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#issuecomment-1250364514

   # [Codecov](https://codecov.io/gh/apache/incubator-linkis/pull/3458?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#3458](https://codecov.io/gh/apache/incubator-linkis/pull/3458?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (4aaa120) into [dev-1.3.1](https://codecov.io/gh/apache/incubator-linkis/commit/26c3398dac5d4335bd2b3dc3aaa3723be7cde42e?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (26c3398) will **increase** coverage by `0.02%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@               Coverage Diff               @@
   ##             dev-1.3.1    #3458      +/-   ##
   ===============================================
   + Coverage        14.49%   14.51%   +0.02%     
   - Complexity        1225     1227       +2     
   ===============================================
     Files              797      797              
     Lines            30531    30531              
     Branches          4553     4553              
   ===============================================
   + Hits              4424     4432       +8     
   + Misses           25456    25448       -8     
     Partials           651      651              
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-linkis/pull/3458?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...r/engineplugin/python/executor/PythonSession.scala](https://codecov.io/gh/apache/incubator-linkis/pull/3458/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bGlua2lzLWVuZ2luZWNvbm4tcGx1Z2lucy9weXRob24vc3JjL21haW4vc2NhbGEvb3JnL2FwYWNoZS9saW5raXMvbWFuYWdlci9lbmdpbmVwbHVnaW4vcHl0aG9uL2V4ZWN1dG9yL1B5dGhvblNlc3Npb24uc2NhbGE=) | `58.91% <0.00%> (+0.49%)` | :arrow_up: |
   | [...s/scheduler/queue/fifoqueue/FIFOUserConsumer.scala](https://codecov.io/gh/apache/incubator-linkis/pull/3458/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bGlua2lzLWNvbW1vbnMvbGlua2lzLXNjaGVkdWxlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2xpbmtpcy9zY2hlZHVsZXIvcXVldWUvZmlmb3F1ZXVlL0ZJRk9Vc2VyQ29uc3VtZXIuc2NhbGE=) | `38.67% <0.00%> (+1.88%)` | :arrow_up: |
   | [...kis/engineplugin/spark/SparkEngineConnPlugin.scala](https://codecov.io/gh/apache/incubator-linkis/pull/3458/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bGlua2lzLWVuZ2luZWNvbm4tcGx1Z2lucy9zcGFyay9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2xpbmtpcy9lbmdpbmVwbHVnaW4vc3BhcmsvU3BhcmtFbmdpbmVDb25uUGx1Z2luLnNjYWxh) | `27.77% <0.00%> (+27.77%)` | :arrow_up: |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] Dlimeng commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
Dlimeng commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r984651457


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/utils/JarLoader.java:
##########
@@ -0,0 +1,169 @@
+/*
+ * Copyright 2019 WeBank
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.client.utils;
+
+import org.apache.commons.lang3.Validate;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.security.AccessControlContext;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+public class JarLoader extends URLClassLoader {
+  private AccessControlContext acc;

Review Comment:
   1



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
casionone commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r973909092


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/utils/JarLoader.java:
##########
@@ -0,0 +1,169 @@
+/*
+ * Copyright 2019 WeBank
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.client.utils;
+
+import org.apache.commons.lang3.Validate;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.security.AccessControlContext;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+public class JarLoader extends URLClassLoader {
+  private AccessControlContext acc;

Review Comment:
   The sqoop engine also with the same java class org.apache.linkis.engineconnplugin.sqoop.client.utils.JarLoader 
   move to the common module and reuse it? 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] Dlimeng commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
Dlimeng commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r996257609


##########
linkis-engineconn-plugins/seatunnel/pom.xml:
##########
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.linkis</groupId>
+    <artifactId>linkis</artifactId>
+    <version>1.3.0</version>
+    <relativePath>../../pom.xml</relativePath>
+  </parent>
+
+  <artifactId>linkis-engineplugin-seatunnel</artifactId>
+  <properties>
+    <maven.compiler.source>8</maven.compiler.source>

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] dlimeng commented on pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
dlimeng commented on PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#issuecomment-1301724816

   > ```
   > seatunnel-core-flink-2.1.2.jar
   > seatunnel-core-flink-sql-2.1.2.jar
   > seatunnel-core-spark-2.1.2.jar
   > clickhouse-jdbc-0.3.2-patch11.jar
   > postgresql-42.3.1.jar 
   > ```
   > 
   > this new dependencies license need add to linkis-dist/release-docs/xxxx
   
   ok


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] peacewong commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
peacewong commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r975395697


##########
linkis-computation-governance/linkis-manager/linkis-label-common/src/main/java/org/apache/linkis/manager/label/conf/LabelCommonConfig.java:
##########
@@ -89,4 +89,7 @@ public class LabelCommonConfig {
 
   public static final CommonVars<String> ELASTICSEARCH_ENGINE_VERSION =
       CommonVars.apply("wds.linkis.elasticsearch.engine.version", "7.6.2");
+
+  public static final CommonVars<String> SEATUNNEL_ENGINE_CONN_VERSION =
+      CommonVars.apply("wds.linkis.seatunnel.engineconn.version", "2.1.2");

Review Comment:
   The newly added parameter suggests removing the wds prefix



##########
linkis-engineconn-plugins/seatunnel/src/main/scala/org/apache/linkis/engineconnplugin/seatunnel/util/SeatunnelUtils.scala:
##########
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.util
+
+import org.apache.linkis.engineconn.acessible.executor.log.LogHelper
+import org.apache.linkis.engineconn.common.conf.EngineConnConf.ENGINE_CONN_LOCAL_PATH_PWD_KEY
+import org.apache.linkis.engineconnplugin.seatunnel.config.SeatunnelSparkEnvConfiguration
+
+import org.apache.commons.io.IOUtils
+import org.apache.commons.logging.Log
+import org.apache.commons.logging.LogFactory
+
+import java.io.{BufferedReader, File, InputStreamReader, PrintWriter}
+
+object SeatunnelUtils {
+  val logger: Log = LogFactory.getLog(getClass)
+  private var process: Process = _
+
+  def localArray(code: String): Array[String] = {
+    Array(SeatunnelSparkEnvConfiguration.LINKIS_SPARK_CONFIG.getValue, generateExecFile(code))
+  }
+
+  def generateExecFile(code: String): String = {
+    val file = new File(
+      System.getenv(ENGINE_CONN_LOCAL_PATH_PWD_KEY.getValue) + "/config_" + System
+        .currentTimeMillis()
+    )
+    val writer = new PrintWriter(file)
+    writer.write(code)
+    writer.close()
+    file.getAbsolutePath
+  }
+
+  def executeLine(code: String): Int = {
+    var bufferedReader: BufferedReader = null
+    var errorsReader: BufferedReader = null
+    try {
+      val processBuilder: ProcessBuilder = new ProcessBuilder(generateRunCode(code): _*)
+      process = processBuilder.start()
+      bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream))
+      errorsReader = new BufferedReader(new InputStreamReader(process.getErrorStream))

Review Comment:
   error does not seem to be used, it is recommended to refer to org.apache.linkis.manager.engineplugin.shell.executor.ReaderThread of shell ec



##########
linkis-engineconn-plugins/seatunnel/src/main/scala/org/apache/linkis/engineconnplugin/seatunnel/util/SeatunnelUtils.scala:
##########
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.util
+
+import org.apache.linkis.engineconn.acessible.executor.log.LogHelper
+import org.apache.linkis.engineconn.common.conf.EngineConnConf.ENGINE_CONN_LOCAL_PATH_PWD_KEY
+import org.apache.linkis.engineconnplugin.seatunnel.config.SeatunnelSparkEnvConfiguration
+
+import org.apache.commons.io.IOUtils
+import org.apache.commons.logging.Log
+import org.apache.commons.logging.LogFactory
+
+import java.io.{BufferedReader, File, InputStreamReader, PrintWriter}
+
+object SeatunnelUtils {
+  val logger: Log = LogFactory.getLog(getClass)

Review Comment:
   slf4j is recommended



##########
linkis-engineconn-plugins/seatunnel/src/main/scala/org/apache/linkis/engineconnplugin/seatunnel/SeatunnelEngineConnPlugin.scala:
##########
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel
+
+import org.apache.linkis.engineconnplugin.seatunnel.factory.SeatunnelEngineConnFactory
+import org.apache.linkis.engineconnplugin.seatunnel.launch.SeatunnelEngineConnLaunchBuilder
+import org.apache.linkis.manager.engineplugin.common.EngineConnPlugin
+import org.apache.linkis.manager.engineplugin.common.creation.EngineConnFactory
+import org.apache.linkis.manager.engineplugin.common.launch.EngineConnLaunchBuilder
+import org.apache.linkis.manager.engineplugin.common.resource.{
+  EngineResourceFactory,
+  GenericEngineResourceFactory
+}
+import org.apache.linkis.manager.label.entity.Label
+
+class SeatunnelEngineConnPlugin extends EngineConnPlugin {
+  private val EP_CONTEXT_CONSTRUCTOR_LOCK = new Object()
+  private var engineResourceFactory: EngineResourceFactory = _
+  private var engineConnLaunchBuilder: EngineConnLaunchBuilder = _
+  private var engineConnFactory: EngineConnFactory = _
+  override def init(params: java.util.Map[String, Any]): Unit = {}
+
+  override def getEngineResourceFactory: EngineResourceFactory = {
+
+    EP_CONTEXT_CONSTRUCTOR_LOCK.synchronized {

Review Comment:
   It is recommended to use a different lock object



##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/exception/JobExecutionException.java:
##########
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2019 WeBank
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.linkis.engineconnplugin.seatunnel.client.exception;
+
+import org.apache.linkis.common.exception.ErrorException;
+
+public class JobExecutionException extends ErrorException {
+  private static final long serialVersionUID = 1L;
+
+  public static final int ERROR_CODE = 16023;

Review Comment:
   It is recommended to use exception enumeration, you can refer to JDBCErrorCodeSummary



##########
linkis-engineconn-plugins/seatunnel/pom.xml:
##########
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.linkis</groupId>
+    <artifactId>linkis</artifactId>
+    <version>1.3.0</version>
+    <relativePath>../../pom.xml</relativePath>
+  </parent>
+
+  <artifactId>linkis-engineplugin-seatunnel</artifactId>
+  <properties>
+    <maven.compiler.source>8</maven.compiler.source>

Review Comment:
   can remove



##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/linkis/engineconnplugin/seatunnel/client/LinkisSeatunnelFlinkClient.java:
##########
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2019 WeBank

Review Comment:
   License header is wrong



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] Dlimeng commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
Dlimeng commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r996257585


##########
linkis-computation-governance/linkis-manager/linkis-label-common/src/main/java/org/apache/linkis/manager/label/conf/LabelCommonConfig.java:
##########
@@ -89,4 +89,7 @@ public class LabelCommonConfig {
 
   public static final CommonVars<String> ELASTICSEARCH_ENGINE_VERSION =
       CommonVars.apply("wds.linkis.elasticsearch.engine.version", "7.6.2");
+
+  public static final CommonVars<String> SEATUNNEL_ENGINE_CONN_VERSION =
+      CommonVars.apply("wds.linkis.seatunnel.engineconn.version", "2.1.2");

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on a diff in pull request #3458: [Feature] Dev 1.3.1 linkis linkis-engineconn-plugins add seatunnel

Posted by GitBox <gi...@apache.org>.
casionone commented on code in PR #3458:
URL: https://github.com/apache/incubator-linkis/pull/3458#discussion_r1010510219


##########
linkis-engineconn-plugins/seatunnel/src/main/java/org/apache/seatunnel/core/base/config/PluginFactory.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.core.base.config;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;

Review Comment:
   recommend to use slf4j 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org