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:sparksql://Server3:10000;
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:sparksql://123.456.78.90:10000;
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:
SparkSQLDataSource mds = new SparkSQLDataSource();
mds.setDescription("My SparkSQLDataSource");
mds.setServerName("123.456.78.90");
...