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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.yarn.api.records.ApplicationId
protected static File
Return the path to the app id file.protected YarnRMClient
protected String
protected void
abstract void
run()
void
setOpts
(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()
-