Re: [Neo4j] Security threat to Neo4j :

2013-12-17 Thread Lasse Westh-Nielsen
On Tue, Dec 17, 2013 at 4:48 PM, Navrattan Yadav < navrattan.craterz...@gmail.com> wrote: > We never expose any database layer directly to any of app but we haven't > done any of the points mentioned below > Navrattan, If you are running Neo4j Server in AWS with neither a VPC or security groups

Re: [Neo4j] Sample monitoring code for neo4j and a question about REST output

2013-12-17 Thread Michael Hunger
return type(r) Empty curly braces mean no props Sent from mobile device Am 18.12.2013 um 06:41 schrieb Alan Robertson : > The query in the script below produces the following output: > {"results":[{"columns":["one","rel","two"],"data":[{"row":[{"domain":"metadata","nodetype":"CMAclass","name":"

Re: [Neo4j] Sample monitoring code for neo4j and a question about REST output

2013-12-17 Thread Wes Freeman
So, you have two options. You can change it to return type(r), or you can tell the transactional endpoint you want a more verbose output. http://docs.neo4j.org/chunked/milestone/rest-api-transactional.html#rest-api-execute-statements-in-an-open-transaction-in-rest-format-for-the-return 1) https:/

[Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Philippe Baumard
@Michael Hunger Ok i'll put an issue. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.googl

[Neo4j] Sample monitoring code for neo4j and a question about REST output

2013-12-17 Thread Alan Robertson
The query in the script below produces the following output: {"results":[{"columns":["one","rel","two"],"data":[{"row":[{"domain":"metadata","nodetype":"CMAclass","name":"HbRing"},{},{"domain":"metadata","nodetype":"CMAclass","name":"CMAclass"}]}]}],"errors":[]} What I noticed is that the relation

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Kyle Silvestro
http://localhost:7474/webadmin/#/console/ Neo's client On Tuesday, December 17, 2013 4:42:53 PM UTC-8, Michael Hunger wrote: > > Looks as if the client aborts the connection? > > What kind of client are you using? > > Michael > > Am 17.12.2013 um 23:57 schrieb Kyle Silvestro > >: > > Posted > >

[Neo4j] How can we share a Neo4j HA cluster with multiple app ?

2013-12-17 Thread Aman Gupta
Hello, I have posted on question on below link: http://stackoverflow.com/q/20584470/1660192 Basically I want to share clustered DB with 2 Spring application where *App1* is generating some data which should be used by *App2.* I have cluster of 4 instances and running *App1* successfully but cou

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Michael Hunger
Regarding 1.9 vs. 2.0 If your project is just starting then I would recommend 2.0 (2.1 with more performance enhancements is the next version). If you're already in production I would probably wait for 2.1 if you don't want to upgrade too many pieces of your application now. Feel free to share

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Michael Hunger
How large are your store-files on disk? I would increase the memory mapped relationship-store file-size Why do you configure your perm-size to 16GB ? I would leave it like it is, or at most 1-2G. I don't think you need 45G heap, actually that will limit your available memory for memory mapping

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Guan Guan
Hi Michael, Thank you very much for the reply. We are using neo4j 1.9.4, embedded mode with its JAVA api. Here is the code I initialize embedded graphDB graphDB = new GraphDatabaseFactory() .newEmbeddedDatabaseBuilder(this.path) .setConfig(dbConfig)

Re: [Neo4j] Can neo4j be used for cross reference agregations?

2013-12-17 Thread John Smith
Let's take a step back. If I understand correctly the model should look like this... Nodes: Account Phone Email Ip Relationships: Account-[:has]->Phone Account-[:has]->Email Account-[:has]->Ip Phone-[:has]->Account Phone-[:has]->Email Phone-[:has]->Ip Ip-[:has]->Account Ip-[:has]->Phone Ip-[:has

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Michael Hunger
I think you might run into contention issues between the different threads inserting nodes and rels. Mostly around locking. Whenever you connect nodes both will be locked, so other threads have to wait until they can update those nodes too. That's where the subgraph aggregation helps. Usually N

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Eugene pr3d4t0r Ciurana
On Tuesday, December 17, 2013 6:41:14 PM UTC-6, Michael Hunger wrote: > > so are you currently using embedded? Not really sure from your description > it looks as if server your topology says embedded ... ?? > > So what is the server spending it's time on? CPU, IO, IO-Waits, GC ? > Would it be pos

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Eugene pr3d4t0r Ciurana
On Tuesday, December 17, 2013 6:41:14 PM UTC-6, Michael Hunger wrote: > > so are you currently using embedded? Not really sure from your description > it looks as if server your topology says embedded ... ?? > > So what is the server spending it's time on? CPU, IO, IO-Waits, GC ? > Would it be p

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Kyle Silvestro
Neo's Client > On Dec 17, 2013, at 4:42 PM, Michael Hunger > wrote: > > Looks as if the client aborts the connection? > > What kind of client are you using? > > Michael > >> Am 17.12.2013 um 23:57 schrieb Kyle Silvestro : >> >> Posted >> >> >> >>> On Tue, Dec 17, 2013 at 2:48 PM, Mark Ne

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Michael Hunger
Looks as if the client aborts the connection? What kind of client are you using? Michael Am 17.12.2013 um 23:57 schrieb Kyle Silvestro : > Posted > > > > On Tue, Dec 17, 2013 at 2:48 PM, Mark Needham wrote: > Can you post the full contents of the data/graph.db/messages.log? > > > On 17 De

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Michael Hunger
Hi Eugene, so are you currently using embedded? Not really sure from your description it looks as if server your topology says embedded ... ?? So what is the server spending it's time on? CPU, IO, IO-Waits, GC ? Would it be possible for you to gather some stack traces while it is really busy? O

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Eugene pr3d4t0r Ciurana
Hi Michael - I'm in the same project as Guan. Use case: continuous feed of nodes and relationships, millions per day, 7x24. Nodes are in the 150 to 10,000 bytes. Sources and relationships are coming from multiple data sources. Relationships can be between any two nodes, regardless of source

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Kyle Silvestro
Posted On Tue, Dec 17, 2013 at 2:48 PM, Mark Needham wrote: > Can you post the full contents of the data/graph.db/messages.log? > > > On 17 December 2013 22:40, Michael Hunger < > michael.hun...@neopersistence.com> wrote: > >> Please share more context, otherwise we cannot hel you. >> >> Michae

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Mark Needham
Can you post the full contents of the data/graph.db/messages.log? On 17 December 2013 22:40, Michael Hunger wrote: > Please share more context, otherwise we cannot hel you. > > Michael > > Am 17.12.2013 um 23:32 schrieb Kyle Silvestro : > > A specific query however I'm getting this on many diff

Re: [Neo4j] Import data from *.owl file into Neo4j (owlapi, neo4j.graphdb)

2013-12-17 Thread Johannes Mockenhaupt
Isn't this also the answer to your question? :-) https://groups.google.com/d/msg/neo4j/64Iv_P7n9ro/ZnXW9jNY7VgJ On 12/16/2013 06:51 PM, to...@rojek.cc wrote: > I'm trying to move my ontology (*.owl file) into neo4j to do queries on > it. I found some helpful information here >

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Michael Hunger
Please share more context, otherwise we cannot hel you. Michael Am 17.12.2013 um 23:32 schrieb Kyle Silvestro : > A specific query however I'm getting this on many different queries. > > > > On Tuesday, December 17, 2013 2:29:18 PM UTC-8, Mark Needham wrote: > What did you do to get that ex

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Kyle Silvestro
A specific query however I'm getting this on many different queries. On Tuesday, December 17, 2013 2:29:18 PM UTC-8, Mark Needham wrote: > > What did you do to get that exception? A specific query or? > > > On 17 December 2013 22:25, Kyle Silvestro >wrote: > >> Neo 2.0.0 >> >> >> Caused by:

Re: [Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Mark Needham
What did you do to get that exception? A specific query or? On 17 December 2013 22:25, Kyle Silvestro wrote: > Neo 2.0.0 > > > Caused by: java.io.IOException: Broken pipe > > at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) ~[na:1.7.0_45] > > at sun.nio.ch.SocketDispatcher.writev(SocketD

[Neo4j] Caused by: java.io.IOException: Broken pipe : How can this be fixed?

2013-12-17 Thread Kyle Silvestro
Neo 2.0.0 Caused by: java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) ~[na:1.7.0_45] at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) ~[na:1.7.0_45] at sun.nio.ch.IOUtil.write(IOUtil.java:148) ~[na:1.7.0_45] at sun.nio.ch.SocketChannel

Re: [Neo4j] having multiple write servers

2013-12-17 Thread Alex Frieden
What should I be getting? Any theoretical limitations? On Dec 17, 2013 4:56 PM, "Alex Frieden" wrote: > This is embedded mode. I might try optimizing some of the for loops > On Dec 17, 2013 4:14 PM, "Michael Hunger" < > michael.hun...@neopersistence.com> wrote: > >> How so currently? Transact

Re: [Neo4j] having multiple write servers

2013-12-17 Thread Alex Frieden
This is embedded mode. I might try optimizing some of the for loops On Dec 17, 2013 4:14 PM, "Michael Hunger" wrote: > How so currently? Transactional cypher endpoint? With parameters? Should > be able to achieve more that 1500 nodes / s. > > Michael > > Am 17.12.2013 um 18:01 schrieb Alex Frie

Re: [Neo4j] Can neo4j be used for cross reference agregations?

2013-12-17 Thread John Smith
So I should create nodes as follows... CREATE (e1:Account {account: "12345"}), (e2:Phone {account: "555-555-"}), (e2:Email {email: "john.smith@gmail"}), (e1)-[:KNOWS]->(e2),(e1)-[:KNOWS]->(e3),(e2)-[:KNOWS]->(e1),(e2)-[:KNOWS]->(e3),(e3)-[:KNOWS]->(e1),(e3)-[:KNOWS]->(e2) But then for the ne

Re: [Neo4j] USE INDEX doesn't work when WHERE has IN

2013-12-17 Thread Debajyoti Roy
Thanks ! On Tuesday, December 17, 2013 3:17:27 PM UTC-5, Wes Freeman wrote: > > Same with OR. > > Please vote or post a new issue specific to IN: > https://github.com/neo4j/neo4j/issues/861 > > Wes > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To

Re: [Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread JDS
Thanks Wes, Issue 1734 created. On Tuesday, December 17, 2013 6:08:02 PM UTC, Wes Freeman wrote: > > For a workaround, you can get the aggregation first and then do the > calculation: > > START n=node(0) > WITH count(n) as count > RETURN count/60/60 > > Wes > > On Tue, Dec 17, 2013 at 1:06 PM, We

Re: [Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Michael Hunger
What is your use-case? What is the large amount of data you're writing to the graph? What OS are you working on? And what Neo4j version? Increasing the memory mapping settings also helps with writes, esp. the settings for the nodestore and relationship-store, the more of that can be memory mapp

Re: [Neo4j] Issue with Spring + Neo4j

2013-12-17 Thread Michael Hunger
Don't set the id manually, it will be assigned by Spring Data Neo4j. Michael Am 17.12.2013 um 16:54 schrieb Dominic Martino : > Hi All, I am just trying lash together a simple data import using Spring Data > and Neo4j. I am just trying to import wine ratings data, so I will have a > 'Wine' and

Re: [Neo4j] having multiple write servers

2013-12-17 Thread Michael Hunger
How so currently? Transactional cypher endpoint? With parameters? Should be able to achieve more that 1500 nodes / s. Michael Am 17.12.2013 um 18:01 schrieb Alex Frieden : > Doing about 18915627 nodes in 210 minutes. Also looking to explore server > architecture options in AWS. > > > On T

Re: [Neo4j] How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Michael Hunger
You have probably several users, at least one for root and one for neo change the permissions on the graphd.db directory so that it belongs to the neo user chown -R neo:neo /data/graph.db Michael Am 17.12.2013 um 18:27 schrieb Rio Eduardo : > so what should I do? I have no ideas. Thank yo

Re: [Neo4j] Can neo4j be used for cross reference agregations?

2013-12-17 Thread Michael Hunger
Yep, sounds like that. For some queries it might make sense to aggregate the primary phone / email onto the account so you don't have to go the extra hop if you're just reading (not checking or aggregating). Cheers Michael Am 17.12.2013 um 22:20 schrieb John Smith : > Hi thanks for the reply

[Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Philippe Baumard
@Michael Hunger I delete completely my graph. I recreate it with one label and one index. I create three nodes. I look inside Console Server and i see again the labels i do not want to see create from a graph who do no more exist. It is very strange ? may be ghosts. I don't speak very well eng

Re: [Neo4j] Can neo4j be used for cross reference agregations?

2013-12-17 Thread John Smith
Hi thanks for the reply. Basically I wan to use this for on incoming requests to my sytsem and see if funny things are going on. For instance how many unique phones does a particular account have and vise versa. So if 1 account has 10 different phones then we know something funny is happening.

Re: [Neo4j] Server Console How to make them go away old Labels

2013-12-17 Thread Michael Hunger
I explained it previously, they are kept around in the database. Please raise a github issue about this, perhaps we should add an possibility of removing a label entirely. DROP LABEL :Person Michael Am 17.12.2013 um 19:31 schrieb Philippe Baumard : > @Michael Hunger > > I delete completely

Re: [Neo4j] how to create a unique data in neo4j 1.9.2

2013-12-17 Thread Michael Hunger
see: http://docs.neo4j.org/chunked/1.9.2/transactions-unique-nodes.html Am 17.12.2013 um 16:06 schrieb Ramesh Yakkala : > Hi, > > We are using the neo4j 1.9.2 core apis. May I know how to create unique data > nodes and relations. > > Thanks, > Ramesh Yakkala > > -- > You received this message

Re: [Neo4j] USE INDEX doesn't work when WHERE has IN

2013-12-17 Thread Wes Freeman
Same with OR. Please vote or post a new issue specific to IN: https://github.com/neo4j/neo4j/issues/861 Wes -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsu

[Neo4j] USE INDEX doesn't work when WHERE has IN

2013-12-17 Thread Debajyoti Roy
USE INDEX doesn't work when WHERE has IN. Following error is thrown: "Cannot use index hint in this context. The label and property comparison must be specified on a non-optional node" Same cypher works if i use = in the WHERE Is this intended behavior ? (Neo4j 2.0.0) -- You received this mes

[Neo4j] embedded Neo4J client configuration tuning for large data import

2013-12-17 Thread Guan Guan
Hi, In our use case, we need to do a lot of data importing/updating everyday ( billions of nodes/relationships ). What's the way to tuning the configuration to boost performance? Does the kernel config help data ingestion? Settings like ' *neostore.propertystore.db.strings.mapped_memory*

Re: [Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread Peter Neubauer
Thanks guys! On Dec 17, 2013 7:48 PM, "JDS" wrote: > Thanks Wes, Issue 1734 created. > > On Tuesday, December 17, 2013 6:08:02 PM UTC, Wes Freeman wrote: >> >> For a workaround, you can get the aggregation first and then do the >> calculation: >> >> START n=node(0) >> WITH count(n) as count >> RE

Re: [Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread Wes Freeman
For a workaround, you can get the aggregation first and then do the calculation: START n=node(0) WITH count(n) as count RETURN count/60/60 Wes On Tue, Dec 17, 2013 at 1:06 PM, Wes Freeman wrote: > This is definitely a bug, you should report on github issues. > > Wes > > > On Tue, Dec 17, 2013

Re: [Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread Wes Freeman
This is definitely a bug, you should report on github issues. Wes On Tue, Dec 17, 2013 at 12:58 PM, JDS wrote: > Sorry, doesn't have to be 60/60, it can be any number divided by the same > number which should of course just equal 1. > > > On Tuesday, December 17, 2013 5:57:33 PM UTC, JDS wrote:

[Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread JDS
Some more examples of why it would seem it "should" be fine: neo4j-sh (?)$ START n=node(0) RETURN 1 / 60 / 60; +-+ | 1 / 60 / 60 | +-+ | 0 | +-+ 1 row 7 ms neo4j-sh (?)$ START n=node(0) RETURN count(n) / 1; +--+ | count(n) / 1 | +

[Neo4j] Re: Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread JDS
Sorry, doesn't have to be 60/60, it can be any number divided by the same number which should of course just equal 1. On Tuesday, December 17, 2013 5:57:33 PM UTC, JDS wrote: > > I stumbled on this by accident but it looks like a bug to me, dividing an > aggregation function result by 60 twice c

[Neo4j] Math operation ( aggregation function result / 60 / 60 ) causes "SyntaxException: Unknown identifier"

2013-12-17 Thread JDS
I stumbled on this by accident but it looks like a bug to me, dividing an aggregation function result by 60 twice causes an exception. I narrowed it down to the easiest repeatable process (server is Neo4j 2.0.0 stable). Shouldn't START n=node(0) RETURN count(n) / 60 / 60 return 0? neo4j-sh (?)$

Re: [Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
so what should I do? I have no ideas. Thank you. On Tuesday, December 17, 2013 11:27:50 PM UTC+7, Lasse Westh-Nielsen wrote: > > > > > On 17/12/2013, at 17.14, Rio Eduardo > > wrote: > > > > the log says: > > > > [...] Caused by: java.io.FileNotFoundException: > /home/rioeduardo/Downloads/ne

Re: [Neo4j] having multiple write servers

2013-12-17 Thread Alex Frieden
Doing about 18915627 nodes in 210 minutes. Also looking to explore server architecture options in AWS. On Tue, Dec 17, 2013 at 9:20 AM, Michael Hunger < michael.hun...@neopersistence.com> wrote: > > Am 17.12.2013 um 15:02 schrieb Alex Frieden : > > So in a lot of server configs you can have mul

Re: [Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Lasse Westh-Nielsen
> On 17/12/2013, at 17.14, Rio Eduardo wrote: > > the log says: > > [...] Caused by: java.io.FileNotFoundException: > /home/rioeduardo/Downloads/neo4j-community-2.0.0/data/php.graphdb/store_lock > (Permission denied) [...] I think that is your culprit right there. -- You received this me

Re: [Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
the log says: 2013-12-17 16:12:25.555+ DEBUG [API] You are using an unsupported version of the Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. 2013-12-17 16:12:25.776+ INFO [API] Setting startup timeout to: 12ms based on -1 23:12:25.917 [main] WARN o.neo4j.kerne

Re: [Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Lasse Westh-Nielsen
> On 17/12/2013, at 16.56, Rio Eduardo wrote: > > [...] it says Neo4j Server may have failed to start, please check the logs > [...] So, what does the log say? :) Start with $NEO4J_HOME/data/log/console.log -- You received this message because you are subscribed to the Google Groups "Neo4j

[Neo4j] Re: What is the difference between installing neo4j with debian packages that is provided by neo4j and installing neo4j with package.tar.gz?

2013-12-17 Thread Rio Eduardo
oh the difference is just the location as I already thought before :) Thank you On Tuesday, December 17, 2013 10:45:41 PM UTC+7, David Przybilla wrote: > > As far as I understand the only difference would be > the location of your files. > So if you use the .deb they would follow the usual stan

[Neo4j] Issue with Spring + Neo4j

2013-12-17 Thread Dominic Martino
Hi All, I am just trying lash together a simple data import using Spring Data and Neo4j. I am just trying to import wine ratings data, so I will have a 'Wine' and a 'User' and the relationship between them will be a rating which has a propery which the rating the User gave the wine. I am creati

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
I already did it, but it says Neo4j Server may have failed to start, please check the logs. so any solutions? On Tuesday, December 17, 2013 10:42:29 PM UTC+7, David Przybilla wrote: > > Hi Eduardo, > > it is as simple as copying and pasting the graph.db folder. > > On Tuesday, December 17, 2013 3

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
I already did it, but it still says Disconnected from Neo4j. Please check if the cord is unplugged. so any solutions? On Tuesday, December 17, 2013 10:42:29 PM UTC+7, David Przybilla wrote: > > Hi Eduardo, > > it is as simple as copying and pasting the graph.db folder. > > On Tuesday, December 17

Re: [Neo4j] Security threat to Neo4j :

2013-12-17 Thread Navrattan Yadav
Hi, Thanks for the reply. Yes our application layer is on cloud . We never expose any database layer directly to any of app but we haven't done any of the points mentioned below. Once we do these changes we will let everyone know the status.We tried manually cleaning nodes but these nodes get cr

[Neo4j] Re: What is the difference between installing neo4j with debian packages that is provided by neo4j and installing neo4j with package.tar.gz?

2013-12-17 Thread David Przybilla
As far as I understand the only difference would be the location of your files. So if you use the .deb they would follow the usual standards. i.e: neo4j executable would be in usr/bin. probably the conf will be in /etc/conf... and so on. If you download the .tar.gz neo4j config files, executabl

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread David Przybilla
Hi Eduardo, it is as simple as copying and pasting the graph.db folder. On Tuesday, December 17, 2013 3:26:07 PM UTC, Rio Eduardo wrote: > > do you mean just replace data/graph.db with data/another_graph.db? > > On Tuesday, December 17, 2013 8:54:34 PM UTC+7, JDS wrote: >> >> If I understand you

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
do you mean just replace data/graph.db with data/another_graph.db? On Tuesday, December 17, 2013 8:54:34 PM UTC+7, JDS wrote: > > If I understand you correctly you're trying to run multiple instances of > the standalone database using ./bin/neo4j start|console. IMHO it would be > easier if you'r

[Neo4j] What is the difference between installing neo4j with debian packages that is provided by neo4j and installing neo4j with package.tar.gz?

2013-12-17 Thread Rio Eduardo
//Installing neo4j with debian package # start root shell sudo -s # Import our signing key wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - # Create an Apt sources.list file echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list # Find out abo

[Neo4j] how to create a unique data in neo4j 1.9.2

2013-12-17 Thread Ramesh Yakkala
Hi, We are using the neo4j 1.9.2 core apis. May I know how to create unique data nodes and relations. Thanks, Ramesh Yakkala -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: [Neo4j] Neo4j store is not cleanly shut down; Recovering from inconsistent db state from interrupted batch insertion

2013-12-17 Thread Abhishek Gupta
On 17 December 2013 19:32, Michael Hunger wrote: > The batch-inserter slowdown is a regression in 2.0.0 and currently worked > on. > > How often do you have to run the import? > > I have to import the dbpedia which has 20-30 files, but I am not able to complete the same because of following reaso

Re: [Neo4j] having multiple write servers

2013-12-17 Thread Michael Hunger
Am 17.12.2013 um 15:02 schrieb Alex Frieden : > So in a lot of server configs you can have multiple read and write servers. > How does it work in neo4j with multiple write servers? Isn't the only > configuration one master and many slaves? My guess is you would run into > problems with expe

Re: [Neo4j] Backtracking DFS traversal with rest API

2013-12-17 Thread Peter Neubauer
That is not exposed in the REST API, but you can certainly implement your own algorithm or use one of http://components.neo4j.org/neo4j/2.0-SNAPSHOT/apidocs/org/neo4j/graphalgo/package-summary.htmland expose it via a server extension, see http://docs.neo4j.org/chunked/snapshot/server-plugins.html

Re: [Neo4j] Neo4j store is not cleanly shut down; Recovering from inconsistent db state from interrupted batch insertion

2013-12-17 Thread Michael Hunger
The batch-inserter slowdown is a regression in 2.0.0 and currently worked on. How often do you have to run the import? Michael Am 17.12.2013 um 14:49 schrieb Abhishek Gupta : > > On 16 December 2013 06:21, Michael Hunger > wrote: > Can you show the output from the import run? > > I used the

[Neo4j] having multiple write servers

2013-12-17 Thread Alex Frieden
So in a lot of server configs you can have multiple read and write servers. How does it work in neo4j with multiple write servers? Isn't the only configuration one master and many slaves? My guess is you would run into problems with expecting certain nodes to be unique but when you have two

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread JDS
Alternatively if you're not using both db's at the same time, you can simply move the folder out of the way and run neo4j start again and it will create the db. On Tuesday, December 17, 2013 1:54:34 PM UTC, JDS wrote: > > If I understand you correctly you're trying to run multiple instances of

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread JDS
If I understand you correctly you're trying to run multiple instances of the standalone database using ./bin/neo4j start|console. IMHO it would be easier if you're planning to run multiple standalone databases that you just have multiple paths to neo4j with the entire root structure and just ch

Re: [Neo4j] Neo4j store is not cleanly shut down; Recovering from inconsistent db state from interrupted batch insertion

2013-12-17 Thread Abhishek Gupta
On 16 December 2013 06:21, Michael Hunger wrote: > Can you show the output from the import run? > I used the code available here - https://github.com/mybyte/tools/tree/master/Turtle%20loader. I run BatchExecutable which uses Neo4jDBBatchHandler as the handler. I add parameter -Xmx3200m to the jv

[Neo4j] Re: How to create new database and use the existing database in neo4j in ubuntu?

2013-12-17 Thread Rio Eduardo
No, not in Java Gupta, I meant the folder that named *graph.db*. Because in windows, we can simply make it, when we start the neo4j, before neo4j is started, neo4j asks us which database we will use, the existing or the new one. Nah, how can we make it in Ubuntu? :) Thank you On Friday, Decembe

[Neo4j] how to implement the authentication and authorisation for un managed server extension

2013-12-17 Thread Ramesh Yakkala
Hi, I am using the server unmanaged extenstion using neo4j1.9.2 core api. May I know how to implement the authentication and authorisation for this application. Thanks, Ramesh Yakkala. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe

Re: [Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Johannes Mockenhaupt
Thanks for the explanation Michael, seems I confused a few things. On 12/17/2013 11:08 AM, Michael Hunger wrote: > It is not a bug, Neo4j keeps the labels around (the same way as > property-names and relationship-types). > > #1 it doesn't know when the last of these has been removed without expe

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread JDS
Hi Michael, Ok so we are up and running on 2.0.0 after upgrading according to http://blog.neo4j.org/2013/11/neo4j-200-rc1-final-preparations.html. I think personally something this significant (M06 - 2.0.0 migration) should be listed directly in upgrade faq/release notes. So the new profiles ar

Re: [Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Michael Hunger
It is not a bug, Neo4j keeps the labels around (the same way as property-names and relationship-types). #1 it doesn't know when the last of these has been removed without expensive scanning #2 As it has an id-mapping you don't want to continuously update that just because a label is currently n

Re: [Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Johannes Mockenhaupt
> I cleared the cache of FireFox but the old labels are always here. I was dead sure this worked for me the other day, but today I can't seem to get rid of old labels either, neither in Firefox nor in Chromium. Sorry about that, seems we have to wait on the bug. -- You received this message beca

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread JDS
It was in the original post ;) 2.0.0-M06 but I'll have a look. On Tuesday, December 17, 2013 9:45:41 AM UTC, Michael Hunger wrote: > > What version did you have before > > Please check the rc1 blog post for manual index cleanup on upgrade > > Sent from mobile device > > Am 17.12.2013 um 10:21 schr

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread Michael Hunger
What version did you have before Please check the rc1 blog post for manual index cleanup on upgrade Sent from mobile device Am 17.12.2013 um 10:21 schrieb JDS : > Hi Michael, > > That's what I thought but I didn't want to assume, any further tuning you > think I should do with hpc or just lea

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread JDS
Hi Michael, That's what I thought but I didn't want to assume, any further tuning you think I should do with hpc or just leave the defaults? Query below: neo4j-sh (?)$ MATCH (n) where id(n) = 462370 return n; +---+ | n | +---+ +---+ 0 row 387 ms No stack traces in messages.log (already looked,

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread Michael Hunger
Sorry, my bad. The gcr cache was renamed to hpc in 2.0 so use cache_type=hpc Can you check graph.db/messages.log or data/logs/* for an exception related to the missing node? > EntityNotFoundException: Node with id 462370 can you also try this for me? MATCH (n) where id(n) = 462370 return n Th

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread JDS
Hello Michael, Thanks for the advice. I've upgraded to 2.0.0 enterprise and set all the settings: neostore.nodestore.db.mapped_memory=50M neostore.relationshipstore.db.mapped_memory=756M neostore.propertystore.db.mapped_memory=100M neostore.propertystore.db.strings.mapped_memory=324M neostore.pr

Re: [Neo4j] How define nodes without realtions?

2013-12-17 Thread Michael Hunger
this should also work, please compare the performance and report back: > match (n) WHERE NOT (n)--() return n; Am 17.12.2013 um 09:05 schrieb Chris Vest : > I don’t know if there’s a better way, but this works: > > match (n) optional match (n)--(m) with n, m where m is null return n; > > --

Re: [Neo4j] Questions regarding performance (PROFILE, USING SCAN, TUNING, JCONSOLE)

2013-12-17 Thread Michael Hunger
Update Neo4j to 2.0 there have been huge improvements in that area. Please report back after that, then we can continue to improve your query. Still it shouldn't be that slow, you could also increase the rel-store mmio to 500M. And perhaps use cache_type=gcr when you are using Enterprise anyway

Re: [Neo4j] Security threat to Neo4j :

2013-12-17 Thread Lasse Westh-Nielsen
Navrattan, So your application layer lives in the cloud alongside your Neo4j Server - good. I assume you have application servers and database servers separate? But make sure your database server is safely tucked away on AWS. There are basically two ways of doing that: 1) VPC: http://aws.amazon.

Re: [Neo4j] How define nodes without realtions?

2013-12-17 Thread Chris Vest
I don’t know if there’s a better way, but this works: match (n) optional match (n)--(m) with n, m where m is null return n; -- Chris Vest [ skype: mr.chrisvest, twitter: chvest ] On 17 Dec 2013, at 05:50, mesteruh mesteruh wrote: > I have two nodes. Country and City. > match (a)-[r]->(b) ret

[Neo4j] Re: Server Console How to make them go away old Labels

2013-12-17 Thread Philippe Baumard
I cleared the cache of FireFox but the old labels are always here. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options,