Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions inlong-sort/sort-connectors/hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@
<include>io.netty:netty-all</include>
<include>com.google.protobuf:*</include>
<include>io.dropwizard.metrics:metrics-core</include>
<include>com.amazonaws:*</include>
<include>com.fasterxml.jackson.core:*</include>
<include>commons-logging:commons-logging</include>
<include>org.apache.httpcomponents:*</include>
<include>software.amazon.ion:*</include>
<include>joda-time:*</include>
</includes>
<excludes>
<exclude>org.apache.hbase:hbase-metrics*</exclude>
Expand Down Expand Up @@ -178,6 +184,34 @@
<exclude>org.apache.hadoop.hbase.codec.*</exclude>
</excludes>
</relocation>
<relocation>
<pattern>com.amazonaws</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.com.amazonaws</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson.core</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.com.fasterxml.jackson.core</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.logging</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.org.apache.commons.logging</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.logging</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.org.apache.commons.logging</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.org.apache.http</shadedPattern>
</relocation>
<relocation>
<pattern>software.amazon.ion</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.software.amazon.ion</shadedPattern>
</relocation>
<relocation>
<pattern>org.joda.time</pattern>
<shadedPattern>org.apache.inlong.sort.hbase.shaded.org.joda.time</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,16 @@ public void invoke(T value, Context context) {
LOGGER.warn("Dirty sink failed", ex);
}
}
return;
}
try {
mutator.mutate(mutation);
} catch (Exception e) {
failureThrowable.compareAndSet(null, e);
}
} else {
rowSize++;
dataSize = dataSize + value.toString().getBytes(StandardCharsets.UTF_8).length;
}
// flush when the buffer number of mutations greater than the configured max size.
if (bufferFlushMaxMutations > 0
Expand Down