skip to main content
Getting Started : Connecting Using the Driver Manager : Passing the Connection URL
  

Try DataDirect Drivers Now

Passing the Connection URL

After registering the driver, the required connection information needs to be passed in the form of a connection URL. The connection URL takes the form:
jdbc:datadirect:impala://servername:[port][;property=value[;...]]
where:
servername
specifies the name or the IP address of the server to which you want to connect.
port
specifies the port number of the server listener. The default is 21050.
property=value
specifies connection property settings. Multiple properties are separated by a semi-colon. For more information on connection properties, see "Using Connection Properties."
The install_dir/samples directory, where install_dir is your product installation directory, contains a sample application that illustrates the steps of connecting to a Cloudera Impala server.
This example shows how to establish a connection to a Cloudera Impala server with user ID/password authentication:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:impala://Server3:21050;
DatabaseName=Test;User=admin;Password=adminpass");