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/01 00:55:56 UTC
[GitHub] [incubator-seatunnel] shangeyao opened a new pull request, #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
shangeyao opened a new pull request, #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587
## Purpose of this pull request
close #2582
--
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] hailin0 commented on pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
hailin0 commented on PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#issuecomment-1233685114
> Can you add e2e-testcase & update docs?
Testcase reference #2429
--
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 commented on pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
EricJoy2048 commented on PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#issuecomment-1277058583
Since this pr has not been updated for too long, I will close it. If necessary, please reopen 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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] shangeyao commented on pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
shangeyao commented on PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#issuecomment-1233773916
> > Can you add e2e-testcase & update docs?
>
> Testcase reference #2429
I tried it, please review again.
--
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] hailin0 commented on a diff in pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
hailin0 commented on code in PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#discussion_r983040577
##########
seatunnel-e2e/seatunnel-spark-e2e/src/test/resources/redis/fakesource_to_redis.conf:
##########
@@ -0,0 +1,61 @@
+#
+# 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.
+#
+######
+###### This config file is a demonstration of streaming processing in seatunnel config
+######
+
+env {
+ spark.app.name = "SeaTunnel"
+ spark.executor.instances = 2
+ spark.executor.cores = 1
+ spark.executor.memory = "1g"
+ spark.master = local
+}
+
+source {
+ # This is a example source plugin **only for test and demonstrate the feature source plugin**
+ Fake {
+ result_table_name = "my_dataset"
+ schema = {
+ fields {
+ key = "string"
+ hash_key = "string"
+ item = "string"
+ }
+ }
+ }
+
+ # If you would like to get more information about how to configure seatunnel and see full list of source plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/source-plugins/Fake
+}
+
+transform {
+ # If you would like to get more information about how to configure seatunnel and see full list of transform plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/transform-plugins/Sql
+}
+
+sink {
+ redis {
+ host = "localhost"
Review Comment:
```suggestion
host = "spark_e2e_redis"
```
--
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] hailin0 commented on a diff in pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
hailin0 commented on code in PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#discussion_r983040849
##########
seatunnel-e2e/seatunnel-spark-e2e/src/test/resources/redis/fakesource_to_redis.conf:
##########
@@ -0,0 +1,61 @@
+#
+# 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.
+#
+######
+###### This config file is a demonstration of streaming processing in seatunnel config
+######
+
+env {
+ spark.app.name = "SeaTunnel"
+ spark.executor.instances = 2
+ spark.executor.cores = 1
+ spark.executor.memory = "1g"
+ spark.master = local
+}
+
+source {
+ # This is a example source plugin **only for test and demonstrate the feature source plugin**
+ Fake {
+ result_table_name = "my_dataset"
+ schema = {
+ fields {
+ key = "string"
+ hash_key = "string"
+ item = "string"
+ }
+ }
+ }
+
+ # If you would like to get more information about how to configure seatunnel and see full list of source plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/source-plugins/Fake
+}
+
+transform {
+ # If you would like to get more information about how to configure seatunnel and see full list of transform plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/transform-plugins/Sql
+}
+
+sink {
+ redis {
+ host = "localhost"
Review Comment:
```suggestion
host = "spark_e2e_redis"
```
--
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 closed pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
EricJoy2048 closed pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
URL: https://github.com/apache/incubator-seatunnel/pull/2587
--
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] shangeyao commented on pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
shangeyao commented on PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#issuecomment-1233673416
> Can you add e2e-testcase & update docs?
I will complete 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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] hailin0 commented on a diff in pull request #2587: [Feature-2582][Connector] Add Hashes && Lists in Redis Sink
Posted by GitBox <gi...@apache.org>.
hailin0 commented on code in PR #2587:
URL: https://github.com/apache/incubator-seatunnel/pull/2587#discussion_r961270246
##########
seatunnel-e2e/seatunnel-spark-e2e/src/test/resources/redis/fakesource_to_redis.conf:
##########
@@ -0,0 +1,61 @@
+#
+# 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.
+#
+######
+###### This config file is a demonstration of streaming processing in seatunnel config
+######
+
+env {
+ spark.app.name = "SeaTunnel"
+ spark.executor.instances = 2
+ spark.executor.cores = 1
+ spark.executor.memory = "1g"
+ spark.master = local
+}
+
+source {
+ # This is a example source plugin **only for test and demonstrate the feature source plugin**
+ Fake {
+ result_table_name = "my_dataset"
+ schema = {
+ fields {
+ key = "string"
+ hash_key = "string"
+ item = "string"
+ }
+ }
+ }
+
+ # If you would like to get more information about how to configure seatunnel and see full list of source plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/source-plugins/Fake
+}
+
+transform {
+ # If you would like to get more information about how to configure seatunnel and see full list of transform plugins,
+ # please go to https://seatunnel.apache.org/docs/flink/configuration/transform-plugins/Sql
+}
+
+sink {
+ redis {
+ host = "localhost"
Review Comment:
Connect to redis-server you started in testcase?
##########
seatunnel-e2e/seatunnel-spark-e2e/src/test/java/org/apache/seatunnel/e2e/spark/redis/FakeSourceToRedisIT.java:
##########
@@ -0,0 +1,35 @@
+/*
+ * 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.e2e.spark.redis;
+
+import org.apache.seatunnel.e2e.spark.SparkContainer;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.testcontainers.containers.Container;
+
+import java.io.IOException;
+
+public class FakeSourceToRedisIT extends SparkContainer {
+
+ @Test
+ public void testFakeSourceToRedisSink() throws IOException, InterruptedException {
+ Container.ExecResult execResult = executeSeaTunnelSparkJob("/jdbc/fakesource_to_redis.conf");
Review Comment:
reference
https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-e2e/seatunnel-spark-connector-v2-e2e/src/test/java/org/apache/seatunnel/e2e/spark/v2/redis/RedisIT.java#L51
start redis-server in testcase?
--
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