-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[refactor](libhdfs) introduce hadoop libhdfs #18204
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
Conversation
|
|
|
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.
clang-tidy made some suggestions
be/src/util/jni-util.cpp
Outdated
| options = (JavaVMOption*)calloc(no_args, sizeof(JavaVMOption)); | ||
| options[0].optionString = const_cast<char*>(classpath.c_str()); | ||
| java_opts = getenv("JAVA_OPTS"); | ||
| if (java_opts != NULL) { |
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.
warning: use nullptr [modernize-use-nullptr]
| if (java_opts != NULL) { | |
| if (java_opts != nullptr) { |
|
run buildall |
1 similar comment
|
run buildall |
be/src/util/jni-util.cpp
Outdated
|
|
||
| if (java_opts != nullptr) { | ||
| free(java_opts); | ||
| } | ||
| free(options); |
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's better to use RAII.
|
run buildall |
|
|
run buildall |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
adonis0147
left a comment
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
adonis0147
left a comment
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
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
clang-tidy review says "All clean, LGTM! 👍" |
1. Introduce hadoop libhdfs 2. For Linux-X86 platform, use the hadoop libhdfs 3. For other platform, use libhdfs3, because currently we don't have hadoop libhdfs binary for other platform Co-authored-by: adonis0147 <adonis0147@gmail.com>
Proposed changes
Issue Number: close #xxx
Problem summary
Co-authored-by: adonis0147 adonis0147@gmail.com
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...