[
https://issues.apache.org/jira/browse/HIVE-6431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072912#comment-14072912
]
Navis commented on HIVE-6431:
-----------------------------
By default, FileInputFormat(which is the super class of various formats) in
hadoop ignores file name starts with "_" or ".", and hard to walk around this
in hive codebase.
> Hive table name start with underscore (_)
> -----------------------------------------
>
> Key: HIVE-6431
> URL: https://issues.apache.org/jira/browse/HIVE-6431
> Project: Hive
> Issue Type: Bug
> Components: Database/Schema
> Affects Versions: 0.12.0
> Reporter: Kuek Chiew Yea
>
> When I create a hive table with table name start with underscore, I am able
> to create successfully. The command that I am using is as the following:
> *CREATE TABLE `_testtable` AS SELECT * FROM `dimdate`;*
> Once created, I issue a command (as following) to query all records from that
> table.
> *SELECT * FROM `_testtable`;*
> However, I got the error as the following:
> *Failed with exception
> java.io.IOException:org.apache.hadoop.mapred.InvalidInputException: Input
> path does not exist: hdfs://sandbox:8020/apps/hive/warehouse/_testtable*
> When I run the hdfs command to list the file in directory
> */apps/hive/warehouse/_testtable*, I am able to get list of files in that
> directory.
--
This message was sent by Atlassian JIRA
(v6.2#6252)