0
我希望通過在容器的內容上創建內部Hive表並刪除表,如下所示,刪除Azure Blob容器的內容。該容器包含一堆文本文件。但是,刪除Hive表似乎並未刪除容器的內容。刪除內部Hive表不會刪除底層Azure Blob存儲的內容
我正確地認爲,刪除內部表不會刪除容器的內容,因爲HDInsight使用Azure Blob存儲作爲其存儲而不是HDFS?任何有識之士將不勝感激。謝謝。
乾杯 瑞安
--Create internal table
CREATE TABLE temp_logs(
student_id INT,
subject_id INT,
marks INT,
insert_date STRING)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
LOCATION 'wasb://[email protected]/';
--Drop internal table and its underlying files in Azure Blob
DROP TABLE temp_logs;