OrientDB etl加载csv,但无法查看类中的记录

OrientDB etl加载csv,但无法查看类中的记录,csv,etl,orientdb,Csv,Etl,Orientdb,我正在使用orientdb 2.1.13 CLASSES ------------------+------------------+------------+----------------+ NAME | SUPERCLASS | CLUSTERS | RECORDS | ------------------+------------------+------------+----------------+ E

我正在使用orientdb 2.1.13

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye
我可以加载csv文件>>请参见oetl 已创建类名,但无法查看类中的记录 谢谢你的支持。 雷恩

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye
test.json 欧特尔 [osboxes@osboxesbin]$./oetl.sh../niloy_data/test.json-OrientDB-etl v、 2.1.13(构建2.1。x@r9bc1a54a4a62c4de555fc5360357f446f8d2bc84; 2016-03-14 17:00:05+0000)www.orientdb.com

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye
连接 orientdb{db=test}>列出类

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye
试试这个:

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye
{
  "source": { "file": { "path": "/usr/share/orientdb-community-2.1.13/niloy_data/test.csv" } },
  "extractor": { "row": {} },
  "transformers": [
    { "csv": {} },
    {"vertex": {"class": "Names"} }
  ],
  "loader": {
    "orientdb": {
       "dbURL": "plocal:/usr/share/orientdb-community-2.1.13/databases/test",
       "dbType": "graph",
       "classes": [
         {"name": "Names","extends": "V"},
       ], "indexes": [
         {"class": "Names", "fields":["num:integer"], "type":"UNIQUE" }
       ]
    }
  }
}
结果是:

CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye

您好,您能发布csv文件吗?谢谢Michela,姓名,号码abcd,1213 fads,725 pyiu,9376 agido,430您好Michela,一切正常!!!非常感谢你的帮助。一个问题:在2.1.4和后来的版本中,我的理解是“csv”在“变形金刚”中被弃用,并包含在“提取器”中-你知道我的理解是否有误吗?是的,正是因为2.1.4版本已经弃用,但你仍然可以使用它,这不是问题
CLASSES
------------------+------------------+------------+----------------+
 NAME             | SUPERCLASS       | CLUSTERS   | RECORDS        |
------------------+------------------+------------+----------------+
 E                |                  | 10         |              0 |
 Names            | [V]              | 11         |              0 |
 OFunction        |                  | 6          |              0 |
 OIdentity        |                  | -          |              0 |
 ORestricted      |                  | -          |              0 |
 ORIDs            |                  | 8          |              0 |
 ORole            | [OIdentity]      | 4          |              3 |
 OSchedule        |                  | 7          |              0 |
 OTriggered       |                  | -          |              0 |
 OUser            | [OIdentity]      | 5          |              3 |
 V                |                  | 9          |              0 |
------------------+------------------+------------+----------------+
 TOTAL = 11       |                  |            |              6 |             
------------------+------------------+------------+----------------+
orientdb {db=test}> bye