Pavan792reddy opened a new issue, #11275: URL: https://github.com/apache/hudi/issues/11275
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** A clear and concise description of the problem. **To Reproduce** Steps to reproduce the behavior: 1. 2. 3. 4. **Expected behavior** A clear and concise description of what you expected to happen. **Environment Description** * Hudi version :0.14 * Spark version :3.3.2 * Hive version : * Hadoop version : * Storage (HDFS/S3/GCS..) :GCS * Running on Docker? (yes/no) : NO **Additional context** Add any other context about the problem here. **Stacktrace** ```Add the stacktrace of the error.``` spark-submit --master 'local[*]' --deploy-mode client --packages 'org.apache.hudi:hudi-spark3.1-bundle_2.12:0.14.1,io.streamnative.connectors:pulsar-spark-connector_2.12:3.2.0.2' --repositories https://repo.maven.apache.org/maven2 --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' --conf 'spark.sql.catalog.spark_catalog=org.apache.spark.sql.hudi.catalog.HoodieCatalog' --conf 'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension' --jars '/home/pavankumar_reddy/hudi-spark3.1-bundle_2.12-0.14.1.jar,/home/pavankumar_reddy/hudi-utilities_2.12-0.14.1.jar' --class org.apache.hudi.utilities.streamer.HoodieStreamer ls /home/pavankumar_reddy/hudi-utilities-slim-bundle_2.12-0.14.1.jar --source-class org.apache.hudi.utilities.sources.PulsarSource --source-ordering-field when --target-base-path gs://pulsarstreamer-test/hudi_data/avroschema_stream --target-table avroschema_stre --hoodie-conf hoodie.datasource.writ e.recordkey.field=id --hoodie-conf hoodie.datasource.write.partitionpath.field=id --table-type COPY_ON_WRITE --op UPSERT --hoodie-conf hoodie.datasource.write.keygenerator.class=org.apache.hudi.keygen.SimpleKeyGenerator --hoodie-conf hoodie.streamer.source.pulsar.topic=persistent://mytenant/mynamespace/avroschema --hoodie-conf hoodie.streamer.source.pulsar.endpoint.service.url=pulsar://localhost:6650 --hoodie-conf hoodie.streamer.source.pulsar.endpoint.admin.url=pulsar://localhost:8080 --continuous Error:- 24/05/22 13:00:51 INFO org.apache.pulsar.client.impl.ConnectionPool: [[id: 0x6e32bfc9, L:/10.128.0.70:55298 - R:10.128.0.40/10.128.0.40:6650]] Connected to server 24/05/22 13:00:51 INFO org.apache.pulsar.client.impl.ClientCnx: [id: 0x6e32bfc9, L:/10.128.0.70:55298 - R:10.128.0.40/10.128.0.40:6650] Connected through proxy to target broker at localhost:6650 24/05/22 13:00:51 INFO org.apache.pulsar.client.impl.ConsumerImpl: [persistent://mytenant/mynamespace/avroschema][spark-pulsar-batch-97273cbf-ccc7-4e63-9c0c-60642c1ff1ed-persistent://mytenant/mynamespace/avroschema] Subscribing to topic on cnx [id: 0x6e32bfc9, L:/10.128.0.70:55298 - R:10.128.0.40/10.128.0.40:6650], consumerId 0 24/05/22 13:00:51 INFO org.apache.pulsar.client.impl.ConsumerImpl: [persistent://mytenant/mynamespace/avroschema][spark-pulsar-batch-97273cbf-ccc7-4e63-9c0c-60642c1ff1ed-persistent://mytenant/mynamespace/avroschema] Subscribed to topic on 10.128.0.40/10.128.0.40:6650 -- consumer: 0 24/05/22 13:00:51 ERROR org.apache.hudi.utilities.streamer.HoodieStreamer: Shutting down delta-sync due to exception java.lang.UnsupportedOperationException: MessageId is null at org.apache.pulsar.client.impl.MessageIdImpl.compareTo(MessageIdImpl.java:214) at org.apache.pulsar.client.impl.MessageIdImpl.compareTo(MessageIdImpl.java:32) at org.apache.pulsar.client.impl.ConsumerImpl.hasMoreMessages(ConsumerImpl.java:2291) at org.apache.pulsar.client.impl.ConsumerImpl.hasMessageAvailableAsync(ConsumerImpl.java:2237) at org.apache.pulsar.client.impl.ConsumerImpl.hasMessageAvailable(ConsumerImpl.java:2181) at org.apache.spark.sql.pulsar.PulsarHelper.getUserProvidedMessageId(PulsarHelper.scala:451) at org.apache.spark.sql.pulsar.PulsarHelper.$anonfun$fetchCurrentOffsets$1(PulsarHelper.scala:415) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286) at scala.collection.immutable.Map$Map1.foreach(Map.scala:193) at scala.collection.TraversableLike.map(TraversableLike.scala:286) at scala.collection.TraversableLike.map$(TraversableLike.scala:279) at scala.collection.AbstractTraversable.map(Traversable.scala:108) at org.apache.spark.sql.pulsar.PulsarHelper.fetchCurrentOffsets(PulsarHelper.scala:408) at org.apache.spark.sql.pulsar.PulsarHelper.actualOffsets(PulsarHelper.scala:398) at org.apache.spark.sql.pulsar.PulsarProvider.$anonfun$createRelation$2(PulsarProvider.scala:143) at org.apache.spark.util.Utils$.tryWithResource(Utils.scala:2622) at org.apache.spark.sql.pulsar.PulsarProvider.createRelation(PulsarProvider.scala:136) at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:355) at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:325) at org.apache.spark.sql.DataFrameReader.$anonfun$load$3(DataFrameReader.scala:307) at scala.Option.getOrElse(Option.scala:189) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:307) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:225) at org.apache.hudi.utilities.sources.PulsarSource.fetchNextBatch(PulsarSource.java:131) at org.apache.hudi.utilities.sources.RowSource.fetchNewData(RowSource.java:44) at org.apache.hudi.utilities.sources.Source.fetchNext(Source.java:76) at org.apache.hudi.utilities.streamer.SourceFormatAdapter.fetchNewDataInAvroFormat(SourceFormatAdapter.java:161) at org.apache.hudi.utilities.streamer.StreamSync.fetchNextBatchFromSource(StreamSync.java:629) at org.apache.hudi.utilities.streamer.StreamSync.fetchFromSourceAndPrepareRecords(StreamSync.java:525) at org.apache.hudi.utilities.streamer.StreamSync.readFromSource(StreamSync.java:498) at org.apache.hudi.utilities.streamer.StreamSync.syncOnce(StreamSync.java:404) at org.apache.hudi.utilities.streamer.HoodieStreamer$StreamSyncService.lambda$startService$1(HoodieStreamer.java:767) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) 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:750) 24/05/22 13:00:51 INFO org.apache.hudi.utilities.streamer.HoodieStreamer: Delta Sync shutdown. Error ?true 24/05/22 13:00:51 INFO org.apache.hudi.utilities.streamer.HoodieStreamer: Ingestion completed. Has error: true 24/05/22 13:00:51 ERROR org.apache.hudi.async.HoodieAsyncService: Service shutdown with error `java.util.concurrent.ExecutionException: org.apache.hudi.exception.HoodieException: MessageId is null` at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908) at org.apache.hudi.async.HoodieAsyncService.waitForShutdown(HoodieAsyncService.java:103) at org.apache.hudi.utilities.ingestion.HoodieIngestionService.startIngestion(HoodieIngestionService.java:65) at org.apache.hudi.common.util.Option.ifPresent(Option.java:97) the messageid is generating from the pulsar topic but it was generating as __messageId| not the MessageId , -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
