-
Notifications
You must be signed in to change notification settings - Fork 430
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
[GAE-Java] Make GAE Java SDK version align with GraphScope #2077
Conversation
e04e77f
to
4771a59
Compare
coordinator/gscoordinator/utils.py
Outdated
GRAPE_PROCESSOR_JAR = os.path.join( | ||
GRAPHSCOPE_HOME, "lib", "grape-runtime-0.16.0-shaded.jar" | ||
) | ||
GRAPE_PROCESSOR_JAR = glob.glob(GRAPHSCOPE_HOME + "/lib/grape-runtime*.jar")[0] |
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.
This [0] seems dangerous...
Could you handle the exception incase the jar is not there? So we won't crash the coordinator.
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.
Thanks for the suggestion, I have changed to
ANALYTICAL_ENGINE_JAVA_RUNTIME_JAR = os.path.join(
ANALYTICAL_ENGINE_JAVA_HOME,
"lib",
"grape-runtime-{}-shaded.jar".format(__version__),
)
where the __version__
is imported from version.py
coordinator/gscoordinator/utils.py
Outdated
|
||
ANALYTICAL_ENGINE_JAVA_RUNTIME_JAR = glob.glob( | ||
ANALYTICAL_ENGINE_JAVA_HOME + "/lib/grape-runtime*.jar" | ||
)[0] |
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.
And this,
coordinator/gscoordinator/utils.py
Outdated
)[0] | ||
ANALYTICAL_ENGINE_JAVA_GRAPHX_JAR = glob.glob( | ||
ANALYTICAL_ENGINE_JAVA_HOME + "/lib/graphx-on-graphscope*.jar" | ||
)[0] |
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.
This
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2077 +/- ##
=======================================
Coverage 72.89% 72.89%
=======================================
Files 89 89
Lines 9872 9872
=======================================
Hits 7196 7196
Misses 2676 2676 Continue to review full report at Codecov.
|
What do these changes do?
Related issue number
Make GAE Java SDK version not fixed in code/configuration. BUT we still need to change
analytical_engine/java/pom.xml
for GraphScope version change.