Package org.apache.drill.yarn.client
Class StartCommand
java.lang.Object
org.apache.drill.yarn.client.ClientCommand
org.apache.drill.yarn.client.StartCommand
Launches a drill cluster by uploading the Drill archive then launching the
Drill Application Master (AM). For testing, can also do just the upload or
just the launch. Handles both a localized Drill and a non-localized launch
(which uses a pre-installed Drill.)
This single operation combines upload and launch because the upload Information is needed by the launch.
On the surface, it would seem that uploading a file and launching an app should be simple operations. However, under YARN, we must handle a large number of details that must be gotten exactly right. Plus, both the upload and launch can be slow operations, so we provide feedback to the user that something is, indeed, happening.
-
Field Summary
Fields inherited from class org.apache.drill.yarn.client.ClientCommand
opts
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.drill.yarn.client.ClientCommand
checkAppId, getAppIdFile, getClient, loadAppId, removeAppIdFile, setOpts
-
Constructor Details
-
StartCommand
public StartCommand(boolean upload, boolean launch)
-
-
Method Details
-
run
- Specified by:
run
in classClientCommand
- Throws:
ClientException
-