Connecting Using the JDBC Driver Manager
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Cloudera Impala 5.1
- Documentation
One way to connect to a database is through the JDBC Driver Manager using the DriverManager.getConnection() method. This method specifies a string containing a connection URL. This example shows how to establish a connection to a data source:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:impala://Server3:21050;
User=admin;Password=adminpass");