configure where basex saves data?

Wednesday, 7 November 2012 · 6 messages
BR
bryan rasmussen7 Nov 2012 15:00 #
Hi, I have to move ./BaseXData out to a mounted drive, is that possible with configuration and is there any performance problems associated with it? Thanks, Bryan Rasmussen
BR
bryan rasmussen7 Nov 2012 15:08 #
ok I guess I found the config setting http://docs.basex.org/wiki/Options#DBPATH Thanks, Bryan
Quoted text · bryan rasmussen · 10 lines
On Wed, Nov 7, 2012 at 3:00 PM, bryan rasmussen <rasmussen.bryan at gmail.com> wrote: > Hi, > > I have to move ./BaseXData out to a mounted drive, is that possible > with configuration and is there any performance problems associated > with it? > > Thanks, > Bryan Rasmussen
BR
bryan rasmussen7 Nov 2012 15:45 #
Ok well I edited my .basex config file to say: # Property File. # You can set additional options at the end of the file. DBPATH = /data-test/BaseXData HTTPPATH = /home/u0123444/BaseXHTTP REPOPATH = /data-test/BaseXRepo LANG = English LANGKEYS = false HOST = localhost PORT = 1984 SERVERHOST = SERVERPORT = 1984 EVENTPORT = 1985 HTTPPORT = 8984 STOPPORT = 8985 PROXYHOST = PROXYPORT = 80 NONPROXYHOSTS = TIMEOUT = 30 KEEPALIVE = 600 DEBUG = false PARALLEL = 8 # User defined section I created a folder BaseXData and BaseXRepo under /data-test I made a folder BaseXData/.logs when I start basexserver I get /usr/bin/build-classpath: error: Could not find tagsoup Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found java.io.FileNotFoundException: /data-test/BaseXData/.logs/2012-11-07.log (Permission denied) java.io.FileOutputStream.openAppend(Native Method) java.io.FileOutputStream.<init>(FileOutputStream.java:192) org.basex.server.Log.create(Unknown Source) org.basex.server.Log.<init>(Unknown Source) org.basex.BaseXServer.<init>(Unknown Source) org.basex.BaseXServer.<init>(Unknown Source) org.basex.BaseXServer.main(Unknown Source) BaseX 7.3 [Server] Server was started. When I do basexclient -c "CREATE DB dk /data-test/dk" (/data-test/dk path exists) I get /data-test/BaseXData/dk/tbl.basex (No such file or directory) I tried to create the same db earlier before changing my config so I just tried with a new db name I haven't tried before and I still got /data-test/BaseXData/newDBNAME/tbl.basex (No such file or directory) When I do basexclient -c LIST it says name Resources Size Input Path --------------------------------- 0 Databases. Thanks, Bryan Rasmussen
Quoted text · bryan rasmussen · 17 lines
On Wed, Nov 7, 2012 at 3:08 PM, bryan rasmussen <rasmussen.bryan at gmail.com> wrote: > ok I guess I found the config setting http://docs.basex.org/wiki/Options#DBPATH > > Thanks, > Bryan > > On Wed, Nov 7, 2012 at 3:00 PM, bryan rasmussen > <rasmussen.bryan at gmail.com> wrote: >> Hi, >> >> I have to move ./BaseXData out to a mounted drive, is that possible >> with configuration and is there any performance problems associated >> with it? >> >> Thanks, >> Bryan Rasmussen
DK
Dirk Kirsten7 Nov 2012 15:52 #
Hello Bryan, looks like the user you are using to start BaseX does not have read and write access to the BaseXData/ path. This is a requirement, because otherwise BaseX can not write the required internal information into this directory. Simply change the permissions accordingly. Cheers, Dirk On Wed, Nov 7, 2012 at 3:45 PM, bryan rasmussen <rasmussen.bryan at gmail.com>wrote:
Quoted text · bryan rasmussen · 92 lines
> Ok well I edited my .basex config file to say: > > # Property File. > # You can set additional options at the end of the file. > > DBPATH = /data-test/BaseXData > HTTPPATH = /home/u0123444/BaseXHTTP > REPOPATH = /data-test/BaseXRepo > LANG = English > LANGKEYS = false > HOST = localhost > PORT = 1984 > SERVERHOST = > SERVERPORT = 1984 > EVENTPORT = 1985 > HTTPPORT = 8984 > STOPPORT = 8985 > PROXYHOST = > PROXYPORT = 80 > NONPROXYHOSTS = > TIMEOUT = 30 > KEEPALIVE = 600 > DEBUG = false > PARALLEL = 8 > # User defined section > > I created a folder BaseXData and BaseXRepo under /data-test > > I made a folder BaseXData/.logs > when I start basexserver I get > > /usr/bin/build-classpath: error: Could not find tagsoup Java extension > for this JVM > /usr/bin/build-classpath: error: Some specified jars were not found > java.io.FileNotFoundException: > /data-test/BaseXData/.logs/2012-11-07.log (Permission denied) > java.io.FileOutputStream.openAppend(Native Method) > java.io.FileOutputStream.<init>(FileOutputStream.java:192) > org.basex.server.Log.create(Unknown Source) > org.basex.server.Log.<init>(Unknown Source) > org.basex.BaseXServer.<init>(Unknown Source) > org.basex.BaseXServer.<init>(Unknown Source) > org.basex.BaseXServer.main(Unknown Source) > BaseX 7.3 [Server] > Server was started. > > > When I do basexclient -c "CREATE DB dk /data-test/dk" > > (/data-test/dk path exists) > > I get /data-test/BaseXData/dk/tbl.basex (No such file or directory) > > I tried to create the same db earlier before changing my config so I > just tried with a new db name I haven't tried before and I still got > /data-test/BaseXData/newDBNAME/tbl.basex (No such file or directory) > > When I do basexclient -c LIST it says > > name Resources Size Input Path > --------------------------------- > > 0 Databases. > > Thanks, > Bryan Rasmussen > > > > On Wed, Nov 7, 2012 at 3:08 PM, bryan rasmussen > <rasmussen.bryan at gmail.com> wrote: > > ok I guess I found the config setting > http://docs.basex.org/wiki/Options#DBPATH > > > > Thanks, > > Bryan > > > > On Wed, Nov 7, 2012 at 3:00 PM, bryan rasmussen > > <rasmussen.bryan at gmail.com> wrote: > >> Hi, > >> > >> I have to move ./BaseXData out to a mounted drive, is that possible > >> with configuration and is there any performance problems associated > >> with it? > >> > >> Thanks, > >> Bryan Rasmussen > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
AA
Andria Arisal7 Nov 2012 16:12 #
Hi Bryan, Are you working with one node which acts as basexserver and basexclient or two different nodes (node-s as basexserver and node-c as basexclient). if you are working with two different nodes, you have to edit .basex on both nodes. 1. server; where you specify where will you save basex database (you (the user who starts basexserver) need to have read/write access to that directory) [changing /data-test/... to /home/[user]/data-test/... might help] 2. client; where you specify hostname/ipaddress of your basexserver node. regarding to those errors on basexserver's log, it looks like that you do not have/installed required jars (libraries) (in that case: tagsoup). on previous email if you want to get more verbose output, you can add -V or -d on your client command.[1] [1] http://docs.basex.org/wiki/Startup_Options#BaseX_Client regards, -andria
Quoted text · Dirk Kirsten · 123 lines
On Wed, Nov 7, 2012 at 3:52 PM, Dirk Kirsten <dk at basex.org> wrote: > Hello Bryan, > > looks like the user you are using to start BaseX does not have read and > write access to the BaseXData/ path. This is a requirement, because > otherwise BaseX can not write the required internal information into this > directory. Simply change the permissions accordingly. > > Cheers, > Dirk > > > On Wed, Nov 7, 2012 at 3:45 PM, bryan rasmussen <rasmussen.bryan at gmail.com > > wrote: > >> Ok well I edited my .basex config file to say: >> >> # Property File. >> # You can set additional options at the end of the file. >> >> DBPATH = /data-test/BaseXData >> HTTPPATH = /home/u0123444/BaseXHTTP >> REPOPATH = /data-test/BaseXRepo >> LANG = English >> LANGKEYS = false >> HOST = localhost >> PORT = 1984 >> SERVERHOST = >> SERVERPORT = 1984 >> EVENTPORT = 1985 >> HTTPPORT = 8984 >> STOPPORT = 8985 >> PROXYHOST = >> PROXYPORT = 80 >> NONPROXYHOSTS = >> TIMEOUT = 30 >> KEEPALIVE = 600 >> DEBUG = false >> PARALLEL = 8 >> # User defined section >> >> I created a folder BaseXData and BaseXRepo under /data-test >> >> I made a folder BaseXData/.logs >> when I start basexserver I get >> >> /usr/bin/build-classpath: error: Could not find tagsoup Java extension >> for this JVM >> /usr/bin/build-classpath: error: Some specified jars were not found >> java.io.FileNotFoundException: >> /data-test/BaseXData/.logs/2012-11-07.log (Permission denied) >> java.io.FileOutputStream.openAppend(Native Method) >> java.io.FileOutputStream.<init>(FileOutputStream.java:192) >> org.basex.server.Log.create(Unknown Source) >> org.basex.server.Log.<init>(Unknown Source) >> org.basex.BaseXServer.<init>(Unknown Source) >> org.basex.BaseXServer.<init>(Unknown Source) >> org.basex.BaseXServer.main(Unknown Source) >> BaseX 7.3 [Server] >> Server was started. >> >> >> When I do basexclient -c "CREATE DB dk /data-test/dk" >> >> (/data-test/dk path exists) >> >> I get /data-test/BaseXData/dk/tbl.basex (No such file or directory) >> >> I tried to create the same db earlier before changing my config so I >> just tried with a new db name I haven't tried before and I still got >> /data-test/BaseXData/newDBNAME/tbl.basex (No such file or directory) >> >> When I do basexclient -c LIST it says >> >> name Resources Size Input Path >> --------------------------------- >> >> 0 Databases. >> >> Thanks, >> Bryan Rasmussen >> >> >> >> On Wed, Nov 7, 2012 at 3:08 PM, bryan rasmussen >> <rasmussen.bryan at gmail.com> wrote: >> > ok I guess I found the config setting >> http://docs.basex.org/wiki/Options#DBPATH >> > >> > Thanks, >> > Bryan >> > >> > On Wed, Nov 7, 2012 at 3:00 PM, bryan rasmussen >> > <rasmussen.bryan at gmail.com> wrote: >> >> Hi, >> >> >> >> I have to move ./BaseXData out to a mounted drive, is that possible >> >> with configuration and is there any performance problems associated >> >> with it? >> >> >> >> Thanks, >> >> Bryan Rasmussen >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
BR
bryan rasmussen7 Nov 2012 21:08 #
thanks for the info, currently in testing I am working on the same node. But in the near future after setting stuff up I suppose there will be a need to work on separate nodes as other developers will also need to run queries etc.
Quoted text · Andria Arisal · 150 lines
On Wed, Nov 7, 2012 at 4:12 PM, Andria Arisal <andria.arisal at gmail.com> wrote: > Hi Bryan, > > Are you working with one node which acts as basexserver and basexclient or > two different nodes (node-s as basexserver and node-c as basexclient). > > if you are working with two different nodes, you have to edit .basex on both > nodes. > 1. server; where you specify where will you save basex database (you (the > user who starts basexserver) need to have read/write access to that > directory) > [changing /data-test/... to /home/[user]/data-test/... might help] > 2. client; where you specify hostname/ipaddress of your basexserver node. > > regarding to those errors on basexserver's log, it looks like that you do > not have/installed required jars (libraries) (in that case: tagsoup). > > on previous email if you want to get more verbose output, you can add -V or > -d on your client command.[1] > > [1] http://docs.basex.org/wiki/Startup_Options#BaseX_Client > > regards, > -andria > > > On Wed, Nov 7, 2012 at 3:52 PM, Dirk Kirsten <dk at basex.org> wrote: >> >> Hello Bryan, >> >> looks like the user you are using to start BaseX does not have read and >> write access to the BaseXData/ path. This is a requirement, because >> otherwise BaseX can not write the required internal information into this >> directory. Simply change the permissions accordingly. >> >> Cheers, >> Dirk >> >> >> On Wed, Nov 7, 2012 at 3:45 PM, bryan rasmussen >> <rasmussen.bryan at gmail.com> wrote: >>> >>> Ok well I edited my .basex config file to say: >>> >>> # Property File. >>> # You can set additional options at the end of the file. >>> >>> DBPATH = /data-test/BaseXData >>> HTTPPATH = /home/u0123444/BaseXHTTP >>> REPOPATH = /data-test/BaseXRepo >>> LANG = English >>> LANGKEYS = false >>> HOST = localhost >>> PORT = 1984 >>> SERVERHOST = >>> SERVERPORT = 1984 >>> EVENTPORT = 1985 >>> HTTPPORT = 8984 >>> STOPPORT = 8985 >>> PROXYHOST = >>> PROXYPORT = 80 >>> NONPROXYHOSTS = >>> TIMEOUT = 30 >>> KEEPALIVE = 600 >>> DEBUG = false >>> PARALLEL = 8 >>> # User defined section >>> >>> I created a folder BaseXData and BaseXRepo under /data-test >>> >>> I made a folder BaseXData/.logs >>> when I start basexserver I get >>> >>> /usr/bin/build-classpath: error: Could not find tagsoup Java extension >>> for this JVM >>> /usr/bin/build-classpath: error: Some specified jars were not found >>> java.io.FileNotFoundException: >>> /data-test/BaseXData/.logs/2012-11-07.log (Permission denied) >>> java.io.FileOutputStream.openAppend(Native Method) >>> java.io.FileOutputStream.<init>(FileOutputStream.java:192) >>> org.basex.server.Log.create(Unknown Source) >>> org.basex.server.Log.<init>(Unknown Source) >>> org.basex.BaseXServer.<init>(Unknown Source) >>> org.basex.BaseXServer.<init>(Unknown Source) >>> org.basex.BaseXServer.main(Unknown Source) >>> BaseX 7.3 [Server] >>> Server was started. >>> >>> >>> When I do basexclient -c "CREATE DB dk /data-test/dk" >>> >>> (/data-test/dk path exists) >>> >>> I get /data-test/BaseXData/dk/tbl.basex (No such file or directory) >>> >>> I tried to create the same db earlier before changing my config so I >>> just tried with a new db name I haven't tried before and I still got >>> /data-test/BaseXData/newDBNAME/tbl.basex (No such file or directory) >>> >>> When I do basexclient -c LIST it says >>> >>> name Resources Size Input Path >>> --------------------------------- >>> >>> 0 Databases. >>> >>> Thanks, >>> Bryan Rasmussen >>> >>> >>> >>> On Wed, Nov 7, 2012 at 3:08 PM, bryan rasmussen >>> <rasmussen.bryan at gmail.com> wrote: >>> > ok I guess I found the config setting >>> > http://docs.basex.org/wiki/Options#DBPATH >>> > >>> > Thanks, >>> > Bryan >>> > >>> > On Wed, Nov 7, 2012 at 3:00 PM, bryan rasmussen >>> > <rasmussen.bryan at gmail.com> wrote: >>> >> Hi, >>> >> >>> >> I have to move ./BaseXData out to a mounted drive, is that possible >>> >> with configuration and is there any performance problems associated >>> >> with it? >>> >> >>> >> Thanks, >>> >> Bryan Rasmussen >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> >> -- >> Dirk Kirsten, BaseX GmbH, http://basex.org >> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> | Dr. Christian Grün, Alexander Holupirek, Michael Seiferle >> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >

⚡Generated with XQuery