Skip to content

Commit

Permalink
update application.conf template (#140)
Browse files Browse the repository at this point in the history
* update application.conf template

* update template

* Update csv_datasource.conf

* Update application.conf

lint

* Update csv_datasource.conf

---------

Co-authored-by: Wey Gu <[email protected]>
  • Loading branch information
Nicole00 and wey-gu authored May 22, 2023
1 parent 001c308 commit cc530cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
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

0 comments on commit cc530cf

Please sign in to comment.