You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Kristam Subba Swathi (JIRA)" <ji...@apache.org> on 2012/05/28 07:24:23 UTC

[jira] [Created] (HIVE-3060) ClassNotFoundError while executing the getClusterStatus API

Kristam Subba Swathi created HIVE-3060:
------------------------------------------

             Summary: ClassNotFoundError while executing the getClusterStatus API
                 Key: HIVE-3060
                 URL: https://issues.apache.org/jira/browse/HIVE-3060
             Project: Hive
          Issue Type: Bug
          Components: Shims
    Affects Versions: 0.9.0
            Reporter: Kristam Subba Swathi


Please find the exception trace
----------------------------
{noformat}
Exception in thread "pool-1-thread-3" java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobTracker$State
	at org.apache.hadoop.hive.shims.Hadoop20SShims$2.<clinit>(Hadoop20SShims.java:35)
	at org.apache.hadoop.hive.shims.Hadoop20SShims.getJobTrackerState(Hadoop20SShims.java:35)
	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.getClusterStatus(HiveServer.java:244)
	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:749)
	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:737)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobTracker$State
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

{noformat}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3060) ClassNotFoundError while executing the getClusterStatus API

Posted by "rohithsharma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288587#comment-13288587 ] 

rohithsharma commented on HIVE-3060:
------------------------------------

I verified with patch. It is working fine. Please duplicate this issue. Thanks :-)
                
> ClassNotFoundError while executing the getClusterStatus API
> -----------------------------------------------------------
>
>                 Key: HIVE-3060
>                 URL: https://issues.apache.org/jira/browse/HIVE-3060
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>    Affects Versions: 0.9.0
>            Reporter: Kristam Subba Swathi
>
> Please find the exception trace
> ----------------------------
> {noformat}
> Exception in thread "pool-1-thread-3" java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobTracker$State
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims$2.<clinit>(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims.getJobTrackerState(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.getClusterStatus(HiveServer.java:244)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:749)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:737)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobTracker$State
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HIVE-3060) ClassNotFoundError while executing the getClusterStatus API

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan resolved HIVE-3060.
------------------------------------

    Resolution: Duplicate
    
> ClassNotFoundError while executing the getClusterStatus API
> -----------------------------------------------------------
>
>                 Key: HIVE-3060
>                 URL: https://issues.apache.org/jira/browse/HIVE-3060
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>    Affects Versions: 0.9.0
>            Reporter: Kristam Subba Swathi
>
> Please find the exception trace
> ----------------------------
> {noformat}
> Exception in thread "pool-1-thread-3" java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobTracker$State
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims$2.<clinit>(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims.getJobTrackerState(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.getClusterStatus(HiveServer.java:244)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:749)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:737)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobTracker$State
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3060) ClassNotFoundError while executing the getClusterStatus API

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286135#comment-13286135 ] 

Ashutosh Chauhan commented on HIVE-3060:
----------------------------------------

Dupe of HIVE-3029 ? Can you try the patch attached there and if it works, can you close this one ?
                
> ClassNotFoundError while executing the getClusterStatus API
> -----------------------------------------------------------
>
>                 Key: HIVE-3060
>                 URL: https://issues.apache.org/jira/browse/HIVE-3060
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>    Affects Versions: 0.9.0
>            Reporter: Kristam Subba Swathi
>
> Please find the exception trace
> ----------------------------
> {noformat}
> Exception in thread "pool-1-thread-3" java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobTracker$State
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims$2.<clinit>(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims.getJobTrackerState(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.getClusterStatus(HiveServer.java:244)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:749)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:737)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobTracker$State
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3060) ClassNotFoundError while executing the getClusterStatus API

Posted by "rohithsharma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284296#comment-13284296 ] 

rohithsharma commented on HIVE-3060:
------------------------------------

This exception is thrown when Hive-0.9.0 is deployed with Hadoop-X.0.0 where X > 0. 

Reason for above exception,
    Hive loads 0.20,0.20S and 0.23 version of hadoopshims. We get hadoop version from classpath "VersionInfo.getVersion()" is 2.0.0-SNAPSHOT. But returning 0.20S if X > 0. 

Correct me If I am wrong,
As hadoop-0.23 name is same as hadoop-2.0.0, hive should support for hadoop-2.0.0. i.e we need to add haddop shims for hadoop-2.0.0.
                
> ClassNotFoundError while executing the getClusterStatus API
> -----------------------------------------------------------
>
>                 Key: HIVE-3060
>                 URL: https://issues.apache.org/jira/browse/HIVE-3060
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>    Affects Versions: 0.9.0
>            Reporter: Kristam Subba Swathi
>
> Please find the exception trace
> ----------------------------
> {noformat}
> Exception in thread "pool-1-thread-3" java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/JobTracker$State
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims$2.<clinit>(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.shims.Hadoop20SShims.getJobTrackerState(Hadoop20SShims.java:35)
> 	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.getClusterStatus(HiveServer.java:244)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:749)
> 	at org.apache.hadoop.hive.service.ThriftHive$Processor$getClusterStatus.getResult(ThriftHive.java:737)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobTracker$State
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira