Skip to content

Step 3 neo4j-import no longer works #13

@zenonp

Description

@zenonp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions