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

Step 3 neo4j-import no longer works #13

Open
zenonp opened this issue Feb 23, 2023 · 0 comments
Open

Step 3 neo4j-import no longer works #13

zenonp opened this issue Feb 23, 2023 · 0 comments

Comments

@zenonp
Copy link

zenonp commented Feb 23, 2023

The correct command since at least neo4j-4.4 is

neo4j-admin database import full \
--nodes=Block=blocks_header.csv,blocks.csv \
--nodes=Transaction=transactions_header.csv,transactions.csv \
--nodes=Output=outputs_header.csv,outputs.csv \
--nodes=Address=addresses_header.csv,addresses.csv \
--nodes=Entity=entities.csv \
--relationships=CONTAINS=rel_block_tx_header.csv,rel_block_tx.csv \
--relationships=OUTPUT=rel_tx_output_header.csv,rel_tx_output.csv \
--relationships=INPUT=rel_input_header.csv,rel_input.csv \
--relationships=USES=rel_output_address_header.csv,rel_output_address.csv \
--relationships=BELONGS_TO=rel_address_entity.csv <db_name> 

and the database must not exist; it has to be created after the import.

Other possible import problems: log4j is required, the empty directory $NEO4J_HOME/data/databases/<db_name> must exist and be writable by the user who runs neo4j-admin. After the import, the <db_name> directory and all its contents, as well as the log directory and all its contents, must be chowned to the neo4j user:group before the neo4j server is started. Finally, if neo4j is community edition and <db_name> is anything other than neo4j, initial.dbms.default_database in neo4j.conf must be set to <db_name>.

With a relatively recent neo4j, dbms.security.procedures.unrestricted probably needs to be set in neo4j.conf for the computation plugin to be able to run.

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