我的ETL脚本为:
{
"config" : { "log": "debug"},
"source": { "file": { "path": "C:/Users/60886/person.csv" } },
"extractor": { "row": {} },
"transformers": [
{ "csv": {} },
{ "vertex": { "class": "Person" } }
],
"loader": {
"orientdb": {
"dbURL": "remote:localhost/GratefulDeadConcerts",
"dbType": "graph",
"wal": false,
"tx": false,
"indexes": [
{"class":"Person", "fields":["ID:LONG"], "type":"UNIQUE" }
],
"batchCommit":1000
}
}
}
执行此脚本后,由于某些异常,我得到OETLProcessHaltedException,并且进程暂停。结果,它停止了完整的ETL过程。我想在异常发生后继续加载其他顶点,这样由于单个错误记录,我的整个过程不会停止。我怎样才能实现这一目标?谢谢!