You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "youshaojun (via GitHub)" <gi...@apache.org> on 2024/09/14 04:23:39 UTC

[I] [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error [seatunnel]

youshaojun opened a new issue, #7664:
URL: https://github.com/apache/seatunnel/issues/7664

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   I used redis 5.0.8-alpine  running the redisSource task, but reports a syntax error
   
   ### SeaTunnel Version
   
   2.3.7
   
   ### SeaTunnel Config
   
   ```conf
   {
     "env": {
       "job.mode": "BATCH",
       "execution.parallelism": 1
     },
     "source": [
       {
         "schema": {
           "columns": [
             {
               "name": "id",
               "type": "STRING"
             },
             {
               "name": "name",
               "type": "STRING"
             },
             {
               "name": "address",
               "type": "STRING"
             },
             {
               "name": "create_time",
               "type": "STRING"
             },
             {
               "name": "update_time",
               "type": "STRING"
             }
           ]
         },
         "db_num": 1,
         "port": "6379",
         "auth": "123456Abc#",
         "keys": "SeaTunnel:test",
         "host": "10.0.0.52",
         "data_type": "key",
         "format": "json",
         "plugin_name": "Redis"
       }
     ],
     "sink": [
       {
         "plugin_name": "Console"
       }
     ]
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh -c config/redis2Console.json -m local
   ```
   
   
   ### Error Exception
   
   ```log
   2024-09-14 11:45:25,524 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
   ===============================================================================
   
   
   
   Exception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
   	at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:211)
   	at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
   	at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: org.apache.seatunnel.engine.common.exception.SeaTunnelEngineException: redis.clients.jedis.exceptions.JedisDataException: ERR syntax error
   	at redis.clients.jedis.Protocol.processError(Protocol.java:96)
   	at redis.clients.jedis.Protocol.process(Protocol.java:137)
   	at redis.clients.jedis.Protocol.read(Protocol.java:192)
   	at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:316)
   	at redis.clients.jedis.Connection.getOne(Connection.java:298)
   	at redis.clients.jedis.Connection.executeCommand(Connection.java:123)
   	at redis.clients.jedis.Jedis.scan(Jedis.java:8541)
   	at org.apache.seatunnel.connectors.seatunnel.redis.client.RedisClient.scanKeys(RedisClient.java:50)
   	at org.apache.seatunnel.connectors.seatunnel.redis.source.RedisSourceReader.internalPollNext(RedisSourceReader.java:80)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.AbstractSingleSplitReader.pollNext(AbstractSingleSplitReader.java:39)
   	at org.apache.seatunnel.engine.server.task.flow.SourceFlowLifeCycle.collect(SourceFlowLifeCycle.java:156)
   	at org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.collect(SourceSeaTunnelTask.java:127)
   	at org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:168)
   	at org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.call(SourceSeaTunnelTask.java:132)
   	at org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:717)
   	at org.apache.seatunnel.engine.server.TaskExecutionService$NamedTaskWrapper.run(TaskExecutionService.java:1039)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   
   	at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:203)
   	... 2 more
   2024-09-14 11:45:25,528 INFO  [s.c.s.s.c.ClientExecuteCommand] [ForkJoinPool.commonPool-worker-2] - run shutdown hook because get close signal
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.apache.org

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


Re: [I] [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7664:
URL: https://github.com/apache/seatunnel/issues/7664#issuecomment-2412583569

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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


Re: [I] [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error [seatunnel]

Posted by "FuYouJ (via GitHub)" <gi...@apache.org>.
FuYouJ commented on issue #7664:
URL: https://github.com/apache/seatunnel/issues/7664#issuecomment-2350853428

   After my verification, redis5 does not support specifying types when scanning, today, I will fix this issue
   ![QQ_1726292384080](https://github.com/user-attachments/assets/4046e148-61e0-499c-85bc-553deac721df)
   ![QQ_1726292410304](https://github.com/user-attachments/assets/ef7ea885-5ada-4457-bbb0-68762f9807d7)
   


-- 
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


Re: [I] [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7664:
URL: https://github.com/apache/seatunnel/issues/7664#issuecomment-2427978394

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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


Re: [I] [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7664: [Bug] [seatunnel-connectors-v2] running the redisSource task, redis5.0.8-alpine reports a syntax error
URL: https://github.com/apache/seatunnel/issues/7664


-- 
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