neo4j

centos下neo4j安装和设置开机自启动.

谁说我不能喝 提交于 2019-12-06 12:04:39
centos下neo4j安装和设置开机自启动. 1. 资源准备 CentOS 7.4 jdk 1.8+ neo4j-community-3.5.13 https://neo4j.com/artifact.php?name=neo4j-community-3.5.13-unix.tar.gz 2. 安装neo4j 安装jdk1.8(略) 上传neo4j安装包到服务器/opt目录下,并解压 tar -zxvf neo4j-community-3.5.13-unix.tar.gz 修改neo4j配置文件 conf/neo4j.conf,只需要修改使neo4j可以外网访问即可,其他按默认配置,大概70行左右,找到配置去掉前面的“#” dbms.connectors.default_listen_address=0.0.0.0 进入neo4j安装程序bin目录,启动neo4j ./neo4j start 到页面浏览 http://localhost:7474。如果出现页面表示neo4j安装成功,初始化账号密码为neo4j/neo4j 3. 设置neo4j开机启动 进入neo4j安装目录,并创建脚本start.sh和stop.sh,其中JAVA_HOME按照自己的实际路径填写 vim start.sh #!/bin/bash export JAVA_HOME=/opt/jdk1.8.0_161

Neo4j on Amazon EC2 - Not accessible from remote machines

自闭症网瘾萝莉.ら 提交于 2019-12-06 11:57:58
I am currently attempting to get neo4j installed properly on an EC2 instance with RHEL. Currently I can not hit the server on port 7474 from a browser to see the neo4j webadmin or browser. As of right now I can successfully access localhost:7474 which leads me to believe it is some level of access issue with remote connections. What I have done so far: Installed Oracle Java 1.7 on the EC2 instance Installed neo4j-community-2.0.1 Added org.neo4j.server.webserver.address=0.0.0.0 to the neo4j-server.properties Added a custom TCP rule in EC2 UI for port 7474 allowing 0.0.0.0/0 Added 7474 to

unable to delete node labels in neo4j

徘徊边缘 提交于 2019-12-06 11:50:15
I have created 2 labels Person,Movies by : CREATE (ee:Person { name: "test", id: "1" }) CREATE (m:Movie { name: "movie_1", id: "2" }) When I Run : START n=node(*) OPTIONAL MATCH (n)-[r]-() DELETE n,r; But The Label still exists. How can I delete the label? So, you don't actually delete labels you remove them (e.g. remove m:Movie). delete is used to remove nodes and/or relationships from the database. The following cypher example will match your movie node, remove the existing label, add a new one and return the node. When it is returned you can see that it has a different label. match (m:Movie

Neo4j browser not working in Google Chrome

99封情书 提交于 2019-12-06 11:31:24
Have not been able to use Chrome (Version 42.0.2311.90 (64-bit)) as a neo4j browser client after upgrading to the latest XCode / Command Tools in MacOS Yosemite 10.10.3 . Safari is working fine though. Is there an easy way to pinpoint to the actual problem? I'm using Neo4j 2.2.1 The following is a screenshot from the JavaScript console showing the errors: mostly load resource errors and an uncaught error failing to instatiate module neo4jApp . It works fine under Safari. It also works in a Chrome Incognito Window. Partially resetting settings is a trial and error exercise. While resetting all

Spring data neo4j aspectJ setup error

痴心易碎 提交于 2019-12-06 11:21:48
问题 I can setup spring data and neo4j in STS but I would like to also take advantage of the aspectJ capabilities provided by Spring data. I have checked and used the Cineasts example as a helper example but it seems that I cannot setup correctly my project, the steps I do are: Create new maven application. Add the provided addons on pom.xml. The problem I am facing is that in every class in my project at the package declaration there is an error that states can't determine annotations of missing

Neo4j regex string matching not returning expected results

折月煮酒 提交于 2019-12-06 11:16:53
I'm trying to use the Neo4j 2.1.5 regex matching in Cypher and running into problems. I need to implement a full text search on specific fields that a user has access to. The access requirement is key and is what prevents me from just dumping everything into a Lucene instance and querying that way. The access system is dynamic and so I need to query for the set of nodes that a particular user has access to and then within those nodes perform the search. I would really like to match the set of nodes against a Lucene query, but I can't figure out how to do that so I'm just using basic regex

neo4j handaling a long transation on one iterator

守給你的承諾、 提交于 2019-12-06 11:07:17
I would like to go over all my "user" nodes in the graph and do some action on them. The problem is that I have too many "user" nodes, and I can't hold all of them on the heap. so, doing something like: try (Transaction tx = graphDb.beginTx()) { Iterator<Node> n_column = autoNodeIndex.get( "type", "user" ); while (n_column.hasNext()) { //create relationship for node... } tx.success(); } will cause GC overhead exception. How can I split it to few transactions , but on the same iterator? I thought about nested transaction, but the manual says differently. Nested transaction will roll the local

Running 2 services

随声附和 提交于 2019-12-06 10:48:50
I'm building an image for github's Linkurious project, based on an image already in the hub for the neo4j database. the neo image automatically runs the server on port 7474 and my image runs on port 8000. when I run my image I publish both ports (could I do this with EXPOSE?): docker run -d --publish=7474:7474 --publish=8000:8000 linkurious but only my server seems to run. if I hit http://[ip]:7474/ I get nothing. is there something special I have to do to make sure they both run? * Edit I * here's my Dockerfile: FROM neo4j/neo4j:latest RUN apt-get -y update RUN apt-get install -y git RUN apt

Neo4j - How do you do parallel insertion into a linked list via Cypher over REST?

此生再无相见时 提交于 2019-12-06 10:42:53
I want to create a linked list using Cypher over REST. If I create the head of the list using the following query: MERGE (headNode:HEAD {list:"mylist"}) WITH headNode MERGE headNode-[:LINK]->(headNode) RETURN headNode And then do the insert using this query: MERGE (headNode:HEAD {list:"mylist"})-[old:LINK]->after DELETE old CREATE headNode-[:LINK]->(newNode:LINKNODE { number : {nodeNumber} })-[:LINK]->after Then everything is fine as long as I don't run multiple insert queries in parallel. But when I do I start to get consequences that are bad. I either get (depending on the timing) an error

Graph Database Newbie Q- How to decide on the direction of a relation between 2 nodes

狂风中的少年 提交于 2019-12-06 10:23:00
How do you decide the verb-direction of a relation ? E.g I have a Country falling under a Sub REgion which in turn is under a Region. Which one would be better and are there any thumb rules on deciding the direction. (Region)-[HAS]->(Sub Region)-[HAS]->(Country) or (Region)<-[BELONGS_TO]-(Sub Region)<-[BELONGS_TO]-(Country) Regards San I agree with @InverFalcon that directionality is mostly a subjective decision. However, there may be (at least) one situation in which you might want to use a specific direction, especially if that will make an important use case faster. This is related to the