[
https://issues.apache.org/jira/browse/HIVE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705364#action_12705364
]
Prasad Chakka commented on HIVE-453:
------------------------------------
TestHiveMetaStoreChecker log contains this. Looks like 'fs' is not initialized
in testPartitionsCheck()
{code}
<testcase
classname="org.apache.hadoop.hive.ql.metadata.TestHiveMetaStoreChecker"
name="testPartitionsCheck" time="0.572">
<error type="java.lang.NullPointerException">java.lang.NullPointerException
at
org.apache.hadoop.hive.ql.metadata.TestHiveMetaStoreChecker.testPartitionsCheck(TestHiveMetaStoreChecker.java:187)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
</error>
</testcase>
{code}
> external table metastore and execution codepaths use default FileSystem
> object instead of using one derived from the supplied path
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-453
> URL: https://issues.apache.org/jira/browse/HIVE-453
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Metastore
> Reporter: Joydeep Sen Sarma
> Assignee: Joydeep Sen Sarma
> Priority: Critical
> Attachments: hive-453.patch.1, hive-453.patch.2, hive-453.patch.3
>
>
> with fs.default.name set to file:///:
> hive> create external table kvu(key int, val string) location
> 's3n://data.s3ndemo.hive/kv1.txt'
> FAILED: Error in metadata: java.lang.IllegalArgumentException: Wrong FS:
> s3n://data.s3ndemo.hive/kv1.txt, expected: file:///
> stack trace:
> at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:322)
> at
> org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem
> .java:52)
> at
> org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.jav
> a:308)
> at
> org.apache.hadoop.fs.ChecksumFileSystem.mkdirs(ChecksumFileSystem.jav
> a:462)
> at
> org.apache.hadoop.hive.metastore.Warehouse.mkdirs(Warehouse.java:90)
> at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_tabl
> e(HiveMetaStore.java:293)
> at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(Hive
> MetaStoreClient.java:252)
> at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:256)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.