"config": {
"log": "debug",
"parallel": false,
"fileDirectory": "<file path>",
"fileName": "<file name>",
"className": "<class name>",
"dbURL": "remote:localhost/<my deb name>",
"dbUser": "admin",
"dbPassword": "admin"
},
"source": {
"file": {
"path": "$filePath",
"lock": false
}
},
"extractor": {
"row": {}
},
"transformers": [
{
"csv": {
"separator": ",",
"columnsOnFirstLine": true,
"nullValue": "NULL"
}
}
],
"loader": {
"orientdb": {
"dbURL": "$dbURL",
"dbUser": "$dbUser",
"dbPassword": "$dbPassword",
"dbAutoDropIfExists": false,
"dbAutoCreate": false,
"standardElementConstraints": false,
"tx": false,
"wal": false,
"batchCommit": 1000,
"dbType": "document",
"class": "<class name>"
}
}
错误讯息:
OrientDB etl v.2.0.3(build @ BUILD @)www.orientechnologies.com 线程“main”中的异常com.orientechnologies.orient.core.exception.OConfigurationException:创建ETL处理器时出错 在com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:278) 在com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:188) 在com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:163) 引起:java.lang.UnsupportedOperationException:无法检查远程服务器中数据库的存在。请使用控制台或OServerAdmin类。 在com.orientechnologies.orient.client.remote.OStorageRemote.exists(OStorageRemote.java:273) 在com.orientechnologies.orient.client.remote.OStorageRemoteThread.exists(OStorageRemoteThread.java:177) 在com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.exists(ODatabaseDocumentTx.java:1050) 在com.orientechnologies.orient.etl.loader.OOrientDBLoader.configure(OOrientDBLoader.java:246) at com.orientechnologies.orient.etl.OETLProcessor.configureComponent(OETLProcessor.java:494) 在com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:251) ......还有2个
答案 0 :(得分:0)
2.0.3我是一个非常古老的版本。如果你坚持这个,我的建议是使用plocal加载。因此,关闭服务器,使用plocal将etl指向存储:然后再次打开服务器。 plocal上的大量数据比远程更快。 如果您可以更新到2.1.5,则在使用CSV提取器而不是行时会有一些改进。