Getting started

Elasticsearch ships with a script, named elasticsearch-sql-cli, to run the SQL CLI (command-line interface) in its bin directory. Let's use the Elasticsearch Docker container to run the example. Assume that the container ID is 6b3d0fde663d and issue the command, as described in the following code block, to start a bash shell session in the Docker container:

$docker exec -it elasticsearch /bin/bash[root@6b3d0fde663d elasticsearch]# 

You will get a prompt in response, and now you are working in the Elasticsearch Docker container. Issue the elasticsearch-sql-cli command to run the SQL CLI:

[root@6b3d0fde663d elasticsearch]# bin/elasticsearch-sql-cliWARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact ...

Get Advanced Elasticsearch 7.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.