[ 
https://issues.apache.org/jira/browse/RANGER-4330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhishek Kumar updated RANGER-4330:
-----------------------------------
    Description: 
There is a change in CPU arch from amd64 to arm64 in the ubuntu 20.04 base 
image, the Java path changes due to this which affects all docker containers 
since all images depend on this base image.

 

Before

------

abhishek.kumar@21127 ~ % docker run -ti --rm 14be0685b768 /bin/bash             
                       

WARNING: The requested image's platform (linux/amd64) does not match the 
detected host platform (linux/arm64/v8) and no specific platform was requested

root@f2f0f72e8b00:/# dpkg --print-architecture

amd64

After

----

abhishek.kumar@21127 ~ % docker run -ti --rm ubuntu:20.04 /bin/bash

root@4cb19655e55c:/# dpkg --print-architecture

arm64

 

  was:
There is a change in CPU arch from amd64 to arm64 in the ubuntu 20.04 base 
image, the Java path changes due to this which affects all docker containers 
since all images depend on this base image.

 
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64

needs to change to 


ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64


> Ranger docker container fails to start due to change in ubuntu base image arch
> ------------------------------------------------------------------------------
>
>                 Key: RANGER-4330
>                 URL: https://issues.apache.org/jira/browse/RANGER-4330
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 2.4.1
>            Reporter: Abhishek Kumar
>            Assignee: Abhishek Kumar
>            Priority: Major
>
> There is a change in CPU arch from amd64 to arm64 in the ubuntu 20.04 base 
> image, the Java path changes due to this which affects all docker containers 
> since all images depend on this base image.
>  
> Before
> ------
> abhishek.kumar@21127 ~ % docker run -ti --rm 14be0685b768 /bin/bash           
>                          
> WARNING: The requested image's platform (linux/amd64) does not match the 
> detected host platform (linux/arm64/v8) and no specific platform was requested
> root@f2f0f72e8b00:/# dpkg --print-architecture
> amd64
> After
> ----
> abhishek.kumar@21127 ~ % docker run -ti --rm ubuntu:20.04 /bin/bash
> root@4cb19655e55c:/# dpkg --print-architecture
> arm64
>  



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

Reply via email to