pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.41k stars 3.75k forks source link

Hbase2 version of pinpoint-batch not working #8988

Closed dv-morais closed 2 years ago

dv-morais commented 2 years ago

Version: 2.5.0 SNAPSHOT (master), hbase 2.3.0

Problem:

after the #8901 issue was resolved I downloaded the project again and created the .jar files.

After that I tried to execute but I was faced with this error.

06-28 16:07:50.136 INFO  ProfileResolveListener              : onApplicationEvent(ApplicationEnvironmentPreparedEvent)
06-28 16:07:50.137 INFO  ProfileEnvironmentPostProcessor     : postProcessEnvironment
06-28 16:07:50.140 INFO  PinpointProfileEnvironment          : spring.profiles.active:[release]
06-28 16:07:50.140 INFO  PinpointProfileEnvironment          : pinpoint.profiles.active=release
06-28 16:07:50.141 INFO  PinpointProfileEnvironment          : PropertiesPropertySource pinpoint.profiles.active=release
06-28 16:07:50.141 INFO  PinpointProfileEnvironment          : PropertiesPropertySource logging.config=classpath:profiles/release/log4j2.xml
06-28 16:07:50.141 INFO  PinpointProfileEnvironment          : Add PropertySource name:PinpointProfileEnvironment 'pinpoint.profiles.active=release'
2022-06-28 16:07:50,265 main INFO The nolookups option will be ignored. Message Lookups are no longer supported.
2022-06-28 16:07:50,281 main INFO The nolookups option will be ignored. Message Lookups are no longer supported.
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- applicationEvent:ApplicationEnvironmentPreparedEvent
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name configurationProperties
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name servletConfigInitParams
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name servletContextInitParams
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name systemProperties
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name systemEnvironment
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name random
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name Config resource 'file [config/application.properties]' via location 'optional:file:./config/'
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name Config resource 'class path resource [application.yml]' via location 'optional:classpath:/'
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name PinpointProfileEnvironment 'pinpoint.profiles.active=release'
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.ExternalEnvironmentListener  -- onApplicationEvent(ApplicationEnvironmentPreparedEvent})
06-28 16:07:50.050 [           main] INFO  c.n.p.c.s.e.ExternalEnvironment          -- -Dpinpoint.batch.config.location is not set
06-28 16:07:50.050 [           main] INFO  c.n.p.b.BatchApp                         -- Starting BatchApp v2.5.0-SNAPSHOT using Java 11.0.13 on apmweb with PID 2429813 (/web/java/pinpoint-web/pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar started by root in /web/java/pinpoint-web)
06-28 16:07:50.050 [           main] INFO  c.n.p.b.BatchApp                         -- The following 1 profile is active: "release"
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'hbaseConfiguration' of type [com.navercorp.pinpoint.common.hbase.HbaseConfigurationFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'hbaseConfiguration' of type [org.apache.hadoop.conf.Configuration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'hbaseThreadPool' of type [com.navercorp.pinpoint.common.server.util.PinpointThreadPoolExecutorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'hbaseThreadPool' of type [java.util.concurrent.ThreadPoolExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  c.n.p.b.c.BatchConfiguration             -- before setup field: BatchConfiguration{emailServerUrl='smtpprdm.prodemge.gov.br', senderEmailAddress='pinpoint@prodemge.gov.br', enableWebhook='true', pinpointUrl='http://apm.prodemge.gov.br', batchEnv='release', flinkServerList=[10.100.40.109], enableCleanupInactiveAgents=false, cleanupInactiveAgentsDurationDays=30, cleanupInactiveAgentsCron=''}
06-28 16:07:52.052 [           main] INFO  c.n.p.b.c.BatchConfiguration             -- after setup field : BatchConfiguration{emailServerUrl='smtpprdm.prodemge.gov.br', senderEmailAddress='pinpoint@prodemge.gov.br', enableWebhook='true', pinpointUrl='http://apm.prodemge.gov.br', batchEnv='release', flinkServerList=[10.100.40.109], enableCleanupInactiveAgents=false, cleanupInactiveAgentsDurationDays=30, cleanupInactiveAgentsCron='0 0 0 29 2 ?'}
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'batchConfiguration' of type [com.navercorp.pinpoint.batch.common.BatchConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'com.fasterxml.jackson.databind.ObjectMapper#2c7b5824' of type [com.fasterxml.jackson.databind.ObjectMapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'org.springframework.http.converter.json.MappingJackson2HttpMessageConverter#5cdd09b1' of type [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'org.springframework.http.converter.FormHttpMessageConverter#8c11eee' of type [org.springframework.http.converter.FormHttpMessageConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'org.springframework.http.converter.StringHttpMessageConverter#7e8dcdaa' of type [org.springframework.http.converter.StringHttpMessageConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'restTemplate' of type [org.springframework.web.client.RestTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'driverProperties' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'driverProperties' of type [java.util.Properties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'dataSourceHikariConfig' of type [com.zaxxer.hikari.HikariConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-dataSource - Starting...
06-28 16:07:52.052 [           main] WARN  c.z.h.u.DriverDataSource                 -- Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
06-28 16:07:52.052 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-dataSource - Start completed.
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'dataSource' of type [com.zaxxer.hikari.HikariDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:52.052 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'com.navercorp.pinpoint.web.dao.ibatis.BindingLogPlugin32#3569fc08' of type [com.navercorp.pinpoint.web.dao.ibatis.BindingLogPlugin32] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'sqlSessionFactory' of type [org.mybatis.spring.SqlSessionFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'userDao' of type [com.navercorp.pinpoint.web.dao.mysql.MysqlUserDao] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'userServiceImpl' of type [com.navercorp.pinpoint.web.service.UserServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'webhookDao' of type [com.navercorp.pinpoint.web.dao.mysql.MysqlWebhookDao] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'webhookSendInfoDao' of type [com.navercorp.pinpoint.web.dao.mysql.MysqlWebhookSendInfoDao] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'webhookServiceImpl' of type [com.navercorp.pinpoint.web.service.WebhookServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  trationDelegate$BeanPostProcessorChecker -- Bean 'jobRegistry' of type [org.springframework.batch.core.configuration.support.MapJobRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06-28 16:07:53.053 [           main] INFO  o.s.b.w.e.t.TomcatWebServer              -- Tomcat initialized with port(s): 8090 (http)
06-28 16:07:53.053 [           main] INFO  o.a.c.h.Http11NioProtocol                -- Initializing ProtocolHandler ["http-nio-8090"]
06-28 16:07:53.053 [           main] INFO  o.a.c.c.StandardService                  -- Starting service [Tomcat]
06-28 16:07:53.053 [           main] INFO  o.a.c.c.StandardEngine                   -- Starting Servlet engine: [Apache Tomcat/9.0.60]
06-28 16:07:53.053 [           main] INFO  o.a.c.c.C.[.[.[/]                        -- Initializing Spring embedded WebApplicationContext
06-28 16:07:53.053 [           main] INFO  w.s.c.ServletWebServerApplicationContext -- Root WebApplicationContext: initialization completed in 3205 ms
06-28 16:07:53.053 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-meta - Starting...
06-28 16:07:53.053 [           main] WARN  c.z.h.u.DriverDataSource                 -- Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
06-28 16:07:53.053 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-meta - Start completed.
06-28 16:07:53.053 [           main] INFO  o.s.b.c.r.s.JobRepositoryFactoryBean     -- No database type set, using meta data indicating: MYSQL
06-28 16:07:53.053 [           main] INFO  o.s.b.c.l.s.SimpleJobLauncher            -- No TaskExecutor has been set, defaulting to synchronous executor.
06-28 16:07:54.054 [           main] INFO  c.n.p.w.c.ConfigProperties               -- ConfigProperties{sendUsage=true, editUserInfo=true, showActiveThread=false, showActiveThreadDump=false, enableActiveThreadDump=false, enableServerMapRealTime=false, openSource=true, securityGuideUrl='null', showApplicationStat=true, showStackTraceOnError=true, webSocketAllowedOrigins=*, webhookEnable=true}
06-28 16:07:54.054 [           main] WARN  o.a.h.u.NativeCodeLoader                 -- Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (jar:file:/web/java/pinpoint-web/pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar!/BOOT-INF/lib/hadoop-auth-2.10.0.jar!/) to method sun.security.krb5.Config.getInstance()
WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.KerberosUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:zookeeper.version=3.5.9-83df9301aa5c2a5d284a9940177808c01bc35cef, built on 01/06/2021 20:03 GMT
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:host.name=apmweb
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.version=11.0.13
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.vendor=Amazon.com Inc.
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.home=/usr/lib/jvm/java-11-amazon-corretto
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.class.path=pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.io.tmpdir=/tmp
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:java.compiler=<NA>
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.name=Linux
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.arch=amd64
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.version=4.18.0-193.el8.x86_64
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:user.name=root
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:user.home=/root
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:user.dir=/web/java/pinpoint-web
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.memory.free=588MB
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.memory.max=9044MB
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Client environment:os.memory.total=938MB
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ZooKeeper                          -- Initiating client connection, connectString=apmbanco:2181 sessionTimeout=90000 watcher=org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient$$Lambda$712/0x00000008006eec40@57168765
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.c.X509Util                         -- Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ClientCnxnSocket                   -- jute.maxbuffer value is 4194304 Bytes
06-28 16:07:54.054 [2181@0x2b917fb0] INFO  o.a.z.ClientCnxn                         -- zookeeper.request.timeout value is 0. feature enabled=
06-28 16:07:54.054 [(apmbanco:2181)] INFO  o.a.z.ClientCnxn                         -- Opening socket connection to server apmbanco/10.100.40.113:2181. Will not attempt to authenticate using SASL (unknown error)
06-28 16:07:54.054 [(apmbanco:2181)] INFO  o.a.z.ClientCnxn                         -- Socket connection established, initiating session, client: /10.100.40.107:41002, server: apmbanco/10.100.40.113:2181
06-28 16:07:54.054 [(apmbanco:2181)] INFO  o.a.z.ClientCnxn                         -- Session establishment complete on server apmbanco/10.100.40.113:2181, sessionid = 0x1001b229d8b0016, negotiated timeout = 90000
06-28 16:07:55.055 [           main] WARN  ConfigServletWebServerApplicationContext -- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean#0' defined in class path resource [applicationContext-web-hbase.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/google/protobuf/RpcChannel
06-28 16:07:55.055 [           main] INFO  c.n.p.c.h.HbaseTemplate2                 -- HBaseTemplate2.destroy()
06-28 16:07:55.055 [           main] INFO  c.n.p.c.h.ConnectionFactoryBean          -- Hbase Connection destroy()
06-28 16:07:55.055 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-meta - Shutdown initiated...
06-28 16:07:55.055 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-meta - Shutdown completed.
06-28 16:07:55.055 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-dataSource - Shutdown initiated...
06-28 16:07:55.055 [           main] INFO  c.z.h.HikariDataSource                   -- HikariPool-dataSource - Shutdown completed.
06-28 16:07:55.055 [           main] INFO  o.a.c.c.StandardService                  -- Stopping service [Tomcat]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- applicationEvent:ApplicationFailedEvent
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name configurationProperties
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name servletConfigInitParams
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name servletContextInitParams
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name systemProperties
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name systemEnvironment
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name random
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name Config resource 'file [config/application.properties]' via location 'optional:file:./config/'
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name Config resource 'class path resource [application.yml]' via location 'optional:classpath:/'
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- PropertySource name PinpointProfileEnvironment 'pinpoint.profiles.active=release'
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- CompositePropertySource name BatchAppPropertySources-JDBC
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [profiles/release/jdbc.properties]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [jdbc-root.properties]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- CompositePropertySource name BatchAppPropertySources-HBase
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [profiles/release/hbase.properties]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [hbase-root.properties]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   -- CompositePropertySource name BatchAppPropertySources
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [profiles/release/batch.properties]
06-28 16:07:55.055 [           main] INFO  c.n.p.c.s.e.EnvironmentLoggingListener   --   class path resource [batch-root.properties]
06-28 16:07:55.055 [           main] INFO  ConditionEvaluationReportLoggingListener -- 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
06-28 16:07:55.055 [           main] ERROR o.s.b.SpringApplication                  -- Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean#0' defined in class path resource [applicationContext-web-hbase.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/google/protobuf/RpcChannel
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.20.jar!/:5.3.20]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.20.jar!/:5.3.20]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.5.12.jar!/:2.5.12]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.5.12.jar!/:2.5.12]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448) [spring-boot-2.5.12.jar!/:2.5.12]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) [spring-boot-2.5.12.jar!/:2.5.12]
    at com.navercorp.pinpoint.common.server.starter.BasicStarter.start(BasicStarter.java:53) [pinpoint-commons-server-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at com.navercorp.pinpoint.batch.BatchApp.main(BatchApp.java:46) [pinpoint-batch-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
Caused by: java.lang.NoClassDefFoundError: com/google/protobuf/RpcChannel
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?]
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[?:?]
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:555) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:458) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151) ~[pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    at org.apache.hadoop.hbase.client.ConnectionImplementation.getAdmin(ConnectionImplementation.java:462) ~[hbase-client-2.4.11.jar!/:2.4.11]
    at com.navercorp.pinpoint.common.hbase.HbaseAdminFactory.getAdmin(HbaseAdminFactory.java:42) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at com.navercorp.pinpoint.common.hbase.HBaseAdminTemplate.execute(HBaseAdminTemplate.java:190) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean.afterPropertiesSet(HbaseVersionCheckBean.java:45) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.3.20.jar!/:5.3.20]
    ... 23 more
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.RpcChannel
    at java.net.URLClassLoader.findClass(URLClassLoader.java:476) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151) ~[pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?]
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[?:?]
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:555) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:458) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151) ~[pinpoint-hbase2-batch-2.5.0-SNAPSHOT.jar:2.5.0-SNAPSHOT]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    at org.apache.hadoop.hbase.client.ConnectionImplementation.getAdmin(ConnectionImplementation.java:462) ~[hbase-client-2.4.11.jar!/:2.4.11]
    at com.navercorp.pinpoint.common.hbase.HbaseAdminFactory.getAdmin(HbaseAdminFactory.java:42) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at com.navercorp.pinpoint.common.hbase.HBaseAdminTemplate.execute(HBaseAdminTemplate.java:190) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean.afterPropertiesSet(HbaseVersionCheckBean.java:45) ~[pinpoint-commons-hbase-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) ~[spring-beans-5.3.20.jar!/:5.3.20]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.3.20.jar!/:5.3.20]
    ... 23 more
06-28 16:07:55.091 ERROR BatchApp                            : [WebApp] could not launch app.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean#0' defined in class path resource [applicationContext-web-hbase.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/google/protobuf/RpcChannel
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
    at com.navercorp.pinpoint.common.server.starter.BasicStarter.start(BasicStarter.java:53)
    at com.navercorp.pinpoint.batch.BatchApp.main(BatchApp.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.lang.NoClassDefFoundError: com/google/protobuf/RpcChannel
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
    at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:555)
    at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
    at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    at org.apache.hadoop.hbase.client.ConnectionImplementation.getAdmin(ConnectionImplementation.java:462)
    at com.navercorp.pinpoint.common.hbase.HbaseAdminFactory.getAdmin(HbaseAdminFactory.java:42)
    at com.navercorp.pinpoint.common.hbase.HBaseAdminTemplate.execute(HBaseAdminTemplate.java:190)
    at com.navercorp.pinpoint.common.hbase.HbaseVersionCheckBean.afterPropertiesSet(HbaseVersionCheckBean.java:45)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.RpcChannel
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 40 more

am I doing something wrong?

emeroad commented 2 years ago

Thank you for your reporting. We will check this problem.

minwoo-jung commented 2 years ago

@dv-morais I'll check this issue.

minwoo-jung commented 2 years ago

@dv-morais I have reproduced the problem and am trying to fix it.

minwoo-jung commented 2 years ago

@dv-morais I've fixed the issue, try the build and run yourself, and let me know if you run into any further issues.

CristianeBorges commented 2 years ago

@minwoo-jung , @dv-morais @emeroad

Thank you for working on this issue.

The Pinpoint returned to generate the alarms for the email.