Sergey Shelukhin created HIVE-20471:
---------------------------------------
Summary: 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
{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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)