Custom Docker image for presto development currently only with Elasticsearch connector.
Elasticsearch+Kibana:
-
Start the Docker service:
cd ./elasticserch docker-compose up
-
Create test index:
-
Execute elastic_init/create_es_test_index.json at the Kibana web editor
-
Change the params at elastic_init/elastic_bulk_insert.py
-
Load the test data into the index
python elastic_init/elastic_bulk_insert.py
Presto
-
Build the image
bash ./build.sh
-
copy the TransportService address from the running Elasticsearch container:
docker logs <elasticsearch_container_id> | grep publish_address
-
Paste previously copied publish_address to presto/etc/elasticsearch/kibana_sample_data_flights.json to the "host" parameter
-
Start the Presto server/Cli container
bash run.sh
Show catalogs:
show catalogs;
Select from test index:
select * from elasticsearch.default.prestodebug;
Fixes: