Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1931 | 06-15-2020 05:23 AM | |
| 15556 | 01-30-2020 08:04 PM | |
| 2081 | 07-07-2019 09:06 PM | |
| 8131 | 01-27-2018 10:17 PM | |
| 4603 | 12-31-2017 10:12 PM |
06-17-2019
05:00 AM
@Jay actually it should be like this hadoop fs -rm -r -skipTrash hdfs://hdfsha/tmp/hive/hive/* need to add the "*" after slash in order to delete only the folders under /tmp/hive/hive and not the sub folder itself (/tmp/hive/hive)
... View more
06-17-2019
04:53 AM
@Jay , in my cluster ( HDFS --> config ) I see dfs.nameservices=hdfsha , so it should be like this? hadoop fs -rm -r -skipTrash hdfs://hdfsha/tmp/hive/hive/
... View more
06-16-2019
11:53 PM
@jay - nice I see there the option: hadoop fs -rm -r -skipTrash hdfs://mycluster/tmp/hive/hive/ this option will remove all folders under /tmp/hive/hive but what is the value - mycluster ? ( what I need to replace instead that ?
... View more
06-16-2019
11:48 PM
@jay - nice I see there the option: hadoop fs -rm -r -skipTrash hdfs://mycluster/tmp/hive/hive/ this option will remove all folders under /tmp/hive/hive but what is the value - mycluster ? ( what I need to replace instead that ?
... View more
06-16-2019
11:38 PM
and we have folder under /tmp/hive/hive so why cli return - Cannot find any scratch directory to clear [hdfs@master01 hive]$ hdfs dfs -ls /tmp/hive/hive
Found 4 items
drwx------ - hive hdfs 0 2019-06-16 21:58 /tmp/hive/hive/2f95f6a5-76ad-487e-968c-1873264a3a9c
drwx------ - hive hdfs 0 2019-06-16 21:45 /tmp/hive/hive/368d201c-cedf-48dc-bbad-f13d6aed7016
drwx------ - hive hdfs 0 2019-06-16 21:58 /tmp/hive/hive/717fb013-535b-4279-a12e-4fc4261c4d68
drwx------ - hive hdfs 0 2019-06-16 21:46 /tmp/hive/hive/a58a19fe-2fc1-4b71-82ec-3307de8e2d56
... View more
06-16-2019
11:36 PM
@Jay when I run it on test lab we get why ? [hive@master01 hive]$ hive --service cleardanglingscratchdir
Cannot find any scratch directory to clear
... View more
06-16-2019
11:30 PM
@dear Jay , ok our hive version is lower so we need to run the - ( from hive user ) do you think this cli will able to remove all old folders under /tmp/hive/hive ? hive --service cleardanglingscratchdir
... View more
06-16-2019
11:21 PM
@Dear KJay so finally lets summary when we set the following hive.server2.clear.dangling.scratchdir=true hive.start.cleanup.scratchdir=true and then we restart the hive service from ambari do you think this configuration will be able to delete the old folders under /tmp/hive/hive in spite the folder are a millions folders ?
... View more
06-16-2019
11:19 PM
Dear Geoffrey Shelton Okot , since this is production cluster we need to get approve to restart the HDFS and Yarn and map reduce ( as you know this settings require to restart all 3 services )
... View more
06-16-2019
11:16 PM
@ear Jay so finally lets summary when we set the following hive.server2.clear.dangling.scratchdir=true
hive.start.cleanup.scratchdir=true and then we restart the hive service from ambari do you think this configuration will be able to delete the old folders under /tmp/hive/hive in spite the folder are a millions folders ?
... View more