orientechnologies/orientdb

Fail to import graphson file to Orientdb in Docker

buchuitoudegou opened this issue · 0 comments

OrientDB Version: 3.2.28

Java Version: jdk8

OS: Docker maven:3.6-jdk8-alpine

Expected behavior

I tried to import a graph in grahson format using the oriendb console.

Actual behavior

The console report the error:

Importing database DATABASE /tmp/freebase_small.json2_noslash.json -format=graphson -merge=true...
Started import of database 'plocal:/srv/db' from /tmp/freebase_small.json2_noslash.json...Error on database import happened just before line 0, column 8
com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Invalid format. Found unsupported tag 'mode'
	at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:234)
	at com.orientechnologies.orient.console.OConsoleDatabaseApp.importDatabase(OConsoleDatabaseApp.java:2550)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:456)
	at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:283)
	at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:144)
	at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:162)

Error: com.orientechnologies.orient.core.db.tool.ODatabaseExportException: Error on importing database 'db' from file: /tmp/freebase_small.json2_noslash.json

Error: com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Invalid format. Found unsupported tag 'mode'

The tag mode should be supported in graphson according to this document

Steps to reproduce

connect env embedded:/srv admin admin;
create database db plocal users (admin identified by 'admin' role admin);
open db admin admin;
import database <my-graphson-file> -format=graphson