You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Venkat Ramachandran (JIRA)" <ji...@apache.org> on 2009/08/13 01:38:14 UTC

[jira] Created: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

Encountered ClassNotFound exception when trying HWI server
----------------------------------------------------------

                 Key: HIVE-752
                 URL: https://issues.apache.org/jira/browse/HIVE-752
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Clients
         Environment: Hadoop 0.18.3
            Reporter: Venkat Ramachandran


Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.

It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:

static {
    JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
    JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
    JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
    JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
  }

however, I think it should be as below:

 static 
  {
	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
  } 

Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo commented on HIVE-752:
--------------------------------------

Even with the changes above HWI is having a hard time starting up. I will look into this.

{noformat}
[ecapriolo@laptop1 dist]$ HADOOP_HOME=/home/ecapriolo/hadoop-0.20.0 bin/hive --service hwi
09/08/28 16:35:33 INFO hwi.HWIServer: HWI is starting up
09/08/28 16:35:33 FATAL hwi.HWIServer: HWI WAR file not found at ${HIVE_HOME}/lib/hive-hwi.war
09/08/28 16:35:33 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
09/08/28 16:35:33 INFO mortbay.log: jetty-6.1.14
09/08/28 16:35:33 ERROR mortbay.log: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@e64686{/,null}
java.lang.NullPointerException
        at org.mortbay.resource.Resource.newResource(Resource.java:140)
        at org.mortbay.resource.Resource.newResource(Resource.java:120)
        at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:885)
        at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:793)
        at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:456)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:222)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.apache.hadoop.hive.hwi.HWIServer.start(HWIServer.java:79)
        at org.apache.hadoop.hive.hwi.HWIServer.main(HWIServer.java:108)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
09/08/28 16:35:33 INFO mortbay.log: Started SocketConnector@0.0.0.0:9999


{noformat}

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Todd Lipcon commented on HIVE-752:
----------------------------------

bq. Sure, every feature of Hive should be tested by hudson, but I do not think JUnit replaces real testing. I personally test everything on a live cluster because the world is full of gotchas. 

Unfortunately this increases the barrier to contribution significantly. As feature sets grow it becomes impossible to do this without a full time QA staff. So, for now, we need at least continuous smoke testing of all features, including HWI imho. When a release candidate is rolled it's time for the significant manual testing - asking for that on every commit is pretty difficult.

bq. I do think the shims should have some independent j-unit tests. Example what happens when someone trys to compile with 0.21.? I am hoping a unit test failure would be present in the shims.

The shims should be covered by virtue of their use elsewhere. I think in the original ticket I suggested that we get separate build running on Hudson that tests all of the unit tests against all of the supported Hadoop versions - I'm not sure who's in charge of the Hive Hudson, but if Cloudera can help get that set up we'd be happy to.

bq. I have much 0_20 angst. 1 because all the JMX stuff got renamed and all my cacti templates are broken  2. In general it seems like a lot changed and everyone is chasing after it.

+1 :) Also agreed that it is a blocker.

I'm getting on a plane in a couple hours for a week long vacation, but I'll try to sneak in some time to get this fixed. In the meantime, it would be great if you could write up a "manual test plan" for HWI. Its existence isn't even mentioned in README.txt, so it's difficult for new contributors to figure out what functionality they need to manually verify.

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>         Attachments: hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo updated HIVE-752:
---------------------------------

    Status: Patch Available  (was: Open)

Added Test case, tested with 17 18 20

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>         Attachments: hive-752-1.diff, hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo updated HIVE-752:
---------------------------------

    Attachment: hive-752-1.diff

Added a jetty Test Case
Tweek to build.xml for jetty test.
Fixed 20 shim to set war and context path.

Still need to test 18 and 19

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>         Attachments: hive-752-1.diff, hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Todd Lipcon commented on HIVE-752:
----------------------------------

Oops - you're totally right. Careless find/replace on my part. The fix you proposed should be correct.

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo updated HIVE-752:
---------------------------------

    Priority: Blocker  (was: Major)

Updating to blocker as HWI can not start.

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>         Attachments: hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo commented on HIVE-752:
--------------------------------------

Todd,

In my reflection patch before your shim work I added a test case to test that the jetty Server starts. We should have something similar. 

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo commented on HIVE-752:
--------------------------------------

Todd,

Sure, every feature of Hive should be tested by hudson, but I do not think JUnit replaces real testing. I personally test everything on a live cluster because the world is full of gotchas. 

I do think the shims should have some independent j-unit tests. Example what happens when someone trys to compile with 0.21.? I am hoping a unit test failure would be present in the shims.

I have much 0_20 angst. 1 because all the JMX stuff got renamed and all my cacti templates are broken :) 2. In general it seems like a lot changed and everyone is chasing after it.

This slipped under my radar too. I commented on the issue even. However I was under the impression that the problem was isolated. (don't ask me why). But this is a blocker it is across the board broken.



> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>         Attachments: hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Carl Steinbach updated HIVE-752:
--------------------------------

    Fix Version/s: 0.4.0

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>             Fix For: 0.4.0
>
>         Attachments: hive-752-1.diff, hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo updated HIVE-752:
---------------------------------

    Attachment: hive-752.diff

Not sure if this fixes all issues but adds a test case for some shim validity. Fixes the class name error. Will add more later.

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>         Attachments: hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo reassigned HIVE-752:
------------------------------------

    Assignee: Edward Capriolo

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Edward Capriolo commented on HIVE-752:
--------------------------------------

All, 

I am a little perturbed about this. If I am looking at this correctly this is the first and only revision of ShimLoader in SVN.

http://svn.apache.org/viewvc/hadoop/hive/trunk/shims/src/common/java/org/apache/hadoop/hive/shims/ShimLoader.java?view=log

As Venkat points out this Jetty Shims are completely broken. Which the class names specified 
{noformat}
org.apache.jetty.hive.shims.Jetty19Shims
{noformat}
incorrectly, I believe any attempt to start up HWI with any version of Hadoop would have failed. I have fixed the class name for 20shim and that is failing now with a null pointer.

Why did we commit shims without any test cases? 

I know HWI can be somewhat awkward to test case, but was it tested at all?

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Todd Lipcon commented on HIVE-752:
----------------------------------

Sorry, that last one should read HIVE-487

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Todd Lipcon commented on HIVE-752:
----------------------------------

Hi Edward,

As I think I noticed in the original JIRA, I did not manually test HWI. I figured that any necessary tests would already exist in the form of JUnit tests - in my opinion every supported feature of Hive should be continuously tested by Hudson.

If you can add a test case that passes pre-HIVE-718 and fails now, I will happily fix it.

-Todd

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-752) Encountered ClassNotFound exception when trying HWI server

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

Namit Jain updated HIVE-752:
----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

Committed in both trunk and 0.4 - thanks Edward

> Encountered ClassNotFound exception when trying HWI server
> ----------------------------------------------------------
>
>                 Key: HIVE-752
>                 URL: https://issues.apache.org/jira/browse/HIVE-752
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>         Environment: Hadoop 0.18.3
>            Reporter: Venkat Ramachandran
>            Assignee: Edward Capriolo
>            Priority: Blocker
>         Attachments: hive-752-1.diff, hive-752.diff
>
>
> Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.
> It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:
> static {
>     JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims");
>     JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims");
>     JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims");
>     JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims");
>   }
> however, I think it should be as below:
>  static 
>   {
> 	  JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims");
> 	  JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims");
> 	  JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims");
> 	  JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims");
>   } 
> Wondering if anybody else encountered this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.