[ 
https://issues.apache.org/jira/browse/HDFS-13050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342662#comment-16342662
 ] 

Rakesh R commented on HDFS-13050:
---------------------------------

Thanks [~surendrasingh] for the patch. Adding few comments.

Please create 
org.apache.hadoop.hdfs.server.sps.ExternalStoragePolicySatsifier.java class and 
this can be used in the scripts.

{{ExternalStoragePolicySatsifier#main() method steps should be like,}}

    step-1) Successful nnc establishment with retries
        step-2) Make sure internal SPS is not running, if running then throw 
exception. Please refer, 
        {code}
          boolean spsRunning;
          try {
            spsRunning = nnc.getDistributedFileSystem().getClient()
                .isStoragePolicySatisfierRunning();
          } catch (RemoteException e) {
            IOException cause = e.unwrapRemoteException();
            if (cause instanceof StandbyException) {
              System.err.println("Skip Standby Namenode. " + nnc.toString());
              continue;
            }
            throw e;
          }
          if (spsRunning) {
            System.err.println("Startup failed due to StoragePolicySatisfier"
                + " running inside Namenode. Exiting with status "
                + ExitStatus.SKIPPED_DUE_TO_SPS + "... ");
            return ExitStatus.SKIPPED_DUE_TO_SPS.getExitCode();
          }
    {code}
    step-3) Pass this nn to the external context and other services.



> [SPS] : Create start/stop script to start external SPS process.
> ---------------------------------------------------------------
>
>                 Key: HDFS-13050
>                 URL: https://issues.apache.org/jira/browse/HDFS-13050
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>    Affects Versions: HDFS-10285
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Blocker
>         Attachments: HDFS-13050-HDFS-10285-01.patch, 
> HDFS-13050-HDFS-10285-02.patch
>
>
> As part of this Jira we will main class for SPS and modify the 
> \{{hadoop-daemon.sh}} to start external SPS.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to