hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <>
Subject [jira] [Commented] (HIVE-3815) hive table rename fails if filesystem cache is disabled
Date Thu, 04 Apr 2013 22:24:21 GMT


Thejas M Nair commented on HIVE-3815:

The root cause of this issue  (copied from the comment in patch) - 

    //When file system cache is disabled, you get different FileSystem objects
    // for same file system, so '==' can't be used in such cases
    //FileSystem api doesn't have a .equals() function implemented, so using
    //the uri for comparison. FileSystem already uses uri+Configuration for
    //equality in its CACHE .
> hive table rename fails if filesystem cache is disabled
> -------------------------------------------------------
>                 Key: HIVE-3815
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3815.1.patch
> If fs.<filesyste>.impl.disable.cache  (eg fs.hdfs.impl.disable.cache) is set to
true, then table rename fails.
> The exception that gets thrown (though not logged!) is 
> {quote}
> Caused by: InvalidOperationException(message:table new location hdfs://host1:8020/apps/hive/warehouse/t2
is on a different file system than the old location hdfs://host1:8020/apps/hive/warehouse/t1.
This operation is not supported)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_result$
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_result$
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$
>         at org.apache.thrift.TServiceClient.receiveBase(
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_alter_table(
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.alter_table(
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_table(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(
>         at $Proxy7.alter_table(Unknown Source)
>         at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(
>         ... 18 more
> {quote}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message