集群安全模式

集群安全模式

(1)hdfs dfsadmin -safemode get      (功能描述:查看安全模式状态)

(2)hdfs dfsadmin -safemode enter  (功能描述:进入安全模式状态)

(3)hdfs dfsadmin -safemode leave   (功能描述:离开安全模式状态)

(4)hdfs dfsadmin -safemode wait     (功能描述:等待安全模式状态,监控安全模式)

案例:编写脚本,当系统关闭安全模式时自动执行操作

#!/bin/bash

bin/hdfs dfsadmin -safemode wait(安全模式关闭)

bin/hdfs dfs -put ~/hello.txt /root/hello.txt


集群安全模式
https://www.hechunyu.com/archives/1698217184303
作者
chunyu
发布于
2022年02月25日
许可协议