[
https://issues.apache.org/jira/browse/MAPREDUCE-6258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320647#comment-14320647
]
Jian Fang commented on MAPREDUCE-6258:
--------------------------------------
It is not uncommon, all users run hadoop clusters in cloud should face the same
issue. For example, we have to write a specific progress to dump out the JHS
files to local disks continuously and then upload to multiple places such as
s3. As we observed, the single process did not scale well for a big and busy
cluster and the overhead to synchronize the local JHS files and the files on
HDFS is nontrivial. Furthermore, we need to have the JHS files available once a
Job is finished that rules out distcp.
As far as I understand, the current JHS files are stored on HDFS only by
looking at its internal implementation. I think the reason is that they have to
be remotely accessible if the job history server runs in another node after the
JHS server is separated out from the job tracker in Hadoop one and the job
tracker is split into multiple distributed components in hadoop two. You cannot
really just dump the JHS files to somewhere. The "somewhere" must be reliable
and accessible by the JHS server. As a result, I think this feature is the easy
way to achieve our goal. Furthermore, this feature is off by default, users
turn it on only when they need it.
> add support to back up JHS files from application master
> --------------------------------------------------------
>
> Key: MAPREDUCE-6258
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6258
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Components: applicationmaster
> Affects Versions: 2.4.1
> Reporter: Jian Fang
> Attachments: MAPREDUCE-6258.patch
>
>
> In hadoop two, job history files are stored on HDFS with a default retention
> period of one week. In a cloud environment, these HDFS files are actually
> stored on the disks of ephemeral instances that could go away once the
> instances are terminated. Users may want to back up the job history files for
> issue investigation and performance analysis before and after the cluster is
> terminated.
> A centralized backup mechanism could have a scalability issue for big and
> busy Hadoop clusters where there are probably tens of thousands of jobs every
> day. As a result, it is preferred to have a distributed way to back up the
> job history files in this case. To achieve this goal, we could add a new
> feature to back up the job history files in Application master. More
> specifically, we could copy the job history files to a backup path when they
> are moved from the temporary staging directory to the intermediate_done path
> in application master. Since application masters could run on any slave nodes
> on a Hadoop cluster, we could achieve a better scalability by backing up the
> job history files in a distributed fashion.
> Please be aware, the backup path should be managed by the Hadoop users based
> on their needs. For example, some Hadoop users may copy the job history files
> to a cloud storage directly and keep them there forever. While some other
> users may want to store the job history files on local disks and clean them
> up from time to time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)