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

   ### 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
   
   Caused by: java.lang.NoSuchMethodError: 
org.apache.seatunnel.format.json.JsonDeserializationSchema.<init>(Lorg/apache/seatunnel/api/table/catalog/CatalogTable;ZZ)V
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createDeserializationSchema(KafkaSourceConfig.java:263)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createConsumerMetadata(KafkaSourceConfig.java:153)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createMapConsumerMetadata(KafkaSourceConfig.java:134)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.<init>(KafkaSourceConfig.java:101)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSource.<init>(KafkaSource.java:55)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceFactory.lambda$createSource$0(KafkaSourceFactory.java:70)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:131)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:91)
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.mode = "cluster"
     parallelism = 3
     job.name = "jobxx"
     job.mode = "STREAMING"
   }
   
   
   source {
     Kafka {
       topic = "device-xxx"
       bootstrap.servers = "172.xx.xxx.xxx:9092"
       consumer.group = "seatunnel2hive"
       format = "json"
       schema = {
         fields = {
         deviceId = "string"
         productToken = "string"
         protocolVersion = "string"
         timestamp = "long"
         }
       }
       result_table_name = "device_xx"
     }
   }
   
   
   transform {
      SQL {
       source_table_name = "device_xx"
       result_table_name = "device_xx_trs"
       query = """
         SELECT 
           id as id,
           token as token,
           tersion as version,
           FROM_UNIXTIME(CAST(timestamp/1000 AS bigint), 'yyyyMMdd') AS dayid
         FROM 
           device_xx
         """
       }
   }
   
   sink {
       HdfsFile {
         fs.defaultFS = "hdfs://xxx"
         path = "/xxx/t_ods_xxx_info"
         hdfs_site_path = "/xxx/hdfs-site.xml"
         file_format_type = "orc"
         sink_columns = ["id","token","version","dayid"]
         is_enable_transaction = true
         have_partition = true
         partition_by = ["dayid"]
         partition_date_format = "yyyyMMdd"
         remote_user = "xxx"
         source_table_name = "device_xxx_trs"
       }
   }
   ```
   
   ### Running Command
   
   ```shell
   nohup sh ./bin/seatunnel.sh --config ./config/kafka.streaming.conf > 
./logs/kafka.streaming.log
   ```
   
   ### Error Exception
   
   ```log
   Caused by: org.apache.seatunnel.api.table.factory.FactoryException: 
ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to 
create a source for identifier 'Kafka'.
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:119)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:68)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:404)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:236)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:123)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:191)
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:165)
           ... 2 more
   Caused by: java.lang.NoSuchMethodError: 
org.apache.seatunnel.format.json.JsonDeserializationSchema.<init>(Lorg/apache/seatunnel/api/table/catalog/CatalogTable;ZZ)V
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createDeserializationSchema(KafkaSourceConfig.java:263)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createConsumerMetadata(KafkaSourceConfig.java:153)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.createMapConsumerMetadata(KafkaSourceConfig.java:134)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceConfig.<init>(KafkaSourceConfig.java:101)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSource.<init>(KafkaSource.java:55)
           at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceFactory.lambda$createSource$0(KafkaSourceFactory.java:70)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:131)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:91)
   ```
   
   ### Zeta or Flink or Spark Version
   
   2.3.9
   
   ### Java or Scala Version
   
   java version "1.8.0_181"
   Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
   Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
   
   ### 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-unsubscr...@seatunnel.apache.org.apache.org

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

Reply via email to