hadoop怎么清楚缓存
时间: 2023-12-14 14:32:32 浏览: 118
hadoop-2.7.2.zip
以下是清除Hadoop缓存的步骤:
1. 清除HDFS缓存
```shell
hdfs cacheadmin -removeDirectives -path <path>
```
2. 清除MapReduce缓存
```shell
mapred job -history all -clean
```
3. 清除YARN缓存
```shell
yarn rmadmin -refreshQueues
```
4. 清除HBase缓存
```shell
hbase hbck -fix
```
5. 清除ZooKeeper缓存
```shell
zookeeper-client rmr /hbase
```
阅读全文