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/28 06:38:42 UTC

[GitHub] [incubator-seatunnel] ashulin opened a new issue, #2929: [Bug] [Module Name] Bug title

ashulin opened a new issue, #2929:
URL: https://github.com/apache/incubator-seatunnel/issues/2929

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   `json-format` conflicts with the Jackson version of Spark-2.4.3
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   env {
       execution.parallelism = 1
       job.mode = "BATCH"
   
       #spark config
       spark.app.name = "SeaTunnel"
       spark.executor.instances = 2
       spark.executor.cores = 1
       spark.executor.memory = "1g"
       spark.master = local
   }
   
   source {
       Redis {
           host = "redis-e2e"
           port = 6379
           auth = "SeaTunnel"
           keys = "key_test*"
           data_type = key
       }
   }
   
   transform {
   }
   
   sink {
       Redis {
           host = "redis-e2e"
           port = 6379
           auth = "SeaTunnel"
           key = "key_list"
           data_type = list
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   -
   ```
   
   
   ### Error Exception
   
   ```log
   Error: Exception in thread "main" java.lang.NoSuchFieldError: ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS
   	at com.fasterxml.jackson.core.json.JsonReadFeature.<clinit>(JsonReadFeature.java:121)
   	at org.apache.seatunnel.format.json.JsonDeserializationSchema.<init>(JsonDeserializationSchema.java:84)
   	at org.apache.seatunnel.connectors.seatunnel.redis.source.RedisSource.prepare(RedisSource.java:74)
   	at org.apache.seatunnel.core.starter.spark.execution.SourceExecuteProcessor.initializePlugins(SourceExecuteProcessor.java:78)
   	at org.apache.seatunnel.core.starter.spark.execution.AbstractPluginExecuteProcessor.<init>(AbstractPluginExecuteProcessor.java:49)
   	at org.apache.seatunnel.core.starter.spark.execution.SourceExecuteProcessor.<init>(SourceExecuteProcessor.java:49)
   	at org.apache.seatunnel.core.starter.spark.execution.SparkExecution.<init>(SparkExecution.java:48)
   	at org.apache.seatunnel.core.starter.spark.command.SparkApiTaskExecuteCommand.execute(SparkApiTaskExecuteCommand.java:53)
   	at org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:40)
   	at org.apache.seatunnel.core.starter.spark.SeatunnelSpark.main(SeatunnelSpark.java:34)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
   	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:849)
   	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:167)
   	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:195)
   	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
   	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:924)
   	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:933)
   	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   ```
   
   
   ### Flink or Spark Version
   
   Spark 2.4.3
   
   ### Java or Scala Version
   
   Java 8/11
   
   ### Screenshots
   
   ![image](https://user-images.githubusercontent.com/36807946/192706003-39c3d726-1e38-489f-a06c-82083b877bc3.png)
   
   
   ### 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


[GitHub] [incubator-seatunnel] hailin0 commented on issue #2929: [Bug] [Format][JSON] json-format conflicts with the Jackson version of Spark-2.4.3

Posted by GitBox <gi...@apache.org>.
hailin0 commented on issue #2929:
URL: https://github.com/apache/incubator-seatunnel/issues/2929#issuecomment-1260657097

   spark-core_2.11/2.4.6 depends on jackson [2.6.7.1](https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.7.1)
   
   jackson 2.6.7.1 Incompatible seatunnel-format-json jackson-2.12


-- 
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 issue #2929: [Bug] [Format][JSON] json-format conflicts with the Jackson version of Spark-2.4.3

Posted by GitBox <gi...@apache.org>.
hailin0 commented on issue #2929:
URL: https://github.com/apache/incubator-seatunnel/issues/2929#issuecomment-1260661204

   <img width="1118" alt="image" src="https://user-images.githubusercontent.com/14371345/192747786-3873083f-a583-4645-aff9-ef14e3ba9b0c.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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] ashulin closed issue #2929: [Bug] [Format][JSON] json-format conflicts with the Jackson version of Spark-2.4.3

Posted by GitBox <gi...@apache.org>.
ashulin closed issue #2929: [Bug] [Format][JSON]  json-format conflicts with the Jackson version of Spark-2.4.3
URL: https://github.com/apache/incubator-seatunnel/issues/2929


-- 
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 issue #2929: [Bug] [Format][JSON] json-format conflicts with the Jackson version of Spark-2.4.3

Posted by GitBox <gi...@apache.org>.
hailin0 commented on issue #2929:
URL: https://github.com/apache/incubator-seatunnel/issues/2929#issuecomment-1260659852

   shade jackson package into `seatunnel-format-json`


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