You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/09/23 02:42:47 UTC

[GitHub] [incubator-seatunnel] lizu18xz opened a new pull request, #2854: [Feature] [Plugin] add spark cache transform

lizu18xz opened a new pull request, #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854

   add spark cache transform


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] lizu18xz commented on pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
lizu18xz commented on PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#issuecomment-1260643831

   > Can you add test case to any IT in `seatunnel-spark-e2e` module
   
   such as  FakeSourceToConsoleIT? add to this class?


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
ashulin commented on code in PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#discussion_r978242219


##########
docs/en/transform/cache.md:
##########
@@ -0,0 +1,57 @@
+# cache
+
+> cache transform plugin
+
+## Description
+
+Supports using Cache in data integration by the transform.
+
+:::tip
+
+This transform **ONLY** supported by Spark.
+
+:::
+
+## Options
+
+| name           | type        | required | default value |
+| -------------- | ----------- | -------- | ------------- |
+| storage_level       | string      | false      | -             |
+
+
+### storage_level [string]
+
+One of the most important capabilities in Spark is persisting (or caching) a dataset in memory across operations. When you persist an RDD, each node stores any partitions of it that it computes in memory and reuses them in other actions on that dataset (or datasets derived from it). This allows future actions to be much faster (often by more than 10x). Caching is a key tool for iterative algorithms and fast interactive use.
+
+
+NONE
+DISK_ONLY
+DISK_ONLY_2
+MEMORY_ONLY
+MEMORY_ONLY_2
+MEMORY_ONLY_SER
+MEMORY_ONLY_SER_2
+MEMORY_AND_DISK
+MEMORY_AND_DISK_2
+MEMORY_AND_DISK_SER
+MEMORY_AND_DISK_SER_2
+OFF_HEAP

Review Comment:
   You can describe their differences, or add a reference link to Spark



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#issuecomment-1299520218

   Can you merge code from dev to retry ci?


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on code in PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#discussion_r979928143


##########
seatunnel-connectors/seatunnel-connectors-spark/pom.xml:
##########
@@ -94,6 +100,11 @@
             <groupId>org.apache.spark</groupId>
             <artifactId>spark-sql_${scala.binary.version}</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.module</groupId>
+            <artifactId>jackson-module-scala_2.11</artifactId>
+            <version>2.12.6</version>

Review Comment:
   version should use parmeter, like ${jackson.scala.module.version}



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] lizu18xz commented on a diff in pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
lizu18xz commented on code in PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#discussion_r978273025


##########
docs/en/transform/cache.md:
##########
@@ -0,0 +1,57 @@
+# cache
+
+> cache transform plugin
+
+## Description
+
+Supports using Cache in data integration by the transform.
+
+:::tip
+
+This transform **ONLY** supported by Spark.
+
+:::
+
+## Options
+
+| name           | type        | required | default value |
+| -------------- | ----------- | -------- | ------------- |
+| storage_level       | string      | false      | -             |
+
+
+### storage_level [string]
+
+One of the most important capabilities in Spark is persisting (or caching) a dataset in memory across operations. When you persist an RDD, each node stores any partitions of it that it computes in memory and reuses them in other actions on that dataset (or datasets derived from it). This allows future actions to be much faster (often by more than 10x). Caching is a key tool for iterative algorithms and fast interactive use.
+
+
+NONE
+DISK_ONLY
+DISK_ONLY_2
+MEMORY_ONLY
+MEMORY_ONLY_2
+MEMORY_ONLY_SER
+MEMORY_ONLY_SER_2
+MEMORY_AND_DISK
+MEMORY_AND_DISK_2
+MEMORY_AND_DISK_SER
+MEMORY_AND_DISK_SER_2
+OFF_HEAP

Review Comment:
   ok,I improve the document



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] EricJoy2048 merged pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
EricJoy2048 merged PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] lizu18xz commented on pull request #2854: [Feature] [Plugin] add spark cache transform

Posted by GitBox <gi...@apache.org>.
lizu18xz commented on PR #2854:
URL: https://github.com/apache/incubator-seatunnel/pull/2854#issuecomment-1321135650

   > 
   
   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: commits-unsubscribe@seatunnel.apache.org

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