Skip to content

oetl.sh can't find json config file #65

@ruvinskyan

Description

@ruvinskyan

Hello.
I am trying to import data from json file with ETL in my docker container.
When running official command from Orentdb Docker :
docker run --rm -it -v /orientdb/config orientdb /orientdb/bin/oetl.sh importAccount.json

I am receiving this error :

OrientDB etl v.3.2.2 (build 6df1d1942b88896dabea123fe1b8b0c6975e025a, branch UNKNOWN) https://www.orientdb.com
2021-12-09 12:46:46:382 INFO Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776 [ONative]Exception in thread "main" com.orientechnologies.orient.core.exception.OConfigurationException: Error on loading config file: importAccount.json
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParametersWithContext(OETLProcessorConfigurator.java:89)
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParameters(OETLProcessorConfigurator.java:68)
at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:121)
Caused by: java.io.FileNotFoundException: importAccount.json (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at com.orientechnologies.common.io.OIOUtils.readFileAsString(OIOUtils.java:133)
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParametersWithContext(OETLProcessorConfigurator.java:79) ... 2 more

This is my container CLI, as you can see importAccount.json file is in bin folder.
OrientCLI

As I understand oetl.sh can't find json file specified because of this error:

(No such file or directory)

I tried moving this file writing full path but nothing helps.

Inside docker oetl.sh working fine until it needs to insert data from json file. (Orient is running so data can't be inserted)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions