Vijayakumar Govindasamy created AMBARI-26546:
------------------------------------------------

             Summary: Quartz scheduler is broken 
                 Key: AMBARI-26546
                 URL: https://issues.apache.org/jira/browse/AMBARI-26546
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 3.0.0
            Reporter: Vijayakumar Govindasamy
            Assignee: Vijayakumar Govindasamy


Problem:
 # Quartz scheduler is not working as expected in Ambari
 # When any slave service restart is triggered following error is thrown,

{code:java}
 Exception caught on execution of job LinearExecutionJobs.BatchRequestJob-52-1. 
Exiting linear chain...
org.apache.ambari.server.AmbariException: Exception occurred while performing 
request
        at 
org.apache.ambari.server.scheduler.ExecutionScheduleManager.executeBatchRequest(ExecutionScheduleManager.java:673)
        at 
org.apache.ambari.server.state.scheduler.BatchRequestJob.doWork(BatchRequestJob.java:82)
        at 
org.apache.ambari.server.scheduler.AbstractLinearExecutionJob.execute(AbstractLinearExecutionJob.java:91)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.ClassCastException: class 
org.glassfish.jersey.client.internal.HttpUrlConnector$1 cannot be cast to class 
java.lang.String (org.glassfish.jersey.client.internal.HttpUrlConnector$1 is in 
unnamed module of loader 'app'; java.lang.String is in module java.base of 
loader 'bootstrap')
        at 
org.apache.ambari.server.scheduler.ExecutionScheduleManager.convertToBatchRequestResponse(ExecutionScheduleManager.java:730)
        at 
org.apache.ambari.server.scheduler.ExecutionScheduleManager.performApiRequest(ExecutionScheduleManager.java:932)
        at 
org.apache.ambari.server.scheduler.ExecutionScheduleManager.executeBatchRequest(ExecutionScheduleManager.java:661)
        ... 4 common frames omitted
2025-09-10 15:59:38,362  INFO [ExecutionScheduler_Worker-1] 
o.q.c.JobRunShell:207 - Job LinearExecutionJobs.BatchRequestJob-52-1 threw a 
JobExecutionException:
org.quartz.JobExecutionException: org.apache.ambari.server.AmbariException: 
Exception occurred while performing request
        at 
org.apache.ambari.server.scheduler.AbstractLinearExecutionJob.execute(AbstractLinearExecutionJob.java:97)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.apache.ambari.server.AmbariException: Exception occurred while 
performing request {code}
When SSL is enabled for Ambari UI, We also need to disable hostname verifier in 
BatchScheduler code to track/submit the request to Ambari.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to