-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-14907. [Dynamometer] DataNode can't find junit jar when using Hadoop-3 binary #1680
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
| extraClasspathDir="$(pwd)/additionalClasspath/" | ||
| mkdir -p "${extraClasspathDir}" | ||
|
|
||
| junitClassPath="$(find $hadoopHome -name "junit*.jar" | head -n 1)" |
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.
shellcheck:24: note: Double quote to prevent globbing and word splitting. [SC2086]
|
💔 -1 overall
This message was automatically generated. |
| extraClasspathDir="$(pwd)/additionalClasspath/" | ||
| mkdir -p "${extraClasspathDir}" | ||
|
|
||
| junitClassPath="$(find ${hadoopHome} -name "junit*.jar" | head -n 1)" |
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.
shellcheck:24: note: Double quote to prevent globbing and word splitting. [SC2086]
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
xkrogen
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.
Nice! Looks like a good change. Left some minor comments.
| extraClasspathDir="$(pwd)/additionalClasspath/" | ||
| mkdir -p "${extraClasspathDir}" | ||
|
|
||
| junitClassPath="$(find "${hadoopHome}" -name "junit*.jar" | head -n 1)" |
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.
Can we add a comment here explaining why this is necessary?
|
|
||
| junitClassPath="$(find "${hadoopHome}" -name "junit*.jar" | head -n 1)" | ||
| if [[ -z "$junitClassPath" ]]; then | ||
| echo "Can't find junit jar file." |
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.
Can we include where the JAR was searched (hadoopHome)?
|
Thanks for your reviews, @xkrogen! Updated the PR. |
|
💔 -1 overall
This message was automatically generated. |
|
LGTM! Thanks @tasanuma ! |
No description provided.