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

update application.conf template #140

Merged
merged 5 commits into from
May 22, 2023
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
14 changes: 11 additions & 3 deletions conf-template/client_import/csv_datasource.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# Nebula Graph config
nebula: {
address:{
graph:["127.0.0.1:9669"]
graph: ["127.0.0.1:9669"]
# if your NebulaGraph server is in virtual network like k8s, please config the leader address of meta.
# use `SHOW meta leader` to see your meta leader's address
meta:["127.0.0.1:9559"]
meta: ["127.0.0.1:9559"]
}
user: root
pswd: nebula
Expand Down Expand Up @@ -63,7 +63,15 @@
# if your csv file has no header, then use _c0,_c1,_c2,.. to indicate fields
fields: [csv-field-0, csv-field-1, csv-field-2]
nebula.fields: [nebula-field-0, nebula-field-1, nebula-field-2]
vertex: csv-field-0
vertex: {
field: csv-field-0
udf: {
separator: "_"
oldColNames: [parquet-field-0, parquet-field-1]
newColName: new-parquet-field
}
}

separator: ","
header: true
batch: 2000
Expand Down
10 changes: 5 additions & 5 deletions nebula-exchange_spark_2.4/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
nebula.fields: [nebula-field-0, nebula-field-1, nebula-field-2]
vertex: {
field:new-parquet-field
udf:{
separator:"_"
oldColNames:[parquet-field-0]
newColNames:[new-parquet-field]
}
udf: {
separator: "_"
oldColNames: [parquet-field-0, parquet-field-1]
newColName: new-parquet-field
}
#policy:hash
}
batch: 2000
Expand Down