Hama Commands

Jar

Runs a jar file. Users can bundle their BSP code in a jar file and execute it using this command.

Usage: hama jar <jar> [mainClass] args...

Job

Command to interact with BSP Jobs.

Usage: hama job [-submit <job-file>] | [-status <job-id>] | [-kill <job-id>] | [-list [all]] | [-list-active-grooms] | [-kill-task <task-id>] | [-fail-task <task-id>]

-submit <job-file>

Submits the job.

-status <job-id>

Prints the job status.

-kill <job-id>

Kills the job.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8132f2b1-c52b-4469-92ad-84e8dca7dd9f"><ac:plain-text-body><![CDATA[

-list [all]

-list all displays all jobs. -list displays only jobs which are yet to complete.

]]></ac:plain-text-body></ac:structured-macro>

-list-active-grooms

Display the list of active groom server in the cluster.

-list-attempt-ids <jobId> <task-state>

Displays the list of tasks for a given job currently in a particular state (running or completed).

-kill-task <task-id>

Kills the task. Killed tasks are NOT counted against failed attempts.

-fail-task <task-id>

Fails the task. Failed tasks are counted against failed attempts.

  • No labels