hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-20471) issues getting the default database path
Date Mon, 27 Aug 2018 21:15:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-20471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Shelukhin updated HIVE-20471:
------------------------------------
    Description: 
{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/

  was:
{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.


> 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
>            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)

Mime
View raw message