У меня есть два типа вершин: документы и сущности.
У бумаг есть paper_id, а у сущностей - entity_id. Они уже правильно импортированы из CSV-файлов с помощью инструмента ETL. Теперь я пытаюсь добавить ребра из документов в сущности из CSV, который структурирован так:
paper_id,entity_id
1,102030
1,203040
1,304050
2,304050
2,405060
Я запускаю следующий файл с помощью инструмента ETL:
{
"source": { "file": { "path": "/Users/Desktop/orientdb-3.0.6/bin/temp/files/small_con.csv" } },
"extractor": { "csv": {} },
"transformers": [
{
"command" : {
"command" : "CREATE EDGE References from (SELECT from Paper where paper_id = ${input.paper_id}) to (select from Entity where entity_id = ${input.entity_id})",
"output" : "edge"
}
}
],
"loader": {
"orientdb": {
"dbURL":
"plocal:/Users/reagantifft/Desktop/Fall2018/SeniorProject/orientdb-3.0.6/databases/bv",
"dbType": "graph",
"classes": [
{"name": "References", "extends": "E"}
]
}
}
}
но вывод моего терминала следующий ... Обратите внимание на ошибку.
OrientDB etl v.3.0.6 - Veloce (build b63614ab180ff02b75d65054b2a77116c16c0a3c, branch 3.0.x) https://www.orientdb.com
2018-10-28 20:05:02:492 INFO Default limit of open files (512) will be used. [ONative]
2018-10-28 20:05:02:592 INFO 8589934592 B/8192 MB/8 GB of physical memory were detected on machine [ONative]
2018-10-28 20:05:02:593 INFO Detected memory limit for current process is 8589934592 B/8192 MB/8 GB [ONative]
2018-10-28 20:05:02:595 INFO JVM can use maximum 1963MB of heap memory [OMemoryAndLocalPaginatedEnginesInitializer]
2018-10-28 20:05:02:596 INFO Because OrientDB is running outside a container 2g of memory will be left unallocated according to the setting 'memory.leftToOS' not taking into account heap memory [OMemoryAndLocalPaginatedEnginesInitializer]
2018-10-28 20:05:02:597 INFO OrientDB auto-config DISKCACHE=4,181MB (heap=1,963MB os=8,192MB) [orientechnologies]
2018-10-28 20:05:02:598 INFO System is started under an effective user : `reagantifft` [OEngineLocalPaginated]
2018-10-28 20:05:02:640 INFO BEGIN ETL PROCESSOR [OETLProcessor]
2018-10-28 20:05:02:642 INFO [file] Reading from file /Users/reagantifft/Desktop/orientdb-3.0.6/bin/temp/files/small_con.csv with encoding UTF-8 [OETLFileSource]
2018-10-28 20:05:02:642 INFO Started execution with 1 worker threads [OETLProcessor]
2018-10-28 20:05:02:994 INFO Storage 'plocal:/Users/reagantifft/Desktop/Fall2018/SeniorProject/orientdb-3.0.6/databases//bv' is opened under OrientDB distribution : 3.0.6 - Veloce (build b63614ab180ff02b75d65054b2a77116c16c0a3c, branch 3.0.x) [OLocalPaginatedStorage]
2018-10-28 20:05:03:646 INFO + extracted 174 rows (0 rows/sec) - 174 rows -> loaded 0 vertices (0 vertices/sec) Total time: 1004ms [0 warnings, 0 errors] [OETLProcessor]
2018-10-28 20:05:03:672 SEVER {db=bv} Error in Pipeline execution: [OETLPipeline]
2018-10-28 20:05:03:680 SEVER ETL process has problem: [OETLProcessor]
2018-10-28 20:05:03:690 INFO END ETL PROCESSOR [OETLProcessor]
2018-10-28 20:05:03:691 INFO + extracted 368 rows (4,311 rows/sec) - 368 rows -> loaded 0 vertices (0 vertices/sec) Total time: 1049ms [0 warnings, 1 errors] [OETLProcessor]
Есть идеи, где я иду не так? Новое в OrientDB и инструменте ETL.