Skip to content

HDDS-1226. ozone-filesystem jar missing in hadoop classpath - #560

Closed
vivekratnavel wants to merge 5 commits into
apache:trunkfrom
vivekratnavel:HDDS-1226
Closed

HDDS-1226. ozone-filesystem jar missing in hadoop classpath#560
vivekratnavel wants to merge 5 commits into
apache:trunkfrom
vivekratnavel:HDDS-1226

Conversation

@vivekratnavel

Copy link
Copy Markdown
Contributor

hadoop-ozone-filesystem-lib-*.jar is missing in hadoop classpath.

This PR aims at having a shaded hadoop-ozone-filesystem-lib-*.jar file in ${OZONE_HOME}/share/hadoop/ozonefs/ path

@vivekratnavel

Copy link
Copy Markdown
ContributorAuthor

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec20Docker mode activated.
_ Prechecks _
+1@author0The patch does not contain any @author tags.
_ trunk Compile Tests _
+1shadedclient824branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1shellcheck1There were no new shellcheck issues.
+1shelldocs14There were no new shelldocs issues.
+1whitespace0The patch has no whitespace issues.
+1shadedclient795patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1asflicense30The patch does not generate ASF License warnings.
1784
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-560/1/artifact/out/Dockerfile
GITHUB PR#560
Optional Testsdupname asflicense shellcheck shelldocs
unameLinux c2280c5ecb6c 4.4.0-139-generic #165~14.04.1-Ubuntu SMP Wed Oct 31 10:55:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 945b504
mavenversion: Apache Maven 3.3.9
shellcheckv0.4.6
Max. process+thread count340 (vs. ulimit of 5500)
modulesC: hadoop-ozone/dist U: hadoop-ozone/dist
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@avijayanhwx

Copy link
Copy Markdown
Contributor

LGTM

@elekelek added the ozone label Mar 6, 2019

@elekelek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hadoop file system jars are already there:

ls share/ozone/lib/hadoop-ozone-filesystem-*
share/ozone/lib/hadoop-ozone-filesystem-0.4.0-SNAPSHOT.jar
share/ozone/lib/hadoop-ozone-filesystem-lib-0.4.0-SNAPSHOT.jar
share/ozone/lib/hadoop-ozone-filesystem-lib-legacy-0.4.0-SNAPSHOT.jar

And because they are huge (100M) I wouldn't duplicate them. ;-)

But you are right, the share/hadoop/ozone directory is confusing as most of the stuff are already moved to share/ozone/...

If you prefer to move the datanodeplugin to share/ozone I would agree...

@elek

elek commented Mar 6, 2019

Copy link
Copy Markdown
Member

Discussed with @vivekratnavel offline:

The big question here is that how can we put the jar files to the classpath in a version independent mode.

We can use HADOOP_CLASSPATH=share/ozone/lib/hadoop-ozone-filesystem-lib-legacy* but can't use any wildcard for the normal lib as the legacy jar file also will be matched.

One possible solution is to rename the ozonefs-lib project to ozonefs-lib-current.

@@ -110,7 +110,6 @@ run cp "${ROOT}/hadoop-ozone/common/src/main/bin/stop-ozone.sh" "sbin/"
run mkdir -p "./share/hadoop/ozoneplugin"
run cp "${ROOT}/hadoop-ozone/objectstore-service/target/hadoop-ozone-objectstore-service-${HDDS_VERSION}-plugin.jar" "./share/hadoop/ozoneplugin/hadoop-ozone-datanode-plugin-${HDDS_VERSION}.jar"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can open a new Jira to remove share/hadoop/ozoneplugin also?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can open one. But rename instead of remove. ozoneplugin is the directory of the ozone datanode plugin for legacy hdfs clusters. We need the jar file but can be moved to share/ozone/datanodeplugin

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec24Docker mode activated.
_ Prechecks _
0yamllint1yamllint was not available.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
0mvndep69Maven dependency ordering for branch
+1mvninstall1033trunk passed
+1compile961trunk passed
-1mvnsite112hadoop-ozone in trunk failed.
+1shadedclient654branch has no errors when building and testing our client artifacts.
+1javadoc162trunk passed
_ Patch Compile Tests _
0mvndep26Maven dependency ordering for patch
-1mvninstall108hadoop-ozone in the patch failed.
-1mvninstall14dist in the patch failed.
-1mvninstall11ozonefs-lib in the patch failed.
+1compile905the patch passed
+1javac905the patch passed
-1mvnsite94hadoop-ozone in the patch failed.
-1mvnsite30ozonefs-lib in the patch failed.
+1shellcheck0There were no new shellcheck issues.
+1shelldocs38There were no new shelldocs issues.
+1whitespace0The patch has no whitespace issues.
+1xml4The patch has no ill-formed XML file.
+1shadedclient615patch has no errors when building and testing our client artifacts.
-1javadoc27ozonefs-lib in the patch failed.
_ Other Tests _
+1unit33docs in the patch passed.
-1unit110hadoop-ozone in the patch failed.
+1unit35dist in the patch passed.
-1unit28ozonefs-lib in the patch failed.
+1unit32ozonefs-lib-current in the patch passed.
+1asflicense46The patch does not generate ASF License warnings.
5847
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/Dockerfile
GITHUB PR#560
Optional Testsdupname asflicense mvnsite shellcheck shelldocs compile javac javadoc mvninstall unit shadedclient xml yamllint
unameLinux 320e3c4e668a 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / a55fc36
mavenversion: Apache Maven 3.3.9
Default Java1.8.0_191
mvnsitehttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/branch-mvnsite-hadoop-ozone.txt
shellcheckv0.4.6
mvninstallhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-mvninstall-hadoop-ozone.txt
mvninstallhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-mvninstall-hadoop-ozone_dist.txt
mvninstallhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-mvninstall-hadoop-ozone_ozonefs-lib.txt
mvnsitehttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-mvnsite-hadoop-ozone.txt
mvnsitehttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-mvnsite-hadoop-ozone_ozonefs-lib.txt
javadochttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-javadoc-hadoop-ozone_ozonefs-lib.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-unit-hadoop-ozone.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/artifact/out/patch-unit-hadoop-ozone_ozonefs-lib.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/testReport/
Max. process+thread count469 (vs. ulimit of 5500)
modulesC: hadoop-hdds/docs hadoop-ozone hadoop-ozone/dist hadoop-ozone/ozonefs-lib hadoop-ozone/ozonefs-lib-current U: .
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/2/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@elekelek closed this in 475011bMar 7, 2019
@elek

elek commented Mar 7, 2019

Copy link
Copy Markdown
Member

+1. Merged it to the trunk.Thanks the contribution @vivekratnavel

As this is a small risk patch and it would be better to finalize the name earlier, I cherry-pick it to branch-0.4 to be part of the next release.

elek pushed a commit that referenced this pull request Mar 7, 2019
@elekelek reopened this Mar 7, 2019
@elekelek closed this Mar 7, 2019
@elekelek reopened this Mar 7, 2019
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec0Docker mode activated.
-1patch7#560 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.
SubsystemReport/Notes
GITHUB PR#560
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-560/3/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@elekelek closed this Mar 13, 2019
@elek

elek commented Mar 13, 2019

Copy link
Copy Markdown
Member

The last commit (typo fix) added as an addendum commit.

elek pushed a commit that referenced this pull request Mar 13, 2019
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
This is due to the recent refactoring of table metrics, for some reason running build locally didn't catch these failed tests.
Author: Wei Song <wsong@wsong-mn2.linkedin.biz>
Author: Cameron Lee <calee@linkedin.com>
Author: Jagadish <jvenkatraman@linkedin.com>
Author: Ray Matharu <rmatharu@linkedin.com>
Reviewers: Jagadish<jagadish@apache.org>, Cameron L<calee@linkedin.com>
Closesapache#560 from weisong44/table-metrics-fix
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@vivekratnavel@hadoop-yetus@avijayanhwx@elek@bharatviswa504