Neo4j集群安装

1:集群规划
nosql1    192.168.100.131
nosql2    192.168.100.132
nosql3    192.168.100.133

2:在ubutu客户端下载解压neo4j安装包,并上传到集群服务器
mmicky@wyy:/app$ sudo tar zxf /home/mmicky/Soft/nosql/neo4j-enterprise-1.9.4-unix.tar.gz
mmicky@wyy:/app$ sudo chown -R root:root neo4j-enterprise-1.9.4
mmicky@wyy:/app$ sudo mv neo4j-enterprise-1.9.4 neo4j194
mmicky@wyy:/app$ sudo scp -r neo4j194 root@192.168.100.131:/app/
mmicky@wyy:/app$ sudo scp -r neo4j194 root@192.168.100.132:/app/
mmicky@wyy:/app$ sudo scp -r neo4j194 root@192.168.100.133:/app/

3:打开节点终端,编辑相关的配置文件
注意:Neo4j对打开文件数至少是40000,所以要对系统参数进行设置,不然启动的时候会出现如下的错误:
Neo4j集群安装 - mmicky - mmicky 的博客

节点nosql1(192.168.100.131)
[root@nosql1 neo4j194]# vi /etc/security/limits.conf
root    soft    nofile  40000
root    hard    nofile  40000
[root@nosql1 neo4j194]# vi /etc/pam.d/login
session    required    pam_limits.so
[root@nosql1 neo4j194]# vi conf/neo4j-server.properties
org.neo4j.server.webserver.address=0.0.0.0
org.neo4j.server.database.mode=HA
[root@nosql1 neo4j194]# vi conf/neo4j.properties
ha.server_id=1
ha.server=192.168.100.131:6001
ha.cluster_server=192.168.100.131:5001
ha.initial_hosts=192.168.100.131:5001,192.168.100.132:5001,192.168.100.133:5001

节点nosql2(192.168.100.132)
[root@nosql2 neo4j194]# vi /etc/security/limits.conf
root    soft    nofile  40000
root    hard    nofile  40000
[root@nosql2 neo4j194]# vi /etc/pam.d/login
session    required    pam_limits.so
[root@nosql2 neo4j194]# vi conf/neo4j-server.properties
org.neo4j.server.webserver.address=0.0.0.0
org.neo4j.server.database.mode=HA
[root@nosql2 neo4j194]# vi conf/neo4j.properties
ha.server_id=2
ha.server=192.168.100.132:6001
ha.cluster_server=192.168.100.132:5001
ha.initial_hosts=192.168.100.131:5001,192.168.100.132:5001,192.168.100.133:5001

节点nosql3(192.168.100.133)
[root@nosql3 neo4j194]# vi /etc/security/limits.conf
root    soft    nofile  40000
root    hard    nofile  40000
[root@nosql3 neo4j194]# vi /etc/pam.d/login
session    required    pam_limits.so
[root@nosql3 neo4j194]# vi conf/neo4j-server.properties
org.neo4j.server.webserver.address=0.0.0.0
org.neo4j.server.database.mode=HA
[root@nosql3 neo4j194]# vi conf/neo4j.properties
ha.server_id=3
ha.server=192.168.100.133:6001
ha.cluster_server=192.168.100.133:5001
ha.initial_hosts=192.168.100.131:5001,192.168.100.132:5001,192.168.100.133:5001

4:由于修改了系统配置文件,重启各节点后再启动集群
[root@nosql1 neo4j194]# bin/neo4j start
[root@nosql2 neo4j194]# bin/neo4j start
[root@nosql3 neo4j194]# bin/neo4j start
Neo4j集群安装 - mmicky - mmicky 的博客

5:访问集群
在客户机ubuntu上打开浏览器,录入下列几个地址都可访问:
http://192.168.100.131:7474/webadmin
http://192.168.100.132:7474/webadmin
http://192.168.100.133:7474/webadmin
Neo4j集群安装 - mmicky - mmicky 的博客
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Graph Algorithms: Practical Examples in Apache Spark and Neo4j By 作者: Mark Needham – Amy E. Hodler ISBN-10 书号: 1492047686 ISBN-13 书号: 9781492047681 Edition 版本: 1 出版日期: 2019-01-04 pages 页数: (217) Discover how graph algorithms can help you leverage the relationships within your data to develop more intelligent solutions and enhance your machine learning models. You’ll learn how graph analytics are uniquely suited to unfold complex structures and reveal difficult-to-find patterns lurking in your data. Whether you are trying to build dynamic network models or forecast real-world behavior, this book illustrates how graph algorithms deliver value—from finding vulnerabilities and bottlenecks to detecting communities and improving machine learning predictions. This practical book walks you through hands-on examples of how to use graph algorithms in Apache Spark and Neo4j—two of the most common choices for graph analytics. Also included: sample code and tips for over 20 practical graph algorithms that cover optimal pathfinding, importance through centrality, and community detection. Learn how graph analytics vary from conventional statistical analysis Understand how classic graph algorithms work, and how they are applied Get guidance on which algorithms to use for different types of questions Explore algorithm examples with working code and sample datasets from Spark and Neo4j See how connected feature extraction can increase machine learning accuracy and precision Walk through creating an ML workflow for link prediction combining Neo4j and Spark

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值