Skip to content

Commit

Permalink
[#8394] Fix the collector for Hbase2 does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
koo-taejin committed Nov 11, 2021
1 parent 4732e4e commit df8da5a
Showing 1 changed file with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
package com.navercorp.pinpoint.collector;

import com.navercorp.pinpoint.common.server.util.ServerBootLogger;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@SpringBootConfiguration
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, TransactionAutoConfiguration.class})
@ImportResource({ "classpath:applicationContext-collector.xml", "classpath:servlet-context-collector.xml"})
public class Hbase2CollectorApp {
private static final ServerBootLogger logger = ServerBootLogger.getLogger(Hbase2CollectorApp.class);
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Hbase2CollectorApp {
private static final ServerBootLogger logger = ServerBootLogger.getLogger(CollectorApp.class);

public static void main(String[] args) {
try {
CollectorStarter starter = new CollectorStarter(Hbase2CollectorApp.class);
starter.start(args);
} catch (Exception exception) {
logger.error("[CollectorApp] could not launch app.", exception);
}
logger.info(String.format("%s start", Hbase2CollectorApp.class.getSimpleName()));

CollectorApp.main(args);
}

}

0 comments on commit df8da5a

Please sign in to comment.