Class ClientCommand

java.lang.Object
org.apache.drill.yarn.client.ClientCommand
Direct Known Subclasses:
CleanCommand, HelpCommand, KillCommand, PrintConfigCommand, ResizeCommand, StartCommand, StatusCommand, StopCommand

public abstract class ClientCommand extends Object
  • Field Details

  • Constructor Details

    • ClientCommand

      public ClientCommand()
  • Method Details

    • setOpts

      public void setOpts(CommandLineOptions opts)
    • run

      public abstract void run() throws ClientException
      Throws:
      ClientException
    • getAppIdFile

      protected static File getAppIdFile()
      Return the path to the app id file. The file goes into the directory above Drill Home (which should be the folder that contains the localized archive) and is named for the ZK cluster (to ensure that the name is a valid file name.)
      Returns:
    • checkAppId

      protected org.apache.hadoop.yarn.api.records.ApplicationId checkAppId() throws ClientException
      Throws:
      ClientException
    • getClient

      protected YarnRMClient getClient() throws ClientException
      Throws:
      ClientException
    • loadAppId

      protected String loadAppId(File appIdFile)
    • removeAppIdFile

      protected void removeAppIdFile()