Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-15-2017 10:21 AM
Hi All,
I copy the file from local to HDFS in " /data/folder1/file.gz" directory.
then i have created a external table "abc" using the same file location.
When i use command "drop table abc;" its drops the table and also the "folder1/file.gz" from HDFS.
Checked : No background process, no script, nothing running.
found the same in HDFS dir "/user/hiveuser/.Trash/Current/data/folder1/file.gz".
Created 01-15-2017 06:16 PM
Can you please try creating table on your /data/folder1 table instead of the file?
Created 01-15-2017 06:16 PM
Can you please try creating table on your /data/folder1 table instead of the file?
Created 01-16-2017 03:26 PM
Hi @Rohit Sharma. Did you use the 'EXTERNAL' keyword when you created the table? If you don't specify 'EXTERNAL' then it is an internal table and the data will be deleted, regardless of what location you specify for the data...