-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8394] Fix the collector for Hbase2 does not work
- Loading branch information
1 parent
4732e4e
commit df8da5a
Showing
1 changed file
with
7 additions
and
16 deletions.
There are no files selected for viewing
23 changes: 7 additions & 16 deletions
23
...e/hbase2-collector/src/main/java/com/navercorp/pinpoint/collector/Hbase2CollectorApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} |