Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
decomposition
recovery
.gitignore
README.md
connectdb.sh
createdb.sh

README.md

RecovDB: Recovery of missing values in MonetDB

EU project 732328: "FashionBrain".

D2.4: "Time Series Operators for MonetDB".

MonetDB Numpy

Installation

MonetDB (macOS)

$ brew install monetdb

MonetDB (Debian/Ubuntu)

Step 1

https://www.monetdb.org/downloads/deb/ Follow the steps to add the repository up to and including sudo apt update.

Instead of installing monetdb5-sql and monetdb-client build from sources (step 2). If any of those are installed, do sudo apt purge monetdb5-sql. Download latest source from: https://www.monetdb.org/downloads/sources/Latest/

Step 2

Extract and enter MonetDB-default/ directory with the sources. Open README-Debian and install all the packages listed as obligatory dependencies. In addition install the following optional dependencies:

$ sudo apt install libatomic-ops-dev
$ sudo apt install python-dev
$ sudo apt install python-numpy
$ sudo apt install uuid-dev
Step 3

Build the database:

$ ./bootstrap
$ ./configure --enable-pyintegration
$ make
$ make install

Install the client:

$ sudo apt install monetdb-client

Python

$ pip3 install numpy

Install Anaconda2 from: https://docs.anaconda.com/anaconda/install/ into your 'HOME' folder

Path configuration

Add this line to (.profile or .bash_profile on macOS, .bashrc on Linux): export PYTHONPATH="${PYTHONPATH}:'HOME'/anaconda2/lib/python2.7/site-packages/"
$ source .profile (or source bash_profile)

Restart your PC:

$ sudo shutdown -r now

Getting started

$ chmod u+x createdb.sh
$ chmod u+x connectdb.sh

$ touch ~/.monetdb
$ vim ~/.monetdb
user=monetdb
password=monetdb
$ ./createdb.sh

Usage

CD decomposition

Replace "PATH" in decomposition/monetdb_udf.sql by the absolute path
$ ./connectdb.sh
sql> \<./decomposition/monetdb_udf.sql
sql> \q

CD-based recovery

Replace "PATH" in recovery/monetdb_udf.sql by the absolute path
$ ./connectdb.sh
sql> \<./recovery/monetdb_udf.sql
sql> \q

License

The MIT License (MIT) Copyright (c) 2018 eXascale Infolab (UNIFR)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.