Hello Team, This is regarding Java client to publi...
# troubleshoot
e
Hello Team, This is regarding Java client to publish MCP topics from the Kafka. we are migrating from MCE topics to MCP topics. we are on version LDH version 0.8.26. I am getting deseralization error at the LDH side while publishing the topic(MCP) from the Java. After debugging the issue: deserialization error occurs at the GenericAspect.value property. it throws a deserialization error and return a ByteString hash value. ByteString type is used at the LDH while ingesting the mcp at the entityclient (Rest service) . I tried to send string but it is complex string so i wanted to send it as a byte form Any suggestion would be helpful : i have tried below methods; Methods used: aspectValue.getBytes(StandardCharsets.UTF_8); Base64.getDecoder().decode(aspectValue); Any suggestion would be really helpful.
e
Just to understand a bit better. What is LDH? In DataHub, this util contains the functions needed to serialize and deserialize the generic aspect object into a record template. https://github.com/datahub-project/datahub/blob/master/metadata-utils/src/main/java/com/linkedin/metadata/utils/GenericRecordUtils.java#L49 Hoping this helps. To look at the string version of the generic aspect, you would run this function https://github.com/datahub-project/datahub/blob/master/metadata-utils/src/main/java/com/linkedin/metadata/utils/GenericRecordUtils.java#L23 and then print toString
👍 1
e
LDH is datahub Dexter, thanks for the suggestion , i will try this function.