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

Nick Dimiduk commented on HBASE-27915:
--------------------------------------

I took a quick scroll through the Dockerfile. I don't think there's anything 
about it that should require an architecture-specific consideration. I believe 
that the problem is in the user documentation, in that the user needs to 
explicitly include a platform parameter when they build the image. This will 
depend based on what tool is being used (I think there are some differences, 
for example, between docker buildkit and podman in how they handle platform 
selection defaults).

> Update hbase_docker with an extra Dockerfile compatible with mac m1 platfrom
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-27915
>                 URL: https://issues.apache.org/jira/browse/HBASE-27915
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Wellington Chevreuil
>            Assignee: Wellington Chevreuil
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.7.0, 3.0.0-beta-2, 2.6.1, 2.5.9
>
>
> When trying to use the current Dockerfile under "./dev-support/hbase_docker" 
> on m1 macs, the docker build fails at the git clone & mvn build stage with 
> below error:
> {noformat}
>  #0 8.214 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such 
> file or directory
> {noformat}
> It turns out for mac m1, we have to explicitly define the platform flag for 
> the ubuntu image. I thought we could add a note in this readme, together with 
> an "m1" subfolder containing a modified copy of this Dockerfile that works on 
> mac m1s.



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

Reply via email to