最近在做表名重命名的时候,出现了以下问题,运行情况如下:
hive>
>
>
> alter table test rename to test2;
Invalid alter operation: table new location hdfs://master:8020/user/hive/warehouse/test_db.db/test2 is on a different file system than the old location hdfs://master:8020/user/hive/warehouse/test_db.db/test. This operation is not supported 505693086 505694464
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
目前还在解决中……