HADOOP-9863. Backport HADOOP-8686 to support BigEndian on ppc64. 
(Yu Li via eyang)



git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1515173 13f79535-47bb-0310-9956-ffa450edef68