maprcli job linklogs command workes with the Centralized Logging to provides a job-centric view or an application-centric view of all log files generated during job or application execution.
The output of
job linklogs is a directory populated with symbolic links to all log files related to the specified job(s) or to the application. The command can be performed during or after a job or application is processed.
maprcli job linklogs -jobid <jobPattern> -todir <desinationDirectory> [-jobconf <pathToJobXml>]
The target directory for the symbolic links to the log files.
For MapReduce v1, the following directory structure will be created in the location specified by
todir for all jobids matching the
<jobid>/hosts/<host>/contains symbolic links to log directories of tasks executed for <jobid> on <host>
<jobid>/mappers/contains symbolic links to log directories of all map task attempts for <jobid> across the whole cluster
<jobid>/reducers/contains symbolic links to log directories of all reduce task attempts for <jobid> across the whole cluster
For MapReduce v2, the following directory will be created in the location specified by
todir for the application ID that you specify for the
<applicationId>/hosts/<host>/contains symbolic links to log directories of tasks executed for <applicationId> on <host>
Link logs for all jobs named "wordcount1" and dump output to /myvolume/joblogviewdir:
maprcli job linklogs -jobid job_*_wordcount1 -todir /myvolume/joblogviewdir