Skip to content

Commit

Permalink
[HUDI-8616] DataHub meta sync improvements (#12456)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomezvillamor authored Dec 18, 2024
1 parent 63e014a commit 3cb874f
Show file tree
Hide file tree
Showing 12 changed files with 891 additions and 129 deletions.
20 changes: 18 additions & 2 deletions hudi-sync/hudi-datahub-sync/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
<packaging>jar</packaging>

<properties>
<datahub.version>0.8.45</datahub.version>
<datahub.version>0.15.0rc20</datahub.version>
<httpasync.version>4.1.5</httpasync.version>
</properties>

<dependencies>
<dependency>
<groupId>io.acryl</groupId>
<artifactId>datahub-client</artifactId>
<artifactId>datahub-client-java8</artifactId>
<version>${datahub.version}</version>
</dependency>

Expand Down Expand Up @@ -85,6 +85,14 @@
<version>${project.version}</version>
</dependency>

<!-- Hadoop to extract Properties -->
<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-hadoop-mr</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

<!-- Testing -->
<dependency>
<groupId>org.apache.hudi</groupId>
Expand Down Expand Up @@ -113,6 +121,14 @@
<artifactId>kryo-shaded</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-hive-sync</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
/**
* Handle responses to requests to Datahub Metastore. Just logs them.
*/
public class DatahubResponseLogger implements Callback {
private static final Logger LOG = LoggerFactory.getLogger(DatahubResponseLogger.class);
public class DataHubResponseLogger implements Callback {
private static final Logger LOG = LoggerFactory.getLogger(DataHubResponseLogger.class);

@Override
public void onCompletion(MetadataWriteResponse response) {
LOG.info("Completed Datahub RestEmitter request. "
LOG.info("Completed DataHub RestEmitter request. "
+ "Status: " + (response.isSuccess() ? " succeeded" : " failed"));
if (!response.isSuccess()) {
LOG.error("Request failed. " + response);
Expand Down
Loading

0 comments on commit 3cb874f

Please sign in to comment.