[ 
https://issues.apache.org/jira/browse/HUDI-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403615#comment-17403615
 ] 

ASF GitHub Bot commented on HUDI-2320:
--------------------------------------

dongkelun commented on a change in pull request #3502:
URL: https://github.com/apache/hudi/pull/3502#discussion_r694591562



##########
File path: hudi-utilities/pom.xml
##########
@@ -254,7 +254,7 @@
     <dependency>
       <groupId>com.twitter</groupId>
       <artifactId>bijection-avro_${scala.binary.version}</artifactId>
-      <version>0.9.3</version>
+      <version>0.9.7</version>

Review comment:
       Hello, if we use version 0.9.3, when we use recordinjection.convert, it 
will throw an exception:
   ```
   Exception in thread "main" java.io.FileNotFoundException: 
\Users\pnarang\workspace\bijection\bijection-avro\target\scala-2.11\scoverage-data\scoverage.measurements.
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileWriter.<init>(FileWriter.java:107)
        at scoverage.Invoker$$anonfun$1.apply(Invoker.scala:42)
        at scoverage.Invoker$$anonfun$1.apply(Invoker.scala:42)
        at 
scala.collection.concurrent.TrieMap.getOrElseUpdate(TrieMap.scala:901)
        at scoverage.Invoker$.invoked(Invoker.scala:42)
        at 
com.twitter.bijection.avro.GenericAvroCodecs$.toBinary(AvroCodecs.scala:222)
   ```
   I think this is because scalac-scoverage-runtime is used in the source code 
of version 0.9.3,it  may be a bug in this version.When I upgrade the version to 
0.9.7, and it is the same as the version in hudi-flink, it will not throw the 
above exception
   




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


> Add support ByteArrayDeserializer in AvroKafkaSource
> ----------------------------------------------------
>
>                 Key: HUDI-2320
>                 URL: https://issues.apache.org/jira/browse/HUDI-2320
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: DeltaStreamer
>            Reporter: 董可伦
>            Assignee: 董可伦
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>
> When the 'value.serializer' of Kafka Avro Producer is 
> 'org.apache.kafka.common.serialization.ByteArraySerializer',Use the following 
> configuration
> {code:java}
> --source-class org.apache.hudi.utilities.sources.AvroKafkaSource \
> --schemaprovider-class 
> org.apache.hudi.utilities.schema.JdbcbasedSchemaProvider \
> --hoodie-conf 
> "hoodie.deltastreamer.source.kafka.value.deserializer.class=org.apache.kafka.common.serialization.ByteArrayDeserializer"
> {code}
> For now,It will throw an exception::
> {code:java}
> java.lang.ClassCastException: [B cannot be cast to 
> org.apache.avro.generic.GenericRecord{code}
> After support ByteArrayDeserializer,Use the configuration above,It works 
> properly.And there is no need to provide 'schema.registry.url',For example, 
> we can use the JdbcbasedSchemaProvider to get the sourceSchema



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to