[ https://issues.apache.org/jira/browse/SPARK-45542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-45542. ----------------------------------- Fix Version/s: 4.0.0 Resolution: Fixed Issue resolved by pull request 43377 [https://github.com/apache/spark/pull/43377] > Replace `setSafeMode(HdfsConstants.SafeModeAction, boolean)` with > `setSafeMode(SafeModeAction, boolean)` > -------------------------------------------------------------------------------------------------------- > > Key: SPARK-45542 > URL: https://issues.apache.org/jira/browse/SPARK-45542 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 4.0.0 > Reporter: Yang Jie > Assignee: Yang Jie > Priority: Minor > Labels: pull-request-available > Fix For: 4.0.0 > > > {code:java} > /** > * Enter, leave or get safe mode. > * > * @param action > * One of SafeModeAction.ENTER, SafeModeAction.LEAVE and > * SafeModeAction.GET. > * @param isChecked > * If true check only for Active NNs status, else check first NN's > * status. > * > * @see > org.apache.hadoop.hdfs.protocol.ClientProtocol#setSafeMode(HdfsConstants.SafeModeAction, > * boolean) > * > * @deprecated please instead use > * {@link DistributedFileSystem#setSafeMode(SafeModeAction, > boolean)}. > */ > @Deprecated > public boolean setSafeMode(HdfsConstants.SafeModeAction action, > boolean isChecked) throws IOException { > return dfs.setSafeMode(action, isChecked); > } {code} > > `setSafeMode(HdfsConstants.SafeModeAction, boolean)` is `Deprecated` -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org