skip to main content
Using the Driver : IP Addresses
  

Try DataDirect Drivers Now

IP Addresses

The driver supports Internet Protocol (IP) addresses in IPv4 format.
The server name specified in a connection URL, or data source, can resolve to an IPv4 address. In the following example, the server name Server3 can resolve to an IPv4 address:
jdbc:datadirect:impala://Server3:21050;
DatabaseName=Test;User=admin;Password=secret
Alternately, you can specify addresses using IPv4 format in the server portion of the connection URL. For example, the following connection URL specifies the server using an IPv4 address:
jdbc:datadirect:impala://123.456.78.90:21050;
DatabaseName=Test;User=admin;Password=secret
You also can specify addresses using the ServerName data source property. The following example shows a data source definition that specifies the server name using an IPv4 address:
ImpalaDataSource mds = new ImpalaDataSource();
mds.setDescription("My ImpalaDataSource");
mds.setServerName("123.456.78.90");
...