[ 
https://issues.apache.org/jira/browse/HADOOP-19807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18057025#comment-18057025
 ] 

ASF GitHub Bot commented on HADOOP-19807:
-----------------------------------------

pan3793 commented on code in PR #8235:
URL: https://github.com/apache/hadoop/pull/8235#discussion_r2777277077


##########
BUILDING.txt:
##########
@@ -29,7 +29,17 @@ This requires a recent version of docker (1.4.1 and higher 
are known to work).
 On Linux / Mac:
     Install Docker and run this command:
 
-    $ ./start-build-env.sh [OS platform]
+    $ [CPU_ARCH=<arch>] ./start-build-env.sh [OS platform]
+
+   - [CPU_ARCH=<arch>] One of [x86_64, amd64, aarch64, arm64].
+        Default is output of 'uname -m'. Set to 'x86_64' on arm machine
+        (e.g. Apple M1) to create an x86_64 container.
+        Note:
+          CPU arch simulation may have significant performance overhead.

Review Comment:
   On Apple Silicon, Docker can leverage Rosetta2 for x86 emulation, the 
performance overhead is accepted.





> Enable cross-platform support for dev container
> -----------------------------------------------
>
>                 Key: HADOOP-19807
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19807
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.5.0
>            Reporter: Cheng Pan
>            Priority: Major
>              Labels: pull-request-available
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to