Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. String serverName = properties.getProperty(ConnectionProperties.ServerName);
  2. String port = properties.getProperty(ConnectionProperties.PortNumber);
  3. String databaseName = properties.getProperty(ConnectionProperties.DatabaseName);
  4. String user = properties.getProperty(ConnectionProperties.User);
  5. String password = properties.getProperty(ConnectionProperties.Password);
  6. Connection connection = DriverManager.getConnection("jdbc:hive2://"+serverName+":"+port+"/"+databaseName+";UID="+user+";PWD="+password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement