-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implementation Datax doriswriter plugin #6107
Conversation
Hi @huzk8 ,this PR #6111 has been merged, please move the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
public List<Configuration> split(int mandatoryNumber) { | ||
List<Configuration> configurations = new ArrayList<>(mandatoryNumber); | ||
|
||
for(int i = 0; i < mandatoryNumber; ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space after for
} | ||
|
||
private String getStreamLoadLabel() { | ||
return UUID.randomUUID().toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Data import of datax can be uniformly started with datax_doris_writer_
eg:"datax_doris_writer_" + UUID.randomUUID().toString();
throw new IOException("None of the host in `beLoadUrl` could be connected."); | ||
} | ||
final String loadUrl = host + "/api/" + this.keys.getDatabase() + "/" + this.keys.getTable() + "/_stream_load"; | ||
LOG.debug(String.format("Start to join batch data: rows[%d] bytes[%d] label[%s].", flushData.getRows().size(), flushData.getBytes(), flushData.getLabel())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to use info here to facilitate troubleshooting
debug -> info
if (null == loadResult || !loadResult.containsKey(keyStatus)) { | ||
throw new IOException("Unable to flush data to doris: unknown result status."); | ||
} | ||
LOG.debug("StreamLoad response:\n" + JSON.toJSONString(loadResult)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to use info here to facilitate troubleshooting
debug -> info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Implementation datax doriswriter plugin.
To compile this plugin , you need to download Alibaba/Datax source and put plugin to that maven project.
Types of changes
Checklist
Further comments
Should I write a doc about how to install this plugin in Datax?