Support Apple Silicon M1 for docker vertica-ce
nicopadu
Community Edition User
Hello!
Just switched from an Intel-based laptop to a new Apple M1 Pro, but unfortunately found that docker image for Vertica-CE is not supported in this arm architecture.
Tried a couple of emulators without any luck.
Do you have any plan to support other architecture than amd64 for vertica-ce image?
Usage scenario is only local development with very reduced requirements/functionalities, community edition is more than enough.
Thanks!
Tagged:
0
This discussion has been closed.
Answers
Try the following in the container - the VERTICA_MEMDEBUG setting worked for another Mac user:
[dbadmin@vertica log]$ export VERTICA_MEMDEBUG=2
[dbadmin@vertica log]$ rm -rf /home/dbadmin/docker/
[dbadmin@vertica log]$ /opt/vertica/bin/admintools -t create_db --database=docker --password='' --hosts=localhost
...
[dbadmin@vertica log]$ vsql
Welcome to vsql, the Vertica Analytic Database interactive terminal.
Thanks!
I was originally using vertica-ce 10 version. Need to upgrade to 11
Also including env VERTICA_MEMDEBUG=2 did the trick.
This command now runs...
docker run -p 5433:5433 -p 5444:5444 --name vertica_ce --platform linux/amd64 --env VERTICA_MEMDEBUG=2 vertica/vertica-ce:11.1.0-0
It takes longer than expected to complete VMart example loading, but it's something we can tweak/skip if needed.
Couln't find any perf degradation by using VERTICA_MEMDEBUG=2. And quite vague documentation about that. Do you have any idea what's behind this flag that's worth considering?
Well, update on this thread
Originally it looks like all is OK, Vertica single node shows as UP and clients are able to connect to it.
But after a certain point there's an internal error and container just crashes.
Below is an extract of ErrorReport.txt obtained from docker volume
Has anyone been able to use any vertica-ce docker image using Docker Desktop for Mac (M1 arm64 version)?
@nicopadu: Is /docker-entrypoint-initdb.d/TEST_TABLE.csv a NFS mount point? Since it is a crash, we may need to open a bug and collect log files. Could you please open a support case?
This TEST_TABLE.csv is a local folder mount using docker-compose.
Will try to find someone to open a support case from our side