Package org.apache.drill.yarn.client
Class ClientCommand
java.lang.Object
org.apache.drill.yarn.client.ClientCommand
- Direct Known Subclasses:
CleanCommand,HelpCommand,KillCommand,PrintConfigCommand,ResizeCommand,StartCommand,StatusCommand,StopCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.yarn.api.records.ApplicationIdprotected static FileReturn the path to the app id file.protected YarnRMClientprotected Stringprotected voidabstract voidrun()voidsetOpts(CommandLineOptions opts)
-
Field Details
-
opts
-
-
Constructor Details
-
ClientCommand
public ClientCommand()
-
-
Method Details
-
setOpts
-
run
- Throws:
ClientException
-
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
- Throws:
ClientException
-
getClient
- Throws:
ClientException
-
loadAppId
-
removeAppIdFile
protected void removeAppIdFile()
-