Cannot drive neo4j-etl with my JAVA 8 environment
yaowei2010 opened this issue · 0 comments
yaowei2010 commented
Question
I would like to use the neo4j-etl tool with my RDMS database to do the ETL work, but I cannot drive the software because the response which I always got would be "check my JAVA environment".
I use the command from the tutorial: https://neo4j-contrib.github.io/neo4j-etl/#neo4j-etl-cli
./bin/neo4j-etl export \
--rdbms:url jdbc:mysql://localhost:3306/northwind?autoReconnect=true&useSSL=false \
--rdbms:user neo4j \
--rdbms:password neo4j \
--import-tool $NEO4J_HOME/bin \
--options-file /tmp/northwind/options.json \
--csv-directory /tmp/northwind \
--destination /home/bioinfo/neo4j/data/databases/graph.db/ \
--quote '"' --force
But what I got is :
- Illegal command (NullPointerException: null)
usage: neo4j-etl <command> [ <args> ]
Commands are:
export Export from RDBMS and import into NEO4J via CSV files.
generate-metadata-mapping Create RDBMS to Neo4j metadata mapping Json.
help Display help information
See 'neo4j-etl help <command>' for more information on a specific command.
It seems 'java' command is not available.
Please check your JAVA_HOME environment variable.
Also check if you have a valid Java 8 environment
I have check my java environment was 8 version.
I do not know why I always got the message.
Specifications (Mandatory)
Currently used versions
Versions
- OS: Rocky OS 9.3
- Library:
- Neo4j: neo4j docker image the latest version