-
Notifications
You must be signed in to change notification settings - Fork 82
Document new NO_CHECK for SPD offline seeding #2758
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
Open
ConorNeo
wants to merge
3
commits into
neo4j:dev
Choose a base branch
from
ConorNeo:feature/offline-seeding-spd
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,10 +27,12 @@ This will help distribute the data across multiple servers in a Neo4j cluster. | |
| If you are creating the property shards on a self-managed server, the server that executes the `neo4j-admin database import` command must have sufficient storage space available for all of the property shards that will be created. | ||
| ==== | ||
|
|
||
| ==== Import using S3 | ||
|
|
||
| The following example shows how to import a set of CSV files, back them up to S3 using the `--target-location` and `--target-format` options, and then create a database using those seeds in S3. | ||
|
|
||
| . Using the `neo4j-admin database import` command, import data into the `foo-sharded` database, creating one graph shard and three property shards. | ||
| If the process is running on the same server as another Neo4j DBMS process, the latter must be stopped. | ||
| If the `neo4j-admin` process is running on the same server as a Neo4j DBMS process, the Neo4j DBMS process must be stopped. | ||
| The `--target-location` and `--target-format` options take the outputs of the import, turn them into uncompressed backups, and upload them to a location ready to be seeded from. | ||
| + | ||
| [source, shell] | ||
|
|
@@ -50,6 +52,35 @@ OPTIONS { | |
| }; | ||
| ---- | ||
|
|
||
| [role=label--new-2025.12] | ||
| ==== Import using local file system | ||
ConorNeo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| You can import data into a Neo4j cluster that has no access to any cloud. | ||
|
|
||
| . Using the `neo4j-admin database import` command, import data into the `foo-sharded` database, creating one graph shard and three property shards. | ||
| If the `neo4j-admin` process is running on the same server as a Neo4j DBMS process, the Neo4j DBMS process must be stopped. | ||
| + | ||
| [source, shell] | ||
| ---- | ||
| neo4j-admin database import full foo-sharded --nodes=nodes.csv --nodes=movies.csv --relationships=relationships.csv --input-type=csv --property-shard-count=3 --schema=schema.cypher | ||
| ---- | ||
|
|
||
| . Using allow and deny database allocate a single shard to each server in the cluster. | ||
| See xref:clustering/databases.adoc#cluster-allow-deny-db[Controlling locations with allowed/denied databases] | ||
| . Move the produced backups from the local file system of the machine used for the import to the servers hosting each of the shards. | ||
| Each server should have one backup, and the backups must reside in the same path on each server. | ||
| . On each server, update the _neo4j.conf_ to include the correct settings for file seeding as outlined in xref:database-administration/standard-databases/seed-from-uri.adoc[Create a database from a URI]. | ||
| . Create the database `foo-sharded` as a sharded property database by seeding it from your backups in the servers file systems: | ||
| + | ||
| [source, cypher] | ||
| ---- | ||
| CREATE DATABASE `foo-sharded` | ||
| DEFAULT LANGUAGE CYPHER 25 | ||
| PROPERTY SHARDS { COUNT 3 } | ||
| OPTIONS { | ||
| seedUri: `file:/backusp/`, seedOptions: 'NO_CHECK' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the first time we mention |
||
| }; | ||
| ---- | ||
|
|
||
| The cluster automatically distributes the data across its servers. | ||
| For more information on seed providers, see xref:database-administration/standard-databases/seed-from-uri.adoc[Create a database from a URI]. | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.