Skip to content

Commit

Permalink
rebase hdfs conf
Browse files Browse the repository at this point in the history
Change-Id: I84120150901a5847200ef3b22295636e9175829b
  • Loading branch information
Linary committed Dec 5, 2019
1 parent 1d67b2d commit 1769b6a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ public void testDefaultTimeZoneGMT8() throws java.text.ParseException {
"vadas,2000-01-01 13:00:00,Hongkong");

String[] args = new String[]{
"-f", configPath("default_timezone_gmt8/struct.json"),
"-f", structPath("default_timezone_gmt8/struct.json"),
"-s", configPath("default_timezone_gmt8/schema.groovy"),
"-g", GRAPH,
"-h", SERVER,
Expand Down Expand Up @@ -1266,7 +1266,7 @@ public void testCustomizedTimeZoneGMT0() throws java.text.ParseException {
"vadas,2000-01-01 13:00:00,Hongkong");

String[] args = new String[]{
"-f", configPath("customized_timezone_gmt0/struct.json"),
"-f", structPath("customized_timezone_gmt0/struct.json"),
"-s", configPath("customized_timezone_gmt0/schema.groovy"),
"-g", GRAPH,
"-h", SERVER,
Expand Down
22 changes: 22 additions & 0 deletions src/test/resources/customized_timezone_gmt0/struct_hdfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"vertices": [
{
"label": "person",
"input": {
"type": "${source_type}",
"path": "${store_path}/vertex_person_birth_date.csv",
"core_site_path": "src/test/resources/hdfs_with_core_site_path/core-site.xml",
"format": "CSV",
"header": ["name", "birth", "city"],
"charset": "UTF-8",
"date_format": "yyyy-MM-dd HH:mm:ss",
"time_zone": "GMT+0"
},
"field_mapping": {
"name": "name",
"birth": "birth",
"city": "city"
}
}
]
}
21 changes: 21 additions & 0 deletions src/test/resources/default_timezone_gmt8/struct_hdfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"vertices": [
{
"label": "person",
"input": {
"type": "${source_type}",
"path": "${store_path}/vertex_person_birth_date.csv",
"core_site_path": "src/test/resources/hdfs_with_core_site_path/core-site.xml",
"format": "CSV",
"header": ["name", "birth", "city"],
"charset": "UTF-8",
"date_format": "yyyy-MM-dd HH:mm:ss"
},
"field_mapping": {
"name": "name",
"birth": "birth",
"city": "city"
}
}
]
}

0 comments on commit 1769b6a

Please sign in to comment.