Member since
07-19-2018
2
Posts
0
Kudos Received
0
Solutions
09-21-2018
06:37 PM
Yep, that worked a treat. Thanks.
... View more
07-19-2018
09:39 PM
Unfortunately neither of these approaches seem to work. (CDH5.15 Kudu 1.7) ALTER TABLE your_table RENAME TO new_table_name; -> Works but it renames the table in the Impala/Hive metastore but *doesn't* rename the underlying Kudu table. ALTER TABLE table_name SET TBLPROPERTIES('kudu.table_name'='newtablename'); -> Doesn't work at all (as per ERROR: AnalysisException: Not allowed to set 'kudu.table_name' manually for managed Kudu tables.) Use case - large (non-additive) schema change for a table Take table, rename to new table name Create new table with the original table's name Insert data from old table into new table Archive / decom old table Step 2 breaks because the underlying Kudu table for the renamed talbe in step1 still retains the name of the original table.
... View more