orientdb SEVER 提取期间出错:java.lang.IllegalArgumentException:字段名称为空
orientdb SEVER Error during extraction: java.lang.IllegalArgumentException: Field name is empty
我有这个文件,我正试图在 orientdb 上导入它,它具有以下结构:
p1 p2 combined_score
1 568703.LGG_00001 568703.LGG_01682 282
2 568703.LGG_00001 568703.LGG_01831 183
3 568703.LGG_00001 568703.LGG_01491 238
我正在使用 oetl 进行导入:
{
"source": { "file": { "path": "C:/Users/Desktop/files/file22/lac2.csv" } },
"extractor": { "csv": {} },
"transformers": [
{ "vertex": { "class": "nodes" } }
],
"loader": {
"orientdb": {
"dbURL": "plocal:/tmp/databases/db/db",
"dbType": "graph",
"classes": [
{"name": "nodes", "extends": "V"},
]
}
}
}
尝试先导入顶点,然后再导入节点。
但是我收到了这个错误
2017-06-26 18:38:27:059 SEVER Error during extraction: java.lang.IllegalArgumentException: Field name is empty [OETLProcessor$OETLExtractorWorker]+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 2012ms [0 warnings, 0 errors]
+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 3033ms [0 warnings, 0 errors]
+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 4033ms [0 warnings, 0 errors]
没有加载,我该如何解决?
我正在使用 orientdb community-2.2.18 并尝试了 2.2.22 vrsion 并且问题是 percisting
这条消息:
2017-06-26 18:38:27:059 SEVER Error during extraction: java.lang.IllegalArgumentException: Field name is empty
是因为在你的csv文件中,属性的名字是空白的,你可以这样修改你的csv文件,不用给它起名字:
p1,p2,combined_score
1,568703.LGG_00001,568703.LGG_01682,282
2,568703.LGG_00001,568703.LGG_01831,183
3,568703.LGG_00001,568703.LGG_01491,238
这将是您的输出:
+----+-----+------+----+----------------+----------------+
|# |@RID |@CLASS|p1 |combined_score |p2 |
+----+-----+------+----+----------------+----------------+
|0 |#17:0|nodes |1 |568703.LGG_01682|568703.LGG_00001|
|1 |#18:0|nodes |2 |568703.LGG_01831|568703.LGG_00001|
|2 |#19:0|nodes |3 |568703.LGG_01491|568703.LGG_00001|
+----+-----+------+----+----------------+----------------+
否则,如果你想给它起个名字,就这样:
id,p1,p2,combined_score
1,568703.LGG_00001,568703.LGG_01682,282
2,568703.LGG_00001,568703.LGG_01831,183
3,568703.LGG_00001,568703.LGG_01491,238
这将是输出:
+----+-----+------+----------------+--------------+----------------+----+
|# |@RID |@CLASS|p1 |combined_score|p2 |id |
+----+-----+------+----------------+--------------+----------------+----+
|0 |#17:0|nodes |568703.LGG_00001|282 |568703.LGG_01682|1 |
|1 |#18:0|nodes |568703.LGG_00001|183 |568703.LGG_01831|2 |
|2 |#19:0|nodes |568703.LGG_00001|238 |568703.LGG_01491|3 |
+----+-----+------+----------------+--------------+----------------+----+
我试过 2.2.22。
希望对您有所帮助。
此致
我有这个文件,我正试图在 orientdb 上导入它,它具有以下结构:
p1 p2 combined_score
1 568703.LGG_00001 568703.LGG_01682 282
2 568703.LGG_00001 568703.LGG_01831 183
3 568703.LGG_00001 568703.LGG_01491 238
我正在使用 oetl 进行导入:
{
"source": { "file": { "path": "C:/Users/Desktop/files/file22/lac2.csv" } },
"extractor": { "csv": {} },
"transformers": [
{ "vertex": { "class": "nodes" } }
],
"loader": {
"orientdb": {
"dbURL": "plocal:/tmp/databases/db/db",
"dbType": "graph",
"classes": [
{"name": "nodes", "extends": "V"},
]
}
}
}
尝试先导入顶点,然后再导入节点。 但是我收到了这个错误
2017-06-26 18:38:27:059 SEVER Error during extraction: java.lang.IllegalArgumentException: Field name is empty [OETLProcessor$OETLExtractorWorker]+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 2012ms [0 warnings, 0 errors]
+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 3033ms [0 warnings, 0 errors]
+ extracted 0 rows (0 rows/sec) - 0 rows -> loaded 0 vertices (0 vertices/sec) Total time: 4033ms [0 warnings, 0 errors]
没有加载,我该如何解决?
我正在使用 orientdb community-2.2.18 并尝试了 2.2.22 vrsion 并且问题是 percisting
这条消息:
2017-06-26 18:38:27:059 SEVER Error during extraction: java.lang.IllegalArgumentException: Field name is empty
是因为在你的csv文件中,属性的名字是空白的,你可以这样修改你的csv文件,不用给它起名字:
p1,p2,combined_score
1,568703.LGG_00001,568703.LGG_01682,282
2,568703.LGG_00001,568703.LGG_01831,183
3,568703.LGG_00001,568703.LGG_01491,238
这将是您的输出:
+----+-----+------+----+----------------+----------------+
|# |@RID |@CLASS|p1 |combined_score |p2 |
+----+-----+------+----+----------------+----------------+
|0 |#17:0|nodes |1 |568703.LGG_01682|568703.LGG_00001|
|1 |#18:0|nodes |2 |568703.LGG_01831|568703.LGG_00001|
|2 |#19:0|nodes |3 |568703.LGG_01491|568703.LGG_00001|
+----+-----+------+----+----------------+----------------+
否则,如果你想给它起个名字,就这样:
id,p1,p2,combined_score
1,568703.LGG_00001,568703.LGG_01682,282
2,568703.LGG_00001,568703.LGG_01831,183
3,568703.LGG_00001,568703.LGG_01491,238
这将是输出:
+----+-----+------+----------------+--------------+----------------+----+
|# |@RID |@CLASS|p1 |combined_score|p2 |id |
+----+-----+------+----------------+--------------+----------------+----+
|0 |#17:0|nodes |568703.LGG_00001|282 |568703.LGG_01682|1 |
|1 |#18:0|nodes |568703.LGG_00001|183 |568703.LGG_01831|2 |
|2 |#19:0|nodes |568703.LGG_00001|238 |568703.LGG_01491|3 |
+----+-----+------+----------------+--------------+----------------+----+
我试过 2.2.22。
希望对您有所帮助。
此致