Comments (14)
from ixmp.
I have tried multiprocess with HSQLDB and I got a error. Do I need an oracle data base for parallel run?
from ixmp.
from ixmp.
If you use HSQLDB in file-based mode, only one process can access it a time. There is a way to launch an HSQLDB instance in server mode, which would allow multiple connections - but I have never tried that...
You will need a configuration file with the following, not sure what the driver should be. The url should probably be the path.
config.name = <some tag>
jdbc.driver = <??>
jdbc.url = <??>
jdbc.user = ixmp
jdbc.pwd = ixmp
from ixmp.
I have also tried with the server mode. I started the server with:
java -cp ../lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:message --dbname.0 xdb
And with the following config:
config.name = meassage@local
jdbc.driver.1 = org.hsqldb.jdbcDriver
jdbc.url.1 = jdbc:hsqldb:hsql://localhost/xdb
jdbc.user.1 = ixmp
jdbc.pwd.1 = ixmp
jdbc.driver.2 = org.hsqldb.jdbcDriver
jdbc.url.2 = jdbc:hsqldb:hsql://localhost/xdb
jdbc.user.2 = ixmp
jdbc.pwd.2 = ixmp
I could connect to the data base. But only one connection.
from ixmp.
Oh, so you were already on the right track. Sorry that it doesn't work as expected.
@peterkolp, any ideas?
from ixmp.
Today I did a next try. I have startet a server from the installed ixmp from my conda environment.
java -cp C:\Users\anaconda3\envs\message-ghd\Lib\site-packages\ixmp\lib\hsqldb.jar org.hsqldb.server.Server --database.0 file:C:\Users\.local\ghd_server --dbname.0 ghd_server
But if I try to connect to the server, I get an error:
jpype._jexception.FlywayExceptionPyRaisable: org.flywaydb.core.api.FlywayException: Validate failed: Migration checksum mismatch for migration 1
Do you have any ideas to fix this problem?
from ixmp.
@zikolach, can you take a look?
from ixmp.
@tzipperle to start HSQLDB server you may use following command (same as in your comment):
java -cp ../../ixmp/lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:ixmptest --dbname.0 ixmptest
To check you can connect it use following:
java -cp ../../ixmp/lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing \
--driver org.hsqldb.jdbcDriver \
--url jdbc:hsqldb:hsql://localhost:9001/ixmptest \
--user ixmp \
--password ixmp
If it succeed the JDBC URL is jdbc:hsqldb:hsql://localhost:9001/ixmptest
.
Since you have migration issue - my assumption is you have done steps from above right!
Now we need to figure out why you have different checksums for migration files. You should see it in the log output as existing and new values. Using HSQLDB client you may try to change checksum in the database manually to fix it (assuming both migrations - the one previously applied and current one - have same changes differs only in formatting/line endings/etc).
Please do a backup copy of directory with database before changing anything manually!
If you attach more detailed log - we can try to figure out what exactly is the problem.
Also you may be interested in using Postgresql database. Recently we added it support (for testing purposes to the moment). But you'll need to care about data migration yourself.
from ixmp.
java -cp ../../ixmp/lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing
--driver org.hsqldb.jdbcDriver
--url jdbc:hsqldb:hsql://localhost:9001/ixmptest
--user ixmp
--password ixmp
I could not check this under windows 10. I get a error unknown driver and the log file is after the run empty.
I start with a new project without a database. It should not be a problem with the data migration
from ixmp.
@tzipperle please ensure the hsqldb.jar
file exists in the folder at specified path ../../ixmp/lib/hsqldb.jar
- you may need to change path.
If you want to try postgresql option - options for config file may look like:
jdbc.driver = org.postgresql.Driver
jdbc.url = jdbc:postgresql://localhost:5432/ixmptest
jdbc.user = ixmp
jdbc.pwd = ixmp
You'll need to create an empty DB before trying to access it or (if you familiar with Docker) use following compose file to run Postgresql instance in container:
version: "3"
services:
db:
image: postgres:10
environment:
POSTGRES_USER: ixmp
POSTGRES_PASSWORD: ixmp
POSTGRES_DB: ixmptest
ports:
- "5432:5432"
volumes:
- /path/on/the/host/system:/var/lib/postgresql/data
In the snippets above ixmptest
is a name of database schema.
from ixmp.
I had a problem with the backslash. Now I can connect to the server.
I have tried the following workflow:
- Deleted the old database
- Started the server
- Opened a Platform to the server
- Migration error
The log-file now contains the following information:
/C1/SET SCHEMA SYSTEM_LOBS
INSERT INTO BLOCKS VALUES(0,2147483647,0)
COMMIT
from ixmp.
I could fix the problem with the migration. It was a problem with the conda environment. After I recreated the environment it works. @zikolach Thanks for your help.
from ixmp.
Hi @zikolach ,
I have a short question. I use a HSQLDB server and after about 1000 scenario runs the RAM usage of the process "Zulu Platform x64 Architecture" increase highly and the I get an server error.
I think I have to change the table type from memory
to cached
(hsqldb.default_table_type=cached). But I am not sure how I could do this.
Do you have any ideas what I can do?
from ixmp.
Related Issues (20)
- Update actions used in CI workflows
- Work around conda-forge/openjdk-feedstock#107
- Adjust for JPype1 v1.4.1 HOT 7
- Adjust for mypy `--no-implicit-optional`
- Address failing tests of R/Jupyter notebooks
- Adjust for pandas 2.0.0 HOT 4
- IXMP on Apple Silicon (ARM architecture) HOT 11
- Documentation to subannual timeslices erroneous
- `ixmp[tests] <= 3.6.0` not installable ← `codecov` yanked from PyPI HOT 1
- R 4.3.0 not working as expected on macOS HOT 2
- Track/work around actions/setup-python#682 HOT 5
- IXMP down HOT 1
- Handling flaky tests HOT 1
- Track/work around lp:2035206: missing lxml wheel for cp38-macosx HOT 1
- Support Python 3.12
- Advise users to check GAMS log file HOT 3
- Address tests that are flaky with pytest-xdist HOT 2
- GAMS is not registered correctly in show-versions HOT 1
- Add a 'wide' version of the Excel file format HOT 1
- AttributeError: module 'ixmp' has no attribute 'config' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixmp.