Re: [Neo4j] neo4j REST server standalone
I downloaded the July 10th build of the REST standalone server and created a neo4j.properties file with enable_remote_shell set to true. However, when I try to connect it, I still get the locked store message and it prompts me to open as readonly. Do I also need something in the wrapper.conf file? Also, used JConsole to see the configuration attributes which show up as unavailable. I think the problem is that you supply a -path at the shell client command line, am I right? Because when supplying a -path option it will try to open that graph database in the shell client JVM. If you skip that -path option it will try to connect via RMI to a remotely enabled shell server instead and you'll get a remote client with read/write capabilities. See more information about this over at http://wiki.neo4j.org/content/Shell#Starting_the_shell -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] neo4j REST server standalone
- Original Message From: Mattias Persson matt...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Fri, July 2, 2010 3:38:07 AM Subject: Re: [Neo4j] neo4j REST server standalone 2010/7/1 Mohit Vazirani mohi...@yahoo.com - Original Message From: Mattias Persson matt...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Thu, July 1, 2010 6:53:48 AM Subject: Re: [Neo4j] neo4j REST server standalone Hi, I'm guessing you would like to specify a configuration file for the database, right? Yes. That can't be done at the moment, but work is put into creating an admin interface to neo4j, initially quite tied to the rest API. I can see if I can whip something up which makes this possible as it is right now. That will be pretty useful. Also, will the admin interface allow me to connect through the shell in R/W mode while the REST server is running? By the way, memory mapping settings are auto-configured if no specific config is given for that. It looks at how much heap you've given it and how big your graph store files are (this is done at startup time, so if the store changes a lot then a restart would be required to have it optimally configured for the new store size). Interesting. Also, I'm trying to perform online backups with this rest server. Are logical logs enabled by default when using the REST server? I cannot find any files matching the pattern *log.v*, all I see is the file nioneo_logical.log.1And if so, is there a way to perform online backups while the REST server is running? I've done some modifications and the REST server now looks in the database directory for a neo4j.properties file and uses it for configuration if it exists. There you can set keep_logical_logs=true to make neo4j keep its logical (.v??) logs for online backup. However, to perform online backup there should probably be a configuration parameter in wrapper.conf which enables that I'd guess. Are you planning to do online backup to another running database or to another disk? I plan to backup to another drive on the same disk. The shell is now also startable via a configuration parameter, so if you supply a enable_remote_shell=true parameter in that neo4j.properties file it will be started. Of course, you'd have to download the latest REST standalone server for all this to be working. I downloaded the July 10th build of the REST standalone server and created a neo4j.properties file with enable_remote_shell set to true. However, when I try to connect it, I still get the locked store message and it prompts me to open as readonly. Do I also need something in the wrapper.conf file? Also, used JConsole to see the configuration attributes which show up as unavailable. -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] neo4j REST server standalone
Hi Mohit, the admin system is meant to eventually be able to provide support for live backups, although there is quite a bit of work left on other components first. The admin interface currently depends on the REST package which, afaik, does not turn on the command-line shell by default. There will be an integrated gremlin web console though. It would probably not be that difficult to add a setting for enabling/disabling command-line shell access though. I added this as a ticket to the github project - http://github.com/neo4j/webadmin/issues/issue/8. /Jacob On Thu, Jul 1, 2010 at 11:34 PM, Mohit Vazirani mohi...@yahoo.com wrote: - Original Message From: Mattias Persson matt...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Thu, July 1, 2010 6:53:48 AM Subject: Re: [Neo4j] neo4j REST server standalone Hi, I'm guessing you would like to specify a configuration file for the database, right? Yes. That can't be done at the moment, but work is put into creating an admin interface to neo4j, initially quite tied to the rest API. I can see if I can whip something up which makes this possible as it is right now. That will be pretty useful. Also, will the admin interface allow me to connect through the shell in R/W mode while the REST server is running? By the way, memory mapping settings are auto-configured if no specific config is given for that. It looks at how much heap you've given it and how big your graph store files are (this is done at startup time, so if the store changes a lot then a restart would be required to have it optimally configured for the new store size). Interesting. Also, I'm trying to perform online backups with this rest server. Are logical logs enabled by default when using the REST server? I cannot find any files matching the pattern *log.v*, all I see is the file nioneo_logical.log.1And if so, is there a way to perform online backups while the REST server is running? 2010/6/30 Mohit Vazirani mohi...@yahoo.com Hi, I'm a beginner to neo4j. Recently set up the standalone rest server in linux (started using neo4j-rest start). I was reviewing http://wiki.neo4j.org/content/Configuration_Settings and was wondering how to specify memory-mapped I/O settings other backup-related settings to the REST server. I couldn't find any section in wrapper.conf that allowed me to do this. Thanks, ~Mohit ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Jacob Hansson Phone: +46 (0) 763503395 Twitter: @jakewins ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] neo4j REST server standalone
2010/7/1 Mohit Vazirani mohi...@yahoo.com - Original Message From: Mattias Persson matt...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Thu, July 1, 2010 6:53:48 AM Subject: Re: [Neo4j] neo4j REST server standalone Hi, I'm guessing you would like to specify a configuration file for the database, right? Yes. That can't be done at the moment, but work is put into creating an admin interface to neo4j, initially quite tied to the rest API. I can see if I can whip something up which makes this possible as it is right now. That will be pretty useful. Also, will the admin interface allow me to connect through the shell in R/W mode while the REST server is running? By the way, memory mapping settings are auto-configured if no specific config is given for that. It looks at how much heap you've given it and how big your graph store files are (this is done at startup time, so if the store changes a lot then a restart would be required to have it optimally configured for the new store size). Interesting. Also, I'm trying to perform online backups with this rest server. Are logical logs enabled by default when using the REST server? I cannot find any files matching the pattern *log.v*, all I see is the file nioneo_logical.log.1And if so, is there a way to perform online backups while the REST server is running? I've done some modifications and the REST server now looks in the database directory for a neo4j.properties file and uses it for configuration if it exists. There you can set keep_logical_logs=true to make neo4j keep its logical (.v??) logs for online backup. However, to perform online backup there should probably be a configuration parameter in wrapper.conf which enables that I'd guess. Are you planning to do online backup to another running database or to another disk? The shell is now also startable via a configuration parameter, so if you supply a enable_remote_shell=true parameter in that neo4j.properties file it will be started. Of course, you'd have to download the latest REST standalone server for all this to be working. -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] neo4j REST server standalone
Hi, I'm guessing you would like to specify a configuration file for the database, right? That can't be done at the moment, but work is put into creating an admin interface to neo4j, initially quite tied to the rest API. I can see if I can whip something up which makes this possible as it is right now. By the way, memory mapping settings are auto-configured if no specific config is given for that. It looks at how much heap you've given it and how big your graph store files are (this is done at startup time, so if the store changes a lot then a restart would be required to have it optimally configured for the new store size). 2010/6/30 Mohit Vazirani mohi...@yahoo.com Hi, I'm a beginner to neo4j. Recently set up the standalone rest server in linux (started using neo4j-rest start). I was reviewing http://wiki.neo4j.org/content/Configuration_Settings and was wondering how to specify memory-mapped I/O settings other backup-related settings to the REST server. I couldn't find any section in wrapper.conf that allowed me to do this. Thanks, ~Mohit ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user