[ 
https://issues.apache.org/jira/browse/TEZ-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15155698#comment-15155698
 ] 

Hitesh Shah commented on TEZ-3105:
----------------------------------

[~gss2002] Thanks for the patch. Some minor comments: 

    - Please fix the indentation to 2 spaces and not tabs.
    -  getVmemMethod() and getProcCpuMethod() need to handle the case that 
mbeanClazz can be potentially null
    - getCumulativeVmem() and getCumulativeCpuTime() also both need minor 
changes to account for the fact that the method objects in question can be null 
if there was a problem in instantiating them. 

Last point regarding  mbeanClazz, vmemMethod and cpuMethod - these are 
currently final objects instantiated once per class. They could likely be 
defined as final static vars and instantiated in a static block given that they 
will likely be unchanged across the lifetime of a JVM. 

Would you mind uploading a new patch file to the jira as an attachment. This 
will trigger the pre-commit build to verify the patch. 

[~gopalv] anything else that you would like to add/edit? 


> Tez does not run on IBM JDK 7 or 8
> ----------------------------------
>
>                 Key: TEZ-3105
>                 URL: https://issues.apache.org/jira/browse/TEZ-3105
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Greg Senia
>            Assignee: Greg Senia
>              Labels: ibm, ibm-jdk
>         Attachments: TEZ-3105-2.patch, TEZ-3105.patch
>
>
> When testing Hive on Tez with IBM JDK 7 and 8. The following issue was 
> discovered:
> 2016-02-08 22:25:22,869 [ERROR] [main] |app.DAGAppMaster|: Error starting 
> DAGAppMaster
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.hadoop.yarn.util.ResourceCalculatorProcessTree.getResourceCalculatorProcessTree(ResourceCalculatorProcessTree.java:225)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.initResourceCalculatorPlugins(DAGAppMaster.java:347)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:371)
>       at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>       at org.apache.tez.dag.app.DAGAppMaster$6.run(DAGAppMaster.java:2274)
>       at 
> java.security.AccessController.doPrivileged(AccessController.java:686)
>       at javax.security.auth.Subject.doAs(Subject.java:569)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
>       at 
> org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2271)
>       at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2086)
> Caused by: java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:88)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:436)
>       at 
> org.apache.hadoop.yarn.util.ResourceCalculatorProcessTree.getResourceCalculatorProcessTree(ResourceCalculatorProcessTree.java:221)
>       ... 9 more
> Caused by: java.lang.ClassCastException: 
> com.ibm.lang.management.ExtendedOperatingSystem incompatible with 
> com.sun.management.OperatingSystemMXBean
>       at 
> org.apache.tez.util.TezMxBeanResourceCalculator.<init>(TezMxBeanResourceCalculator.java:44)



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

Reply via email to