Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add instructions to use the new omniscidb-cpu conda package #334

Open
xmnlab opened this issue Mar 19, 2019 · 4 comments
Open

[DOC] Add instructions to use the new omniscidb-cpu conda package #334

xmnlab opened this issue Mar 19, 2019 · 4 comments

Comments

@xmnlab
Copy link
Contributor

xmnlab commented Mar 19, 2019

Hey everyone!

mapd-core-cpu is already available on conda-forge (https://anaconda.org/conda-forge/omniscidb-cpu)

now we should add some instructions on the documentation.

at this moment it is available for linux and osx.

some additional information about the configuration:

  1. for now, always install omniscidb-cpu inside a conda environment (also it is a good practice), eg:
conda create -n omniscidb-cpu
source activate omniscidb-cpu
conda install -c conda-forge omniscidb-cpu
  1. some configuration files:

env-omnisci.sh

#!/usr/bin/env bash
  
export OMNISCI_PATH="${CONDA_PREFIX}"
export OMNISCI_STORAGE="${OMNISCI_PATH}/var/lib/omnisci"
export OMNISCI_USER="$(whoami)"
export OMNISCI_GROUP="$(groups $(whoami) | cut -d' ' -f1)"
export OMNISCI_DATA="${OMNISCI_STORAGE}/data"
export OMNISCI_LOG="${OMNISCI_DATA}/omnisci_log"

install-omnisci.sh

#!/usr/bin/env bash
  
mkdir -p "${OMNISCI_STORAGE}"
mkdir -p "${OMNISCI_DATA}"

if [ ! -d "${OMNISCI_DATA}/mapd_catalogs" ]; then
  ${OMNISCI_PATH}/bin/omnisci_initdb "${OMNISCI_STORAGE}"
fi

chown -R $OMNISCI_USER:$OMNISCI_GROUP "${OMNISCI_DATA}"
chown -R $OMNISCI_USER:$OMNISCI_GROUP "${OMNISCI_STORAGE}"

to configure the installation:

source env-omnisci.sh
./install-omnisci.sh

and to run the omnisci_server, type:

# if you don't have the OMNISCI variables in your environment, run: `source env-omnisci.sh`
${OMNISCI_PATH}/bin/omnisci_server --data $OMNISCI_STORAGE

now omnisql should work in conda environment!

@xmnlab
Copy link
Contributor Author

xmnlab commented Mar 19, 2019

maybe we could add these files inside the package.

@niviksha
Copy link

@randyzwitch ^^^

@randyzwitch
Copy link
Contributor

I'll add this to the README next week after I validate how it works. Will probably make a blog post out of it

@randyzwitch
Copy link
Contributor

@xmnlab The instructions as written throw an error:

(omnisci) root@a4505081f571:~# vim env-omnisci.sh
(omnisci) root@a4505081f571:~# vim install-omnisci.sh
(omnisci) root@a4505081f571:~# source env-omnisci.sh
(omnisci) root@a4505081f571:~# ./install-omnisci.sh
bash: ./install-omnisci.sh: Permission denied
(omnisci) root@a4505081f571:~# bash ./install-omnisci.sh
/root/miniconda3/envs/omnisci/bin/mapd_initdb: error while loading shared libraries: libdouble-conversion.so.3: cannot open shared object file: No such file or directory

andrewseidl added a commit to andrewseidl/mapd-core-cpu-feedstock that referenced this issue May 6, 2019
andrewseidl added a commit to andrewseidl/mapd-core-cpu-feedstock that referenced this issue May 6, 2019
@xmnlab xmnlab changed the title [DOC] Add instructions to use the new mapd-core-cpu conda package [DOC] Add instructions to use the new omniscidb-cpu conda package Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants