[ https://issues.apache.org/jira/browse/HDFS-8520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14570870#comment-14570870 ]
Tony Reix commented on HDFS-8520: --------------------------------- I have just rechecked that the patch does not break tests on Ubuntu/x86_64. git clone https://github.com/apache/hadoop cd hadoop git checkout branch-2.7 patch -p1 < ../HDFS-8520.patch mvn -l mvn.Test.TestFsDatasetCache.res test -Pnative,src -Drequire.snappy -Dmaven.test.failure.ignore=true -Dsurefire.heap=-Xmx2048m -fn -Dtest=org.apache.hadoop.hdfs.server.datanode.TestFsDatasetCache Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 96.657 sec - in org.apache.hadoop.hdfs.server.datanode.TestFsDatasetCache mvn -l mvn.Test.TestCacheDirectives.res test -Pnative,src -Drequire.snappy -Dmaven.test.failure.ignore=true -Dsurefire.heap=-Xmx2048m -fn -Dtest=org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 82.207 sec - in org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives > Patch for PPC64 block size > -------------------------- > > Key: HDFS-8520 > URL: https://issues.apache.org/jira/browse/HDFS-8520 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.7.1 > Environment: RHEL 7.1 /PPC64 > Reporter: Tony Reix > Fix For: 2.7.1 > > Attachments: HDFS-8520.patch > > > The attached patch enables Hadoop to work on PPC64. > That deals with SystemPageSize and BloclSize , which are not 4096 on PPC64. > There are changes in 3 files: > - > hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java > - > hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestFsDatasetCache.java > - > hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCacheDirectives.java > where 4096 is replaced by getOperatingSystemPageSize() or by using PAGE_SIZE > The patch has been built on branch-2.7 . -- This message was sent by Atlassian JIRA (v6.3.4#6332)