You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by ziyue yang <ya...@outlook.com> on 2022/08/22 12:30:06 UTC

Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/
-----------------------------------------------------------

Review request for ranger.


Repository: ranger


Description
-------

[JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)

This Pr is to update dependencies to support macOS aarch64 devices.

We'll see the `UnsatisfiedLinkError` like below:

```plain
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
```

This is because the dependencies wasn't updated to the version which supports M1.

Maven repo link:
1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)


Diffs
-----

  pom.xml 8698e67e5 


Diff: https://reviews.apache.org/r/74092/diff/1/


Testing
-------

Run maven test on both intel x86 and M1 machine, succeeded


Thanks,

ziyue yang


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by Selvamohan Neethiraj <sn...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/#review224931
-----------------------------------------------------------


Ship it!




Ship It!

- Selvamohan Neethiraj


On Dec. 1, 2022, 7:20 p.m., ziyue yang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74092/
> -----------------------------------------------------------
> 
> (Updated Dec. 1, 2022, 7:20 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-3863
>     https://issues.apache.org/jira/browse/RANGER-3863
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> [JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)
> 
> This Pr is to update dependencies to support macOS aarch64 devices.
> 
> We'll see the `UnsatisfiedLinkError` like below:
> 
> ```plain
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> ```
> 
> This is because the dependencies wasn't updated to the version which supports M1.
> 
> Maven repo link:
> 1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
> 2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)
> 
> 
> Diffs
> -----
> 
>   pom.xml 7b0dd14c5 
>   security-admin/pom.xml 5e24dd846 
> 
> 
> Diff: https://reviews.apache.org/r/74092/diff/2/
> 
> 
> Testing
> -------
> 
> Run maven test on both intel x86 and M1 machine, succeeded
> 
> 
> Thanks,
> 
> ziyue yang
> 
>


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by ziyue yang <ya...@outlook.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/
-----------------------------------------------------------

(Updated Dec. 2, 2022, 12:20 a.m.)


Review request for ranger.


Bugs: RANGER-3863
    https://issues.apache.org/jira/browse/RANGER-3863


Repository: ranger


Description
-------

[JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)

This Pr is to update dependencies to support macOS aarch64 devices.

We'll see the `UnsatisfiedLinkError` like below:

```plain
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
```

This is because the dependencies wasn't updated to the version which supports M1.

Maven repo link:
1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)


Diffs (updated)
-----

  pom.xml 7b0dd14c5 
  security-admin/pom.xml 5e24dd846 


Diff: https://reviews.apache.org/r/74092/diff/2/

Changes: https://reviews.apache.org/r/74092/diff/1-2/


Testing
-------

Run maven test on both intel x86 and M1 machine, succeeded


Thanks,

ziyue yang


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by ziyue yang <ya...@outlook.com>.

> On Dec. 1, 2022, 6:35 p.m., Selvamohan Neethiraj wrote:
> > This patch does not work in Apple M2. However, with the following additional change, I am able to successfully build on my Mac M2.
> > 
> > diff --git a/security-admin/pom.xml b/security-admin/pom.xml
> > index 5e24dd846..54bd231d8 100644
> > --- a/security-admin/pom.xml
> > +++ b/security-admin/pom.xml
> > @@ -928,7 +928,7 @@
> >              <plugin>
> >                  <groupId>com.github.eirslett</groupId>
> >                  <artifactId>frontend-maven-plugin</artifactId>
> > -                <version>1.6</version>
> > +                <version>1.12.1</version>
> >                  <configuration>
> >                      <workingDirectory>${project.build.directory}</workingDirectory>
> >                      <installDirectory>${project.build.directory}</installDirectory>

hello Selvamohan!
Thanks for the review, I've update the diffs, would you take another look? Thanks


- ziyue


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/#review224928
-----------------------------------------------------------


On Dec. 2, 2022, 12:20 a.m., ziyue yang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74092/
> -----------------------------------------------------------
> 
> (Updated Dec. 2, 2022, 12:20 a.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-3863
>     https://issues.apache.org/jira/browse/RANGER-3863
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> [JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)
> 
> This Pr is to update dependencies to support macOS aarch64 devices.
> 
> We'll see the `UnsatisfiedLinkError` like below:
> 
> ```plain
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> ```
> 
> This is because the dependencies wasn't updated to the version which supports M1.
> 
> Maven repo link:
> 1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
> 2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)
> 
> 
> Diffs
> -----
> 
>   pom.xml 7b0dd14c5 
>   security-admin/pom.xml 5e24dd846 
> 
> 
> Diff: https://reviews.apache.org/r/74092/diff/2/
> 
> 
> Testing
> -------
> 
> Run maven test on both intel x86 and M1 machine, succeeded
> 
> 
> Thanks,
> 
> ziyue yang
> 
>


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by Selvamohan Neethiraj <sn...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/#review224928
-----------------------------------------------------------



This patch does not work in Apple M2. However, with the following additional change, I am able to successfully build on my Mac M2.

diff --git a/security-admin/pom.xml b/security-admin/pom.xml
index 5e24dd846..54bd231d8 100644
--- a/security-admin/pom.xml
+++ b/security-admin/pom.xml
@@ -928,7 +928,7 @@
             <plugin>
                 <groupId>com.github.eirslett</groupId>
                 <artifactId>frontend-maven-plugin</artifactId>
-                <version>1.6</version>
+                <version>1.12.1</version>
                 <configuration>
                     <workingDirectory>${project.build.directory}</workingDirectory>
                     <installDirectory>${project.build.directory}</installDirectory>

- Selvamohan Neethiraj


On Aug. 22, 2022, 8:31 a.m., ziyue yang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74092/
> -----------------------------------------------------------
> 
> (Updated Aug. 22, 2022, 8:31 a.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-3863
>     https://issues.apache.org/jira/browse/RANGER-3863
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> [JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)
> 
> This Pr is to update dependencies to support macOS aarch64 devices.
> 
> We'll see the `UnsatisfiedLinkError` like below:
> 
> ```plain
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> ```
> 
> This is because the dependencies wasn't updated to the version which supports M1.
> 
> Maven repo link:
> 1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
> 2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)
> 
> 
> Diffs
> -----
> 
>   pom.xml 8698e67e5 
> 
> 
> Diff: https://reviews.apache.org/r/74092/diff/1/
> 
> 
> Testing
> -------
> 
> Run maven test on both intel x86 and M1 machine, succeeded
> 
> 
> Thanks,
> 
> ziyue yang
> 
>


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/#review224636
-----------------------------------------------------------


Ship it!




Ship It!

- Madhan Neethiraj


On Aug. 22, 2022, 12:31 p.m., ziyue yang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74092/
> -----------------------------------------------------------
> 
> (Updated Aug. 22, 2022, 12:31 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-3863
>     https://issues.apache.org/jira/browse/RANGER-3863
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> [JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)
> 
> This Pr is to update dependencies to support macOS aarch64 devices.
> 
> We'll see the `UnsatisfiedLinkError` like below:
> 
> ```plain
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> ```
> 
> This is because the dependencies wasn't updated to the version which supports M1.
> 
> Maven repo link:
> 1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
> 2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)
> 
> 
> Diffs
> -----
> 
>   pom.xml 8698e67e5 
> 
> 
> Diff: https://reviews.apache.org/r/74092/diff/1/
> 
> 
> Testing
> -------
> 
> Run maven test on both intel x86 and M1 machine, succeeded
> 
> 
> Thanks,
> 
> ziyue yang
> 
>


Re: Review Request 74092: [RANGER-3863] Update dependencies to support macOS aarch64 M1 (Apple Silicon) environment

Posted by ziyue yang <ya...@outlook.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74092/
-----------------------------------------------------------

(Updated Aug. 22, 2022, 12:31 p.m.)


Review request for ranger.


Bugs: RANGER-3863
    https://issues.apache.org/jira/browse/RANGER-3863


Repository: ranger


Description
-------

[JIRA LInk](https://issues.apache.org/jira/browse/RANGER-3863)

This Pr is to update dependencies to support macOS aarch64 devices.

We'll see the `UnsatisfiedLinkError` like below:

```plain
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: dlopen(/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp, 1): no suitable image found.  Did find:
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	/Users/USERNAME/Library/Caches/JetBrains/IntelliJIdea2020.3/tmp/jna6890631648374949923.tmp: no matching architecture in universal wrapper
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
```

This is because the dependencies wasn't updated to the version which supports M1.

Maven repo link:
1. [Java Native Access](https://mvnrepository.com/artifact/net.java.dev.jna/jna/5.7.0), [changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-570)
2. [gethostname4j](https://mvnrepository.com/artifact/com.kstruct/gethostname4j), [related PR](https://github.com/mattsheppard/gethostname4j/pull/8)


Diffs
-----

  pom.xml 8698e67e5 


Diff: https://reviews.apache.org/r/74092/diff/1/


Testing
-------

Run maven test on both intel x86 and M1 machine, succeeded


Thanks,

ziyue yang