How to Update/Drop a Hive Partition?

前端 未结 5 658
迷失自我
迷失自我 2020-12-12 10:55

After adding a partition to an external table in Hive, how can I update/drop it?

5条回答
  •  爱一瞬间的悲伤
    2020-12-12 11:48

    You may also need to make database containing table active

    use [dbname]
    

    otherwise you may get error (even if you specify database i.e. dbname.table )

    FAILED Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter partition. Unable to alter partitions because table or database does not exist.

提交回复
热议问题