OrientDB ETL加载CSV文件时抛出异常 [英] OrientDB ETL Throws exception on loading CSV file

查看:530
本文介绍了OrientDB ETL加载CSV文件时抛出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加载一个简单的CSV文件到OrientDB,它总是引发此异常。

I am trying to load a simple CSV file to OrientDB and it always throws this exception.

CSV文件内容

id, name, role
1, Sarath, Architect
2, Anoop, Project Manager
3, Nazeem, Lead Developer
4, Rini, Senior Developer
5, Shine, iOS Developer
6, Vishnu, iOS Developer

json配置文件

{
  "source": { "file": { "path": "./dev.csv" } },
  "extractor": { "row": {} },
  "transformers": [
    { 
      "csv": {}
    },
    { "vertex": { "class": "Person" } }
  ],

  "loader": {
    "orientdb": {
       "dbURL": "remote:localhost/dev",
       "dbType": "graph",
       "dbUser": "root",
       "dbPassword": "root",
       "dbAutoCreate": true,
       "classes": [
         {"name": "Person", "extends": "V"}
       ], "indexes": [
         {"class":"Person", "fields":["id:integer"], "type":"UNIQUE" }
       ]
    }
  }
}

它显示此异常。我尝试不同的CSV选项,但它没有工作。看起来像是文件自身抛出异常。

All the time it shows this exception. I tried different CSV options but it did not work. Looks like the file reading itself throwing exception.

» oetl posts.json                                                                        sarat@Saraths-MacBook-Air
OrientDB etl v.2.0.1 (build @BUILD@) www.orientechnologies.com
Exception in thread "main" com.orientechnologies.orient.core.exception.OConfigurationException: Error on loading config file: posts.json
    at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:151)

平台详细信息

OS X 10.10.2
java version "1.8.0_25"
OrientDB - v.2.0.1


推荐答案

检查:

    $

尝试了您的示例和工作无需修改。

Tried out your example and works without modification.

这篇关于OrientDB ETL加载CSV文件时抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆