Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45542

Replace `setSafeMode(HdfsConstants.SafeModeAction, boolean)` with `setSafeMode(SafeModeAction, boolean)`

    XMLWordPrintableJSON

Details

    Description

      /**
       * 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);
      } 

       

      `setSafeMode(HdfsConstants.SafeModeAction, boolean)` is `Deprecated`

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: