-
Notifications
You must be signed in to change notification settings - Fork 424
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
[OSPP] Spark RDD Reader for GraphScope #2103
Conversation
Hi, thank you for opening pull request for GraphScope! Could you please rebase your branch to main? |
hi, @Issac-Newton, Please check your coding style(c++, java) to pass CI test. https://github.com/alibaba/GraphScope/blob/main/.github/workflows/docs.yml#L21 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2103 +/- ##
==========================================
- Coverage 72.93% 67.07% -5.87%
==========================================
Files 89 89
Lines 9789 9789
==========================================
- Hits 7140 6566 -574
- Misses 2649 3223 +574
Continue to review full report at Codecov.
|
|
||
int main() | ||
{ | ||
MPI_Init(NULL, 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.
Please use grape::CommSpec
instead. Refer to any unit test under analytical_engine/test/
@@ -0,0 +1,296 @@ | |||
#include <iostream> |
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.
Could we extract the definition of rdd_transfer_client
to a header file, for example, rdd_reader.h
? And create a test file under analytical_engine/java/grape-rdd-reader/src/main/cpp/rdd_reader.cc
. Also include your CMakeLists.txt under grape-rdd-reader
.
@@ -0,0 +1,255 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
Rename this module to grape-rdd-reader
, and include this module as a submodule of grape-jdk-parent.
<protoc.version>3.19.2</protoc.version> | ||
|
||
<scala.version>2.13.8</scala.version> | ||
<spark.version>3.2.1</spark.version> |
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.
All these properties should be declared in parent pom, and should be consistent with current declared version.
|
||
<!-- required for jdk9 --> | ||
<maven.compiler.source>1.7</maven.compiler.source> | ||
<maven.compiler.target>1.7</maven.compiler.target> |
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.
Check this.
@@ -0,0 +1,238 @@ | |||
package RDDReaderTransfer; |
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.
Please include license for every single file you added.
|
||
|
||
public class RDDReadServer { | ||
//静态方法用于获取当前节点的ip |
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.
Please replace/remove all Chinese comments with english comments,
@Override | ||
public void run() { | ||
// Use stderr here since the logger may have been reset by its JVM shutdown hook. | ||
System.err.println("*** shutting down gRPC server since JVM is shutting down"); |
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.
Please user Logger.error
|
||
private void stop() throws InterruptedException { | ||
if (server != null) { | ||
server.shutdown().awaitTermination(30, TimeUnit.SECONDS); |
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.
The awaitTermination time should be confinable or at least declared as a constant in class. Avoid directly use the value.
@@ -0,0 +1,68 @@ | |||
package RDDReaderTransfer |
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.
If this is a unit test, move to src/test/scala
@@ -0,0 +1,218 @@ | |||
/** Copyright 2022 Alibaba Group Holding Limited. |
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.
rename to rdd_reader_client.h?
What do these changes do?
Using gRPC to transfer data in GraphX(RDD) to GraphScope
Related issue number
Fixes #1529