currentServiceName = getFirstConfigPrefix(conf);
databaseUrl = conf.getString(DATABASE_URL_KEY);
if (databaseUrl == null)
throw new MetricsException(
"databaseUrl required in the metrics2 configuration for SqlServerSink.");
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
} catch (ClassNotFoundException cnfe) {
throw new MetricsException(
"SqlServerSink requires the Microsoft JDBC driver for SQL Server.");
}
hadoopConfig = new org.apache.hadoop.conf.Configuration();
if (hadoopConfig != null) {