Presto Admin – Is it Worth Using?
I generally deploy Presto clusters using packer and terraform. Packer builds an image for me with the target presto distribution, some utility scripts, ha proxy (to get multiple coordinators acting in HA), etc.
I kept noticing this presto-admin project though: https://github.com/prestosql/presto-admin. It allows you to quickly/easily deploy clusters from a central node, and it will handle the coordinator, workers, catalogs, and everything. That sounds pretty cool.
Advance disclaimer – after I built this, I decided not to use it. This was because it seems to just deploy a single coordinator and worker set. For an HA setup, I need multiple coordinators, a load balancer, and workers/users pointing at the load balancer. So, it’s just not the right fit for me.
Presto Admin – Build
In any case, I did go through the motions of building this – because I could not find a source release. Fortunately, it’s pretty easy on Centos 7.x (basically RHEL 7.x):
# Download and unzip. wget https://github.com/prestosql/presto-admin/archive/2.7.tar.gz tar -xvzf 2.7.tar.gz # Install pip/etc. sudo yum install epel-release sudo yum install python-pip sudo yum install python-wheel # Run make file and build web installer. make dist
After this, just go into the dist folder and find prestoadmin-2.7-online.tar.gz.
I hope this saves you some time; I wasted around 20 minutes trying to find the dist online for download (which I never did).
Thanks for the posting. This is very easy to follow process for beginners.
I had followed instructions and ./install-prestoadmin.sh had been created correctly. But when i run the script, I got following errors:
prestoadmin-2.7-py2-none-linux_x86_64.whl is not a supported wheel on this platform.
I am running on Centos 7.4. Do you have suggestions?
LikeLike
Actually, I figured out its limitation before bothering actually using it (when reading forums). I only built it. I just reran through my instructions on a newer version of centos and see the same. It looks like it has its own python bundled in and it doesn’t like this OS version, but I didn’t investigate too much. I’d recommend checking out what OS version it’s recommended with; the same build steps probably work there and if you’re in a cloud env you can probably just use that and save time. Otherwise, you may have to mess around. The presto google group and prestosql slack channel are good though if you have questions :).
LikeLike