[ 
https://issues.apache.org/jira/browse/HIVE-16729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16020159#comment-16020159
 ] 

Naveen Gangam commented on HIVE-16729:
--------------------------------------

Although not very practical, this in theory is supported currently.
{code}
hive> create table foo (a string) location '/';
OK
Time taken: 1.042 seconds
hive> show create table foo;
OK
CREATE TABLE `foo`(
  `a` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
  'hdfs://namenode.foo.com:8020/'
TBLPROPERTIES (
  'COLUMN_STATS_ACCURATE'='false', 
  'numFiles'='0', 
  'numRows'='-1', 
  'rawDataSize'='-1', 
  'totalSize'='0', 
  'transient_lastDdlTime'='1495483832')
Time taken: 0.258 seconds, Fetched: 17 row(s)
{code}

> Improve location validator to check for blank paths.
> ----------------------------------------------------
>
>                 Key: HIVE-16729
>                 URL: https://issues.apache.org/jira/browse/HIVE-16729
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>    Affects Versions: 3.0.0
>            Reporter: Naveen Gangam
>            Assignee: Naveen Gangam
>            Priority: Minor
>
> Currently, the schema tool location validator succeeds even when the location 
> for hive table/partitions have paths like
> hdfs://myhost.com:8020/
> hdfs://myhost.com:8020
> where there is actually no "real" path. Having the validator report such path 
> would be beneficial in preventing runtime errors.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to