-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[ZEPPELIN-6135] Fix clean goal not removing interpreter/ output(Spark,Flink) #4881
Conversation
044c344
to
98df2ee
Compare
Shouldn't the clean be done from the sub-module e.g. spark/interpreter? |
@Reamer Also, quick question, is it okay to delete the entire |
In general, this interpreter jar cleanup should already work. zeppelin/zeppelin-interpreter-parent/pom.xml Lines 163 to 174 in ea0802d
Maybe it doesn't work because of the special submodule structure. I will check this out. |
The path is not correct due to the submodule structure in Flink and Spark. Not to make it too complicated, I would be in favor of your first contribution suggestion. Put the interpreter name in the parent pom.xml of Spark and Flink. Theoretically you could then remove it in the corresponding submodules. In general, I don't think it's good that all interpreters store files outside. But this can be adjusted in the future. Thank you for finding the bug. |
@Reamer Thanks for checking things out! |
Just two minor lines. zeppelin/flink/flink-scala-2.12/pom.xml Line 36 in 3575a3c
zeppelin/spark/interpreter/pom.xml Line 36 in 3575a3c
What do you think? |
@Reamer I agree with you; it's better to keep a single source of truth. I've updated these as you suggested. |
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
…,Flink) ### What is this PR for? The Maven clean goal does not remove some interpreter files in `interpreter/` directory as expected. Specifically, the `spark` and `flink` interpreters are not cleaned. This happens because when extending the `pom.xml` in the `pom.xml` of these interpreters, they lack the `interpreter.name` property. As a result, the clean target directory configured in `zeppelion-interpreter-parent` was not properly resolved before. ### What type of PR is it? Bug Fix ### Todos * [ ] - Task ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-6135 ### How should this be tested? - Build Zeppelin - Clean Zeppelin and check if all interpreters are removed in `interpreter/` ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #4881 from tbonelee/fix-interparent-clean. Signed-off-by: Philipp Dallig <[email protected]> (cherry picked from commit f172b91) Signed-off-by: Philipp Dallig <[email protected]>
Merge to master/branch-0.12 |
What is this PR for?
The Maven clean goal does not remove some interpreter files in
interpreter/
directory as expected.Specifically, the
spark
andflink
interpreters are not cleaned.This happens because when extending the
pom.xml
in thepom.xml
of these interpreters, they lack theinterpreter.name
property.As a result, the clean target directory configured in
zeppelion-interpreter-parent
was not properly resolved before.What type of PR is it?
Bug Fix
Todos
What is the Jira issue?
How should this be tested?
interpreter/
Screenshots (if appropriate)
Questions: