You can perform an interactive query on an MRS cluster client. For clusters with Kerberos authentication enabled, users who submit topologies must belong to the presto group.
The Presto component of MRS 3.x does not support Kerberos authentication.
For example, if you have updated the client on the Master2 node, log in to the Master2 node to use the client. For details, see Updating a Client.
sudo su - omm
cd /opt/client
source bigdata_env
presto_cli.sh --server http://ip:port
presto_cli.sh --krb5-config-path krb5.conf file path --krb5-principal User's principal --krb5-keytab-path user.keytab file path --user presto username
presto_cli.sh --krb5-config-path krb5.conf file path --krb5-principal User's principal --krb5-keytab-path user.keytab file path --server https://ip:port --krb5-remote-service-name Presto Server name
The native client of Presto is Presto/presto/bin/presto in the client directory.
For clusters with Kerberos authentication enabled, when querying Hive Catalog data, the user who runs the Presto client must have the permission to access Hive tables and run the grant all on table [table_name] to group hive command in Hive beeline to grant permissions to the Hive group.
quit