instructions.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. This directory contains quick instructions and an example of how to set up fabric
  2. with Neo4j + Helm.
  3. Step 1: Create custom configmap.
  4. kubectl apply -f deployment-scenarios/fabric/fabric-configmap.yaml
  5. This configmap assumes that in the later step, we're deploying a single instance under
  6. the name "fabric-example". Note that the virtual fabric database must be on a standalone
  7. instance, not a cluster.
  8. Step 2: Install a standalone instance using the provided parameters.
  9. helm install fabric-example -f deployment-scenarios/fabric/standalone-fabric.yaml .
  10. Step 3: Log in and run Fabric queries!
  11. Run cypher-shell
  12. kubectl run -it --rm cypher-shell \
  13. --image=neo4j:4.1.0-enterprise \
  14. --restart=Never \
  15. --namespace default \
  16. --command -- ./bin/cypher-shell -u neo4j -p "mySecretPassword" \
  17. -a neo4j://fabric-example-neo4j.default.svc.cluster.local
  18. Let's create two databases to fabric query, and put a single node in each.
  19. neo4j@system> :use system
  20. neo4j@system> create database shard1;
  21. 0 rows available after 297 ms, consumed after another 0 ms
  22. neo4j@system> create database shard2;
  23. 0 rows available after 17 ms, consumed after another 0 ms
  24. neo4j@system> :use shard1
  25. neo4j@shard1> create (:Person { name: "David" });
  26. 0 rows available after 69 ms, consumed after another 0 ms
  27. Added 1 nodes, Set 1 properties, Added 1 labels
  28. neo4j@shard1> :use shard2
  29. neo4j@shard2> create (:Person { name: "Sarah" });
  30. 0 rows available after 33 ms, consumed after another 0 ms
  31. Added 1 nodes, Set 1 properties, Added 1 labels
  32. Finally -- let's run a fabric query!
  33. neo4j@fabric> USE shard1
  34. MATCH (n) RETURN n
  35. UNION
  36. USE shard2
  37. MATCH (n) RETURN n;