You can connect to the Apache Livy Thrift Server using the Beeline
client that is included with Apache Hive.
The Livy Thrift Server is disabled by default. Make sure that you have
enabled it before proceeding. For instructions, see Configuring the Livy
Thrift Server.
The information required to form a JDBC URL is included in the Livy
client configuration file,
/etc/livy/conf/livy-client.conf. Make sure that you
are on a gateway cluster host managed by Cloudera Manager to ensure that
the client configuration is included. You can designate a cluster host
as a Livy client by assigning it the Gateway role
in the Livy service configuration. For more information about role
assignments, see Managing Roles.
On a host designated as a Livy Gateway, view
the /etc/livy/conf/livy-client.conf file and note the
values of the following configuration parameters:
livy.uri
This is the URI for the Livy server. The hostname in this URI
is the hostname to use for the Thrift server connection.
livy.server.thrift.port
This is the port to use in the JDBC connection URL.
livy.server.thrift.transport.mode
This specifies the transport mode (either
binary or http).
Determine
the JDBC connection URL using the following table:
You can set configuration options
by appending ?<configuration_list> to the JDBC
connection URL. Separate multiple options with a semi-colon
(;). Supported options are: