Dive into the world of Neo4j, where nodes, edges, and attributes come together in a symphony of data excellence. đâš
Deploying Neo4j with Helm
Unlock the power of graph-data-science with a breeze! Follow these steps:
- Prepare Your Helm Chart:
- Create a values.yaml file with essential configurations.
neo4j:
name: licenses
acceptLicenseAgreement: "yes"
edition: enterprise
resources:
cpu: "1000m"
memory: "2Gi"
volumes:
data:
mode: defaultStorageClass
env:
NEO4J_PLUGINS: '["graph-data-science"]'
config:
dbms.security.procedures.unrestricted: "gds.*"
- Example Helm Chart available [here](https://github.com/neo4j/helm-charts)
- Deploy with Helm:
- Execute a single command for deployment.
helm repo add neo4j https://helm.neo4j.com/neo4j
helm repo update
helm upgrade --install neo4j-cluster neo4j/neo4j --namespace neo4j --values values.yaml --version v5.15.0
-
Verification:
- Confirm your installation with
kubectl get pod
.
- Confirm your installation with
~ kubectl get pod
NAME READY STATUS RESTARTS AGE
neo4j-cluster-0 1/1 Running 0 124m
- Graph-Data-Science Check:
- Verify graph-data-science with a Neo4j console query.
RETURN gds.version();
Importing Data to Neo4j Cluster
Simplify the database import process effortlessly:
- Upload Dump File:
- Move your dump file to the pod.
kubectl cp Downloads/neo4j.dump neo4j/neo4j-cluster-0:/import/neo4j.dump
- Run Import Command:
- Execute the import command line.
kubectl exec neo4j-cluster-0 -- neo4j-admin database load --from-path=/import neo4j --overwrite-destination=true --verbose
â ïž Issue Resolution:
- Encounter locking issues? Delete the lock file.
Caused by: org.neo4j.io.locker.FileLockException: Lock file has been locked by another process: /data/databases/neo4j/database lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)
kubectl exec neo4j-cluster-0 -- rm -rf /data/databases/neo4j/database_lock
- Restart Neo4j:
- Ensure data loading completion.
kubectl exec neo4j-cluster-0 -- neo4j restart
Ready to unravel the magic of graph databases? đâš Connect with me on:
Top comments (0)