From aaronbrenzel at gmail.com Thu May 3 09:06:51 2012 From: aaronbrenzel at gmail.com (aaronbrenzel at gmail.com) Date: Thu, 03 May 2012 03:06:51 -0400 Subject: [Neo4j] Hi Message-ID: <4fa28262.d298cc0a.4ef0.ffff90b6@mx.google.com> hi i am successful because of this look this over http://t.co/gHeECLpK From okosioc at gmail.com Tue May 15 10:23:51 2012 From: okosioc at gmail.com (Samuel Feng) Date: Tue, 15 May 2012 16:23:51 +0800 Subject: [Neo4j] Can not recover from a HA failure as a BlockingReadTimeoutException Message-ID: Dear List, I am using 1.6.1 and embedded HA mode. Do u have any ideas that how to resolve below error? =2012-05-15 16:07:10,453 main ERROR - [ServletCntxListener.moreStart] Failed in start the graph java.lang.ExceptionInInitializerError at com.hlt.neo.CountryFactory.(CountryFactory.java:60) at com.hlt.neo.CountryFactory.(CountryFactory.java:49) at com.hlt.online.ServletCntxListener.moreStart(ServletCntxListener.java:44) at com.gr.online.servlet.InitServletCntxListener.contextInitialized(InitServletCntxListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.RuntimeException: Tried to join the cluster, but was unable to at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:297) at org.neo4j.kernel.HAGraphDb.(HAGraphDb.java:167) at org.neo4j.kernel.HAGraphDb.(HAGraphDb.java:131) at org.neo4j.kernel.HighlyAvailableGraphDatabase.(HighlyAvailableGraphDatabase.java:55) at com.gr.neo.Graph.init(Graph.java:64) at com.gr.neo.Graph.(Graph.java:45) at com.gr.neo.Graph.(Graph.java:42) ... 19 more Caused by: java.lang.RuntimeException: Gave up trying to copy store from master at org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:237) at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:273) ... 25 more Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:75) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:93) at org.neo4j.com.DechunkingChannelBuffer.(DechunkingChannelBuffer.java:59) at org.neo4j.com.Client.sendRequest(Client.java:210) at org.neo4j.com.Client.sendRequest(Client.java:185) at org.neo4j.kernel.ha.MasterClient.copyStore(MasterClient.java:268) at org.neo4j.kernel.HAGraphDb.copyStoreFromMaster(HAGraphDb.java:425) at org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:224) ... 26 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:66) ... 33 more From peter.neubauer at neotechnology.com Tue May 15 13:49:59 2012 From: peter.neubauer at neotechnology.com (Peter Neubauer) Date: Tue, 15 May 2012 13:49:59 +0200 Subject: [Neo4j] Can not recover from a HA failure as a BlockingReadTimeoutException In-Reply-To: References: Message-ID: Samuel, is it possible for you to update to 1.7 and rerun your test, so we can better recreate it? Cheers, /peter neubauer G: ?neubauer.peter S: ?peter.neubauer P: ?+46 704 106975 L:? ?http://www.linkedin.com/in/neubauer T: ? @peterneubauer If you can write, you can code - @coderdojomalmo If you can sketch, you can use a graph database - @neo4j On Tue, May 15, 2012 at 10:23 AM, Samuel Feng wrote: > Dear List, > > I am using 1.6.1 and embedded HA mode. > > Do u have any ideas that how to resolve below error? > > =2012-05-15 16:07:10,453 main ERROR - [ServletCntxListener.moreStart] > Failed in start the graph > java.lang.ExceptionInInitializerError > ? ? ? ?at com.hlt.neo.CountryFactory.(CountryFactory.java:60) > ? ? ? ?at com.hlt.neo.CountryFactory.(CountryFactory.java:49) > ? ? ? ?at > com.hlt.online.ServletCntxListener.moreStart(ServletCntxListener.java:44) > ? ? ? ?at > com.gr.online.servlet.InitServletCntxListener.contextInitialized(InitServletCntxListener.java:44) > ? ? ? ?at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205) > ? ? ? ?at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4704) > ? ? ? ?at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > ? ? ? ?at > org.apache.catalina.core.StandardHost.start(StandardHost.java:840) > ? ? ? ?at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > ? ? ? ?at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) > ? ? ? ?at > org.apache.catalina.core.StandardService.start(StandardService.java:525) > ? ? ? ?at > org.apache.catalina.core.StandardServer.start(StandardServer.java:754) > ? ? ? ?at org.apache.catalina.startup.Catalina.start(Catalina.java:595) > ? ? ? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ? ? ? ?at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > ? ? ? ?at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > ? ? ? ?at java.lang.reflect.Method.invoke(Method.java:597) > ? ? ? ?at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) > ? ? ? ?at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) > Caused by: java.lang.RuntimeException: Tried to join the cluster, but was > unable to > ? ? ? ?at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:297) > ? ? ? ?at org.neo4j.kernel.HAGraphDb.(HAGraphDb.java:167) > ? ? ? ?at org.neo4j.kernel.HAGraphDb.(HAGraphDb.java:131) > ? ? ? ?at > org.neo4j.kernel.HighlyAvailableGraphDatabase.(HighlyAvailableGraphDatabase.java:55) > ? ? ? ?at com.gr.neo.Graph.init(Graph.java:64) > ? ? ? ?at com.gr.neo.Graph.(Graph.java:45) > ? ? ? ?at com.gr.neo.Graph.(Graph.java:42) > ? ? ? ?... 19 more > Caused by: java.lang.RuntimeException: Gave up trying to copy store from > master > ? ? ? ?at > org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:237) > ? ? ? ?at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:273) > ? ? ? ?... 25 more > Caused by: org.neo4j.com.ComException: > org.jboss.netty.handler.queue.BlockingReadTimeoutException > ? ? ? ?at > org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:75) > ? ? ? ?at > org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:93) > ? ? ? ?at > org.neo4j.com.DechunkingChannelBuffer.(DechunkingChannelBuffer.java:59) > ? ? ? ?at org.neo4j.com.Client.sendRequest(Client.java:210) > ? ? ? ?at org.neo4j.com.Client.sendRequest(Client.java:185) > ? ? ? ?at org.neo4j.kernel.ha.MasterClient.copyStore(MasterClient.java:268) > ? ? ? ?at > org.neo4j.kernel.HAGraphDb.copyStoreFromMaster(HAGraphDb.java:425) > ? ? ? ?at > org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:224) > ? ? ? ?... 26 more > Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException > ? ? ? ?at > org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) > ? ? ? ?at > org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) > ? ? ? ?at > org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:66) > ? ? ? ?... 33 more > _______________________________________________ > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j > > Neo4j mailing list > User at lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user From maaz.tariq at yahoo.com Thu May 31 10:50:21 2012 From: maaz.tariq at yahoo.com (Maaz Bin Tariq) Date: Thu, 31 May 2012 01:50:21 -0700 (PDT) Subject: [Neo4j] How to store Facebook user education in neo4j Message-ID: <1338454221.56655.YahooMailNeo@web46101.mail.sp1.yahoo.com> I want to store Facebook educations of a user in Neo4j, so that i can query on any attribute combinations. Currently Fields I want to save of Facebook education field https://graph.facebook.com/me?fields=id,name,education&access_token=..... { id:1 name:"xyz" education":[? {"school":{"id":2"","name":"A"}, ?"degree":{"id":3"","name":"B"}, ?"year":? {"id":4"","name":"C"}, ?"type":"X", },.....] } In MySQL I will create an education table with following table user_id, school_id,degree_id,year_id,type Not sure whats the best way to store it in Neo4j.? 1. possible solution is? Node User --------->(edu relationship) ---> Node school degree,year,type are relationship attributes. Not sure it will be be fast if we traverse users on type and degree attributes. (i.e relationship attributes) Is there any other or better way? Thanks -Maaz From michael.hunger at neotechnology.com Thu May 31 11:42:41 2012 From: michael.hunger at neotechnology.com (Michael Hunger) Date: Thu, 31 May 2012 11:42:41 +0200 Subject: [Neo4j] How to store Facebook user education in neo4j In-Reply-To: <1338454221.56655.YahooMailNeo@web46101.mail.sp1.yahoo.com> References: <1338454221.56655.YahooMailNeo@web46101.mail.sp1.yahoo.com> Message-ID: <1C8829E0-4C87-4567-8D70-D7973701C7AA@neotechnology.com> Yes your suggestion sounds good. If you're interested in the actual classes (e.g. for connecting other users to the same class aka stayfriends) then you'd also model the classes as nodes (but only if you really need it in your problem domain, you can also later still evolve the model). For looking up users and places you would use unique index id's. Traversing is fast as it is the core graphdb operation. The main performance difference is from where you start the traversal (i.e. the user which has just a few rels or the place, which might have many rels) and how you continue from there. If you need at some point you can add additional relationship with just the degree's for. e.g. (user) - PHD -> (MIT) Michael Am 31.05.2012 um 10:50 schrieb Maaz Bin Tariq: > I want to store Facebook educations of a user in Neo4j, so that i can query on any attribute combinations. > Currently Fields I want to save of Facebook education field > https://graph.facebook.com/me?fields=id,name,education&access_token=..... > > { > id:1 > name:"xyz" > education":[ > {"school":{"id":2"","name":"A"}, > "degree":{"id":3"","name":"B"}, > "year": {"id":4"","name":"C"}, > "type":"X", > },.....] > } > > In MySQL I will create an education table with following table user_id, school_id,degree_id,year_id,type > Not sure whats the best way to store it in Neo4j. > 1. possible solution is > Node User --------->(edu relationship) ---> Node school > > degree,year,type are relationship attributes. > Not sure it will be be fast if we traverse users on type and degree attributes. (i.e relationship attributes) > Is there any other or better way? > > Thanks > -Maaz > _______________________________________________ > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j > > Neo4j mailing list > User at lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user From marcello.desales at gmail.com Thu May 31 16:49:49 2012 From: marcello.desales at gmail.com (Marcello de Sales) Date: Thu, 31 May 2012 07:49:49 -0700 Subject: [Neo4j] How to store Facebook user education in neo4j In-Reply-To: <1C8829E0-4C87-4567-8D70-D7973701C7AA@neotechnology.com> References: <1338454221.56655.YahooMailNeo@web46101.mail.sp1.yahoo.com> <1C8829E0-4C87-4567-8D70-D7973701C7AA@neotechnology.com> Message-ID: Don't forget to accommodate multiple degrees with the same school... (I had done the same mapping before... :D) education":[ {"school":{"id":2"","name":"A"}, degrees: [ {"type":"MS", "title":"B", "year": "YYYY"}, {"type":"PhD", "title":"C", "year": "YYYY"} ] } On Thu, May 31, 2012 at 2:42 AM, Michael Hunger < michael.hunger at neotechnology.com> wrote: > Yes your suggestion sounds good. > > If you're interested in the actual classes (e.g. for connecting other > users to the same class aka stayfriends) then you'd also model the classes > as nodes (but only if you really need it in your problem domain, you can > also later still evolve the model). > > For looking up users and places you would use unique index id's. > > Traversing is fast as it is the core graphdb operation. > > The main performance difference is from where you start the traversal > (i.e. the user which has just a few rels or the place, which might have > many rels) and how you continue from there. > > If you need at some point you can add additional relationship with just > the degree's for. > > e.g. (user) - PHD -> (MIT) > > Michael > > Am 31.05.2012 um 10:50 schrieb Maaz Bin Tariq: > > > I want to store Facebook educations of a user in Neo4j, so that i can > query on any attribute combinations. > > Currently Fields I want to save of Facebook education field > > https://graph.facebook.com/me?fields=id,name,education&access_token=... > .. > > > > { > > id:1 > > name:"xyz" > > education":[ > > {"school":{"id":2"","name":"A"}, > > "degree":{"id":3"","name":"B"}, > > "year": {"id":4"","name":"C"}, > > "type":"X", > > },.....] > > } > > > > In MySQL I will create an education table with following table user_id, > school_id,degree_id,year_id,type > > Not sure whats the best way to store it in Neo4j. > > 1. possible solution is > > Node User --------->(edu relationship) ---> Node school > > > > degree,year,type are relationship attributes. > > Not sure it will be be fast if we traverse users on type and degree > attributes. (i.e relationship attributes) > > Is there any other or better way? > > > > Thanks > > -Maaz > > _______________________________________________ > > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please > register and consider posting at > https://groups.google.com/forum/#!forum/neo4j > > > > Neo4j mailing list > > User at lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > _______________________________________________ > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please > register and consider posting at > https://groups.google.com/forum/#!forum/neo4j > > Neo4j mailing list > User at lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user >