You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2008/10/02 23:57:44 UTC

[jira] Created: (HADOOP-4332) derbyclient.jar and derbytools.jar show ship with hive

derbyclient.jar and derbytools.jar show ship with hive
------------------------------------------------------

                 Key: HADOOP-4332
                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
             Project: Hadoop Core
          Issue Type: Improvement
          Components: contrib/hive
         Environment: Cent OS 5 x86-64 JDK 1.6
            Reporter: Edward Capriolo
            Priority: Minor


Attempting to use the Derby ClientDriver will cause a null pointer exception. 

derbyclient.jar and derbytools.jar
javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.ClientDriver

hive> show tables;
08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
with URI jdbc:derby://nyhadoop1:1527/metastore_db
FAILED: Error in semantic analysis: java.lang.NullPointerException
08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
java.lang.NullPointerException

derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception not having the appropriate driver should be trapped and reported differently if possible.

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


[jira] Commented: (HADOOP-4332) derbyclient.jar and derbytools.jar should be included in hive/lib

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636487#action_12636487 ] 

Prasad Chakka commented on HADOOP-4332:
---------------------------------------

Edward,

Could you submit a patch for this?

Thanks,
Prasad

> derbyclient.jar and derbytools.jar should be included in hive/lib
> -----------------------------------------------------------------
>
>                 Key: HADOOP-4332
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: contrib/hive
>         Environment: Cent OS 5 x86-64 JDK 1.6
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.
> hive> show tables;
> 08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
> with URI jdbc:derby://nyhadoop1:1527/metastore_db
> FAILED: Error in semantic analysis: java.lang.NullPointerException
> 08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
> java.lang.NullPointerException
> derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

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


[jira] Updated: (HADOOP-4332) derbyclient.jar and derbytools.jar should be included in hive/lib

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

Edward Capriolo updated HADOOP-4332:
------------------------------------

    Description: 
Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.

hive> show tables;
08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
with URI jdbc:derby://nyhadoop1:1527/metastore_db
FAILED: Error in semantic analysis: java.lang.NullPointerException
08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
java.lang.NullPointerException

derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

  was:
Attempting to use the Derby ClientDriver will cause a null pointer exception. 

derbyclient.jar and derbytools.jar
javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.ClientDriver

hive> show tables;
08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
with URI jdbc:derby://nyhadoop1:1527/metastore_db
FAILED: Error in semantic analysis: java.lang.NullPointerException
08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
java.lang.NullPointerException

derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception not having the appropriate driver should be trapped and reported differently if possible.

        Summary: derbyclient.jar and derbytools.jar should be included in hive/lib  (was: derbyclient.jar and derbytools.jar show ship with hive)

> derbyclient.jar and derbytools.jar should be included in hive/lib
> -----------------------------------------------------------------
>
>                 Key: HADOOP-4332
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: contrib/hive
>         Environment: Cent OS 5 x86-64 JDK 1.6
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.
> hive> show tables;
> 08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
> with URI jdbc:derby://nyhadoop1:1527/metastore_db
> FAILED: Error in semantic analysis: java.lang.NullPointerException
> 08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
> java.lang.NullPointerException
> derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

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


[jira] Updated: (HADOOP-4332) derbyclient.jar and derbytools.jar should be included in hive/lib

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

Edward Capriolo updated HADOOP-4332:
------------------------------------


I have started to look into the code. Would the correct patch for this be to trap the error and throw a new exception? Should this be a runtime exception? 

> derbyclient.jar and derbytools.jar should be included in hive/lib
> -----------------------------------------------------------------
>
>                 Key: HADOOP-4332
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: contrib/hive
>         Environment: Cent OS 5 x86-64 JDK 1.6
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.
> hive> show tables;
> 08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
> with URI jdbc:derby://nyhadoop1:1527/metastore_db
> FAILED: Error in semantic analysis: java.lang.NullPointerException
> 08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
> java.lang.NullPointerException
> derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

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


[jira] Commented: (HADOOP-4332) derbyclient.jar and derbytools.jar should be included in hive/lib

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640518#action_12640518 ] 

Prasad Chakka commented on HADOOP-4332:
---------------------------------------

Yeah, we should catch if the correct driver doesn't exist. If we start adding clients it might bloat the distribution with jars that not all of users may not need.

> derbyclient.jar and derbytools.jar should be included in hive/lib
> -----------------------------------------------------------------
>
>                 Key: HADOOP-4332
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: contrib/hive
>         Environment: Cent OS 5 x86-64 JDK 1.6
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.
> hive> show tables;
> 08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
> with URI jdbc:derby://nyhadoop1:1527/metastore_db
> FAILED: Error in semantic analysis: java.lang.NullPointerException
> 08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
> java.lang.NullPointerException
> derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

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


[jira] Updated: (HADOOP-4332) derbyclient.jar and derbytools.jar should be included in hive/lib

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

Edward Capriolo updated HADOOP-4332:
------------------------------------


I am looking at this. Would the best way to handle this be to extend runtime exception with a custom error class?

> derbyclient.jar and derbytools.jar should be included in hive/lib
> -----------------------------------------------------------------
>
>                 Key: HADOOP-4332
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4332
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: contrib/hive
>         Environment: Cent OS 5 x86-64 JDK 1.6
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Attempting to use the Derby ClientDriver will cause a null pointer exception because derbyclient.jar and derbytools.jar are not in lib.
> hive> show tables;
> 08/10/02 15:17:12 INFO hive.metastore: Trying to connect to metastore
> with URI jdbc:derby://nyhadoop1:1527/metastore_db
> FAILED: Error in semantic analysis: java.lang.NullPointerException
> 08/10/02 15:17:12 ERROR ql.Driver: FAILED: Error in semantic analysis:
> java.lang.NullPointerException
> derbyclient.jar and derbytools.jar should probably be put in the hive/lib directory. Also this type of exception could happen often with different JDBC libraries the exception should be trapped better

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