Skip to content

Commit a35b9fc

Browse files
pratyakshsharmasteveburnett
authored andcommitted
Update presto-cli troubleshooting docs
1 parent b53d94d commit a35b9fc

File tree

1 file changed

+34
-0
lines changed
  • presto-docs/src/main/sphinx/security

1 file changed

+34
-0
lines changed

presto-docs/src/main/sphinx/security/ldap.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,37 @@ with the appropriate :abbr:`SAN (Subject Alternative Name)` added.
317317
Adding a SAN to this certificate is required in cases where ``https://`` uses IP address in the URL rather
318318
than the domain contained in the coordinator's certificate, and the certificate does not contain the
319319
:abbr:`SAN (Subject Alternative Name)` parameter with the matching IP address as an alternative attribute.
320+
321+
No console from which to read password
322+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
323+
324+
If you use the command line options ``--user`` and ``--password`` along with
325+
supplying the query statements to execute using ``--file`` or ``--execute`` command line options as below -
326+
327+
.. code-block:: none
328+
329+
./presto \
330+
--server https://presto-coordinator.example.com:8443 \
331+
--execute "select * from tpch.tiny.nation"
332+
--user <LDAP user> \
333+
--password
334+
335+
OR
336+
337+
./presto \
338+
--server https://presto-coordinator.example.com:8443 \
339+
--file input_queries.txt
340+
--user <LDAP user> \
341+
--password > output.txt
342+
343+
The following error might be displayed:
344+
345+
.. code-block:: none
346+
347+
java.lang.RuntimeException: No console from which to read password
348+
349+
To avoid this error, export the password using the ``PRESTO_PASSWORD`` environment variable:
350+
351+
.. code-block:: none
352+
353+
export PRESTO_PASSWORD=<password>

0 commit comments

Comments
 (0)