Skip to content

Commit

Permalink
More info on client services
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Wills committed Jun 25, 2012
1 parent 59f6d23 commit c576c62
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Expand Up @@ -210,15 +210,23 @@ application to the slave nodes that are launched via containers.
### Client Services ### Client Services


Kitten ships with a default client application, [KittenClient](http://github.com/cloudera/kitten/blob/master/java/client/src/main/java/com/cloudera/kitten/client/KittenClient.java), Kitten ships with a default client application, [KittenClient](http://github.com/cloudera/kitten/blob/master/java/client/src/main/java/com/cloudera/kitten/client/KittenClient.java),
which is intended to be used with YARN applications that provide which is intended to be used with YARN applications that provide their status via a tracking URL and do not require application-specific client interactions. KittenClient
their status via a tracking URL and do not require application-specific client interactions. has two required arguments: the first should be a path to a .lua file that contains the configuration information for a YARN application, and the second should be the
name of one of the tables defined in that file using the `yarn` function. Additionally, KittenClient implements Hadoop's `Tool` interface, and so those two required
arguments may be preceded by the other Hadoop configuration arguments.

KittenClient can also be used as a basis for your own YARN applications by subclassing KittenClient and overriding the `handle` method for interacting with the
service.


### ApplicationMaster Services ### ApplicationMaster Services


Kitten also ships with a default application master, the aptly-named [ApplicationMaster](http://github.com/cloudera/kitten/blob/master/java/master/src/main/java/com/cloudera/kitten/appmaster/ApplicationMaster.java), Kitten also ships with a default application master, the aptly-named [ApplicationMaster](http://github.com/cloudera/kitten/blob/master/java/master/src/main/java/com/cloudera/kitten/appmaster/ApplicationMaster.java),
which is primarily provided as an which is primarily intended as an example.
example. Most real YARN applications will also incorporate some logic for coordinating the slave nodes into their application master
binary, as well as for passing additional configuration information to the Lua DSL. Most real YARN applications will also incorporate some logic for coordinating the slave nodes into their application master
binary, as well as for passing additional configuration information to the Lua DSL. The ApplicationMasterParameters interface provides methods
that allow the application master to specify the hostname (`setHostname`), port (`setClientPort`), and a tracking URL (`setTrackingUrl`) that
will be passed along to the ResourceManager and then to the client.


## FAQ ## FAQ


Expand Down

0 comments on commit c576c62

Please sign in to comment.