[ 
https://issues.apache.org/jira/browse/AMBARI-15041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

bhuvnesh chaudhary updated AMBARI-15041:
----------------------------------------
    Description: 
Tez based application executions fais due to the below error:
{code}
2016-02-13 05:52:36,338 [INFO] [main] |service.AbstractService|: Service 
org.apache.tez.dag.history.HistoryEventHandler failed in state INITED; cause: 
org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
        at 
org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:46)
        at 
org.apache.tez.common.ReflectionUtils.createClazzInstance(ReflectionUtils.java:78)
        at 
org.apache.tez.dag.history.HistoryEventHandler.serviceInit(HistoryEventHandler.java:61)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at 
org.apache.tez.dag.app.DAGAppMaster.initServices(DAGAppMaster.java:1671)
        at 
org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:554)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at org.apache.tez.dag.app.DAGAppMaster$6.run(DAGAppMaster.java:2265)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at 
org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2262)
        at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2080)
Caused by: java.lang.ClassNotFoundException: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at 
org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:44)
{code}

Value of parameter tez.history.logging.service.class in tez-site.xml is set as 
below, but there is no ATSV15HistoryLoggingService class.
{code}
tez.history.logging.service.class=org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
{code} 

Class ATSHistoryLoggingService exists and with the below settings tez based 
applications runs 
successfully.{code}tez.history.logging.service.class=org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService{code}

  was:
Tez based application executions fais due to the below error:
{code}
2016-02-13 05:52:36,338 [INFO] [main] |service.AbstractService|: Service 
org.apache.tez.dag.history.HistoryEventHandler failed in state INITED; cause: 
org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
        at 
org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:46)
        at 
org.apache.tez.common.ReflectionUtils.createClazzInstance(ReflectionUtils.java:78)
        at 
org.apache.tez.dag.history.HistoryEventHandler.serviceInit(HistoryEventHandler.java:61)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at 
org.apache.tez.dag.app.DAGAppMaster.initServices(DAGAppMaster.java:1671)
        at 
org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:554)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at org.apache.tez.dag.app.DAGAppMaster$6.run(DAGAppMaster.java:2265)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at 
org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2262)
        at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2080)
Caused by: java.lang.ClassNotFoundException: 
org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at 
org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:44)
{code}

Value of parameter in tez-site.xml
{code}
tez.history.logging.service.class=org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
{code} 
However there is ATSV15HistoryLoggingService class.

Class ATSHistoryLoggingService exists and after updating value to  
org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService, tez based 
applications runs successfully.


> Tez service check failed due to class ATSV15HistoryLoggingService not found
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-15041
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15041
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: trunk, 2.2.0
>            Reporter: bhuvnesh chaudhary
>            Assignee: bhuvnesh chaudhary
>
> Tez based application executions fais due to the below error:
> {code}
> 2016-02-13 05:52:36,338 [INFO] [main] |service.AbstractService|: Service 
> org.apache.tez.dag.history.HistoryEventHandler failed in state INITED; cause: 
> org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
> org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
> org.apache.tez.dag.api.TezReflectionException: Unable to load class: 
> org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
>       at 
> org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:46)
>       at 
> org.apache.tez.common.ReflectionUtils.createClazzInstance(ReflectionUtils.java:78)
>       at 
> org.apache.tez.dag.history.HistoryEventHandler.serviceInit(HistoryEventHandler.java:61)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.initServices(DAGAppMaster.java:1671)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:554)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at org.apache.tez.dag.app.DAGAppMaster$6.run(DAGAppMaster.java:2265)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:422)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2262)
>       at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2080)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:348)
>       at 
> org.apache.tez.common.ReflectionUtils.getClazz(ReflectionUtils.java:44)
> {code}
> Value of parameter tez.history.logging.service.class in tez-site.xml is set 
> as below, but there is no ATSV15HistoryLoggingService class.
> {code}
> tez.history.logging.service.class=org.apache.tez.dag.history.logging.ats.ATSV15HistoryLoggingService
> {code} 
> Class ATSHistoryLoggingService exists and with the below settings tez based 
> applications runs 
> successfully.{code}tez.history.logging.service.class=org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to