Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anjimoo opened this issue Dec 9, 2021 · 0 comments
Open

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

Anjimoo opened this issue Dec 9, 2021 · 0 comments

Comments

@Anjimoo
Copy link

Anjimoo commented Dec 9, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant