hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Steinbach (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1188) NPE when running TestJdbcDriver/TestHiveServer
Date Mon, 22 Feb 2010 22:26:28 GMT

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

Carl Steinbach updated HIVE-1188:
---------------------------------

                 Tags: git
    Affects Version/s: 0.6.0
                       0.5.0
               Status: Patch Available  (was: Open)

Git does recognize [empty directories|http://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F].
People who use the git mirror of the Hive subversion repository will not see the empty directories
that exist in the Hive source tree, and as a result tests such as TestJdbcDriver and TestHiveServer
will fail since they are unable to find the empty qfile directories that appear under contrib
and ql. Following the advice given [here|http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repository]
this patch adds a .gitignore file to each of the empty directories in the Hive source tree
in order to force Git to create these directories.




> NPE when running TestJdbcDriver/TestHiveServer
> ----------------------------------------------
>
>                 Key: HIVE-1188
>                 URL: https://issues.apache.org/jira/browse/HIVE-1188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>         Attachments: HIVE-1188.patch
>
>
> {noformat}
> % ant test -Dtestcase=TestJdbcDriver
> BUILD FAILED
> /Users/carl/Projects/hive/hd11/hive/build.xml:154: The following error occurred while
executing this line:
> /Users/carl/Projects/hive/hd11/hive/build.xml:93: The following error occurred while
executing this line:
> /Users/carl/Projects/hive/hd11/hive/contrib/build.xml:77: java.lang.NullPointerException
> 	at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
> 	at java.util.Arrays.asList(Arrays.java:3343)
> 	at org.apache.hadoop.hive.ant.QTestGenTask.execute(QTestGenTask.java:248)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:390)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
> 	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
> 	at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
> 	at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:390)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
> 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:801)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:218)
> 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> {noformat}
> TestHiveServer throws the same error.

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


Mime
View raw message