Instalar Presto 8.8 Portable Page
./presto-cli.jar --server localhost:8080 --catalog tpch --schema sf1 Inside CLI:
[Install] WantedBy=multi-user.target
connector.name=tpch sudo mkdir -p /var/presto/data sudo mkdir -p /var/log/presto sudo chown -R $(whoami):$(whoami) /var/presto /var/log/presto /opt/presto 5. Start Presto Server cd /opt/presto/current bin/launcher start Check status: instalar presto 8.8
Date: Current Target Version: Presto 8.8 Environment: Linux (Ubuntu/Debian/CentOS/RHEL) Prerequisites: Java 11 (64-bit), Python 2.7+ (for launcher script) 1. Pre-Installation Checklist | Requirement | Verification Command | |-------------|----------------------| | Java 11 | java -version (must show OpenJDK 11) | | Memory | Free memory for Presto coordinator (minimum 4GB, recommended 8GB+) | | Disk Space | ~500MB for binaries + space for logs/data | | No running Presto | Ensure no existing Presto process conflicts |
sudo systemctl daemon-reload sudo systemctl enable presto sudo systemctl start presto | Symptom | Likely Cause | Solution | |---------|--------------|----------| | java.lang.UnsupportedClassVersionError | Wrong Java version | Install Java 11 | | Port 8080 already in use | Conflict with another service | Change http-server.http.port | | OutOfMemoryError | Insufficient heap | Increase -Xmx in jvm.config | | Discovery service failed | Wrong discovery.uri | Ensure it matches coordinator URL | | Catalog not found | Missing properties file | Check /etc/catalog/*.properties | 9. Verification Report After successful startup, you should see: Verification Report After successful startup
SHOW TABLES; SELECT * FROM nation LIMIT 5; Create /etc/systemd/system/presto.service :
$ bin/launcher status Running as [PID] $ curl http://localhost:8080/v1/info "nodeVersion":"version":"0.288","environment":"production","coordinator":true,"starting":false you should see: SHOW TABLES
bin/launcher status View logs: