You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nguyen Nhanduc (Jira)" <ji...@apache.org> on 2020/02/03 11:35:00 UTC

[jira] [Created] (SPARK-30710) SPARK 2.4.4 - DROP TABLE and drop HDFS

Nguyen Nhanduc created SPARK-30710:
--------------------------------------

             Summary: SPARK 2.4.4 - DROP TABLE and drop HDFS
                 Key: SPARK-30710
                 URL: https://issues.apache.org/jira/browse/SPARK-30710
             Project: Spark
          Issue Type: Question
          Components: Deploy
    Affects Versions: 2.4.4
            Reporter: Nguyen Nhanduc
             Fix For: 2.4.4


Hi all,

I need to DROP a hive table and clear data in HDFS. But I can't convert it from External to Managed (I have to create external table for my business).

On Spark 2.0.2, I can use script ALTER TABLE <tbl_name> SET TBLPROPERTIES ('EXTERNAL' = 'FALSE'); then I execute script DROP TABLE <tbl_name>; metadata and data was deleted together.

But on spark 2.4.4, it's not work. I need a solution for that (drop a external table and drop data in hdfs or convert a external table to managed table and drop it).

Many thanks.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org