[
https://issues.apache.org/jira/browse/HIVE-20471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Shelukhin reassigned HIVE-20471:
---------------------------------------
Assignee: Sergey Shelukhin
> issues getting the default database path
> ----------------------------------------
>
> Key: HIVE-20471
> URL: https://issues.apache.org/jira/browse/HIVE-20471
> Project: Hive
> Issue Type: Bug
> Reporter: Sergey Shelukhin
> Assignee: Sergey Shelukhin
> Priority: Major
>
> {noformat}
> Caused by: java.lang.IllegalArgumentException: Can not create a Path from an
> empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:168)
> at org.apache.hadoop.fs.Path.<init>(Path.java:237)
> at
> org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:143)
> at
> org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:147)
> at
> org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:160)
> at
> org.apache.hadoop.hive.metastore.Warehouse.getDatabasePath(Warehouse.java:235)
> at
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:2335)
> at
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:2074)
> {noformat}
> given that the path passed to getDnsPath is already a path that is probably
> valid, this method needs to be a little bit more reliable. Not sure which
> argument turns out to be empty, but I wonder why this complexity is needed
> for the default database.
> Of note: this only affects CTAS for me.
> I can create a table and insert data and it works fine; location is
> hdfs://[...].hortonworks.com:8020/warehouse/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)