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

   ### 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
   
   **Error Describe:
    when i start local task with the cmd "./seatunnel.sh --config 
../config/kafka2hive.conf -e local",an error occured below:
   
   
   ### SeaTunnel Version
   
   2.3.0
   
   ### SeaTunnel Config
   
   ```conf
   env {
     job.mode = "STREAMING"
   }
   
   source {
       Kafka {
              topic = ".*seatunnel*."
             pattern = "true" 
             bootstrap.servers = 
"CNNKGAPT68:9092,CNNKGAPT69:9092,CNNKGAPT70:9092"
             consumer.group = "seatunnel_group"
       }
   }
    
   transform {
   }
    
   sink {
     Hive {
       table_name = "signal_r.ods_api_streaming"
       metastore_uri = "thrift://10.119.169.84:9083"
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./seatunnel.sh --config ../config/kafka2hive.conf -e local
   ```
   
   
   ### Error Exception
   
   ```log
   2023-03-21 20:15:43,739 ERROR 
org.apache.seatunnel.engine.server.task.operation.source.AssignSplitOperation - 
[localhost]:5801 [seatunnel_default_cluster-236694] [5.1] cannot assign 
instance of org.apache.kafka.common.TopicPartition to field 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplit.topicPartition
 of type org.apache.kafka.common.TopicPartition in instance of 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplit
   java.lang.ClassCastException: cannot assign instance of 
org.apache.kafka.common.TopicPartition to field 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplit.topicPartition
 of type org.apache.kafka.common.TopicPartition in instance of 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplit
        at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2301)
 ~[?:1.8.0_362]
        at 
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1431) 
~[?:1.8.0_362]
        at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2436) 
~[?:1.8.0_362]
        at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2354) 
~[?:1.8.0_362]
        at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2212) 
~[?:1.8.0_362]
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1668) 
~[?:1.8.0_362]
        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:2118) 
~[?:1.8.0_362]
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1656) 
~[?:1.8.0_362]
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:502) 
~[?:1.8.0_362]
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:460) 
~[?:1.8.0_362]
        at 
org.apache.seatunnel.common.utils.SerializationUtils.deserialize(SerializationUtils.java:91)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.task.operation.source.AssignSplitOperation.lambda$run$1(AssignSplitOperation.java:57)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.common.utils.RetryUtils.retryWithException(RetryUtils.java:47)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.task.operation.source.AssignSplitOperation.run(AssignSplitOperation.java:54)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.Operation.call(Operation.java:189) 
~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.call(OperationRunnerImpl.java:273)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:248)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:213)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.run(OperationExecutorImpl.java:411)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.runOrExecute(OperationExecutorImpl.java:438)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvokeLocal(Invocation.java:601)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvoke(Invocation.java:580)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke0(Invocation.java:541)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke(Invocation.java:241)
 ~[seatunnel-starter.jar:2.3.0]
        at 
com.hazelcast.spi.impl.operationservice.impl.InvocationBuilderImpl.invoke(InvocationBuilderImpl.java:61)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.utils.NodeEngineUtil.sendOperationToMemberNode(NodeEngineUtil.java:40)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.execution.TaskExecutionContext.sendToMember(TaskExecutionContext.java:43)
 ~[seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.task.context.SeaTunnelSplitEnumeratorContext.assignSplit(SeaTunnelSplitEnumeratorContext.java:55)
 ~[seatunnel-starter.jar:2.3.0]
        at java.util.HashMap.forEach(HashMap.java:1290) [?:1.8.0_362]
        at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplitEnumerator.assignSplit(KafkaSourceSplitEnumerator.java:252)
 [connector-kafka-2.3.0.jar:2.3.0]
        at 
org.apache.seatunnel.connectors.seatunnel.kafka.source.KafkaSourceSplitEnumerator.run(KafkaSourceSplitEnumerator.java:115)
 [connector-kafka-2.3.0.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.task.SourceSplitEnumeratorTask.stateProcess(SourceSplitEnumeratorTask.java:239)
 [seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.task.SourceSplitEnumeratorTask.call(SourceSplitEnumeratorTask.java:124)
 [seatunnel-starter.jar:2.3.0]
        at 
org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:357)
 [seatunnel-starter.jar:2.3.0]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[?:1.8.0_362]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_362]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_362]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_362]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
   2023-03-21 20:15:50,440 INFO  
org.apache.seatunnel.engine.server.CoordinatorService - [localhost]:5801 
[seatunnel_default_cluster-236694] [5.1] 
   ***********************************************
        CoordinatorService Thread Pool Status
   ***********************************************
   activeCount               :                   1
   corePoolSize              :                   0
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   1.8
   
   ### 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