Skip to content
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

Enhance Spark Writer #1512

Merged
merged 9 commits into from
Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jni/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.vesoft</groupId>
<artifactId>nebula-utils</artifactId>
<version>1.0.0-rc2</version>
<version>1.0.0-rc3</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Have we uploaded rc3 version jni? rc2 is ok I guess

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand that RC3 will release later so I update this version number.
Actually, when RC2 release we should update this version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, remember to upload it to mvn


<name>nebula-utils</name>
<description>Nebula jni utils</description>
Expand Down
4 changes: 2 additions & 2 deletions src/tools/spark-sstfile-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.vesoft</groupId>
<artifactId>sst.generator</artifactId>
<version>1.0.0-rc2</version>
<version>1.0.0-rc3</version>

<properties>
<java.version>1.8</java.version>
Expand All @@ -21,7 +21,7 @@
<config.version>1.4.0</config.version>
<scala-logging.version>3.9.2</scala-logging.version>
<scopt.version>3.7.1</scopt.version>
<nebula.version>1.0.0-rc2</nebula.version>
<nebula.version>1.0.0-rc3</nebula.version>
<s2.version>1.0.0</s2.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,24 @@
execution {
retry: 3
}

error: {
max: 32
output: /tmp/errors
}

rate: {
limit: 1024
timeout: 1000
}
}

# Processing tags
tags: {
tags: [

# Loading tag from HDFS and data type is parquet
tag-name-0: {
{
name: tag-name-0
type: parquet
path: hdfs tag path 0
fields: {
Expand All @@ -48,7 +59,8 @@
}

# Loading from Hive
tag-name-1: {
{
name: tag-name-1
type: hive
exec: "select hive-field0, hive-field1, hive-field2 from database.table"
fields: {
Expand All @@ -63,12 +75,13 @@
vertex: hive-field-0
partition: 32
}
}
]

# Processing edges
edges: {
edges: [
# Loading tag from HDFS and data type is parquet
edge-name-0: {
{
name: edge-name-0
type: json
path: hdfs edge path 0
fields: {
Expand All @@ -81,25 +94,26 @@
policy: "hash"
}
target: {
field:hive-field-1
field: hive-field-1
policy: "uuid"
}
ranking: hive-field-2
partition: 32
}
}

# Loading from Hive
edge-name-1: {
type: hive
exec: "select hive-field0, hive-field1, hive-field2 from database.table"
fields: {
hive-field-0: nebula-field-0,
hive-field-1: nebula-field-1,
hive-field-2: nebula-field-2
# Loading from Hive
{
name: edge-name-1
type: hive
exec: "select hive-field0, hive-field1, hive-field2 from database.table"
fields: {
hive-field-0: nebula-field-0,
hive-field-1: nebula-field-1,
hive-field-2: nebula-field-2
}
source: hive-field-0
target: hive-field-1
partition: 32
}
source: hive-field-0
target: hive-field-1
partition: 32
}
]
}
Loading