在neo4j中重建标签索引 [英] Rebuild of label index in neo4j

查看:213
本文介绍了在neo4j中重建标签索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Neo4J实例突然停止工作,由于一些不相关的日志文件,我的驱动器空间不足.无论如何,现在我无法启动Neo4J,它会一遍又一遍地启动.如果我检查数据库的一致性,则会收到以下消息. (在3.3.5或3.4.1版本上均不起作用)

My Neo4J instance suddenly stopped working, I think my drive ran out of space due to some unrelated logfiles. Anyway, now I cannot start Neo4J, it start, over and over again. If i check the consistency of the database I get the following message. (It does not work neither on version 3.3.5 or 3.4.1)

WARN:标签索引未正确关闭,需要重新构建. 标签索引:neostore.labelscanstore.db 警告:索引未正确关闭,需要重新构建. Index [IndexRule [id = 1,描述符= Index(GENERAL,:label0),provider = {key = lucene,version = 1.0}]]] 警告:索引未正确关闭,需要重新构建. Index [IndexRule [id = 3,描述符= Index(GENERAL,:label1),provider = {key = lucene,version = 1.0}]]

WARN : Label index was not properly shutdown and rebuild is required. Label index: neostore.labelscanstore.db WARN : Index was not properly shutdown and rebuild is required. Index[ IndexRule[id=1, descriptor=Index( GENERAL, :label0 ), provider={key=lucene, version=1.0}] ] WARN : Index was not properly shutdown and rebuild is required. Index[ IndexRule[id=3, descriptor=Index( GENERAL, :label1 ), provider={key=lucene, version=1.0}] ]

我看到有一些非常古老的答案可能与某些相似的东西有关.它们仍然有效还是我应该如何解决呢?

I see that there are a few very old answers related to something that might be similar. Are they still valid or how am I supposed to solve this?

当我尝试启动Neo4J时,我会得到

When I try to start Neo4J I get

11月23日15:36:08 v22018054377066500.supersrv.de systemd [1]:neo4j.service:启动请求重复的速度过快. Nov 23 15:36:08 v22018054377066500.supersrv.de systemd [1]:neo4j.service:失败,结果为退出代码". Nov 23 15:36:08 v22018054377066500.supersrv.de systemd [1]:无法启动Neo4j图形数据库. root @ v22018054377066500:〜#服务neo4j start root @ v22018054377066500:〜#服务neo4j状态 ●neo4j.service-Neo4j图形数据库 已加载:已加载(/lib/systemd/system/neo4j.service;已启用;供应商预设:已启用) 活动:自星期五2018-11-23 15:36:21 CET起激活(自动重启)(结果:退出代码); 2毫秒前 进程:22073 ExecStart =/usr/share/neo4j/bin/neo4j控制台(代码=已退出,状态= 1/失败)

Nov 23 15:36:08 v22018054377066500.supersrv.de systemd[1]: neo4j.service: Start request repeated too quickly. Nov 23 15:36:08 v22018054377066500.supersrv.de systemd[1]: neo4j.service: Failed with result 'exit-code'. Nov 23 15:36:08 v22018054377066500.supersrv.de systemd[1]: Failed to start Neo4j Graph Database. root@v22018054377066500:~# service neo4j start root@v22018054377066500:~# service neo4j status ● neo4j.service - Neo4j Graph Database Loaded: loaded (/lib/systemd/system/neo4j.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Fri 2018-11-23 15:36:21 CET; 2ms ago Process: 22073 ExecStart=/usr/share/neo4j/bin/neo4j console (code=exited, status=1/FAILURE)

推荐答案

最近,我处于同样的起步状态.归根结底,所有索引和约束的删除和重新创建解决了我的问题.

Recently, I was in the same starting situation. At the end of the day the removal and recreation of all indices and constrains solved my issue.

DROP INDEX ON :Person(name)
DROP CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE

CREATE INDEX ON :Person(name)
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE

这篇关于在neo4j中重建标签索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆