-
Notifications
You must be signed in to change notification settings - Fork 0
/
Neo4j cluster in Grid5000
66 lines (36 loc) · 1.57 KB
/
Neo4j cluster in Grid5000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
1- connect to Grid5000
2- deploy 3 nodes :
oarsub -I -l nodes=3,walltime=6 -t deploy
kadeploy3 -f $OAR_NODE_FILE -e jessie-x64-base -k
cat $OAR_NODE_FILE
echo "deb http://httpredir.debian.org/debian jessie-backports main" | sudo tee -a /etc/apt/sources.list.d/jessie-backports.list
sudo apt-get update
sudo apt-get -t jessie-backports install ca-certificates-java
apt-get install apt-transport-https
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
sudo apt-get install neo4j=1:3.5.3
3- In the front end console :
scp jdk-8u131-linux-x64.tar.gz root@genepi-2:/home
4- In the created nodes (for every node):
tar xzf /home/jdk-8u131-linux-x64.tar.gz
rm -R /usr/bin/java
mkdir /usr/bin/java && cp -r jdk1.8.0_131/* /usr/bin/java
export JAVA_HOME=/usr/bin/java;
vi /etc/neo4j/neo4j.conf
dbms.connectors.default_listen_address=0.0.0.0
#dahu-7 is the host name of the current node
dbms.connectors.default_advertised_address=dahu-7
dbms.mode=CORE
causal_clustering.minimum_core_cluster_size_at_formation=3
causal_clustering.minimum_core_cluster_size_at_runtime=3
causal_clustering.discovery_members=dahu-5:5000,dahu-6:5000,dahu-7:5000
5- Configure username and password for shell user.
6- Start servers:
neo4j start
7- Query neo4j client:
cypher-shell
8- connect using the following username and password : neo4j - neo4j
9- change the password : CALL dbms.changePassword('my_new_secure_passw0rd');
10- restart server : neo4j restart