简体   繁体   English

如何在苹果macbook pro m1上设置apache ranger

[英]How to set up apache ranger on apple macbook pro m1

I'm trying to set up apache ranger for work using this https://github.com/apache/ranger/tree/master/dev-support/ranger-docker however by running我正在尝试使用此https://github.com/apache/ranger/tree/master/dev-support/ranger-docker设置 apache 护林员工作,但是通过运行

 mvn clean package -DskipTests

I'm getting the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded (prepare) on project security-admin-web: Execution prepare of goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded failed: Unable to load the mojo 'exploded' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null The entire error can be seen in this picture: [1] I'm getting the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded (prepare) on project security-admin-web: Execution prepare of goal org.apache .maven.plugins:maven-war-plugin:2.6:exploded failed: Unable to load the mojo 'exploded' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null整个错误可以看这张图:[1]

and as an alternative provided in the github, when I run:作为 github 中提供的替代方案,当我运行时:

 docker-compose -f docker-compose.ranger-base.yml -f docker-compose.ranger-build.yml up

I get the error: ranger-build |我得到了错误:ranger-build | The JAVA_HOME environment variable is not defined correctly ranger-build | JAVA_HOME 环境变量未正确定义 ranger-build | This environment variable is needed to run this program ranger-build |运行此程序 ranger-build | 需要此环境变量NB: JAVA_HOME should point to a JDK not a JRE ranger-build |注意:JAVA_HOME 应该指向 JDK 而不是 JRE ranger-build | mv: cannot stat 'target/ranger-*': No such file or directory ranger-build exited with code 1 mv: cannot stat 'target/ranger-*': No such file or directory ranger-build exited with code 1

I have also tried following https://medium.com/swlh/hands-on-apache-ranger-docker-poc-with-hadoop-hdfs-hive-presto-814344a03a17 however it gets stuck in the ranger-admin container and localhost:6080 doesn't work.我也尝试过关注https://medium.com/swlh/hands-on-apache-ranger-docker-poc-with-hadoop-hdfs-hive-presto-814344a03a17但是它卡在 ranger-admin 容器和 localhost :6080 不起作用。 [1]: https://i.stack.imgur.com/57ubI.jpg [1]: https://i.stack.imgur.com/57ubI.jpg

I was able to solve this by downgrading my maven to 3.6.3 as I was having incompatibility issues, although this particular issue was resolved by adding maven war 2.6 plug in in pom.xml but then more incompatibility issues arose so i had to uninstall and reinstall a completely different maven version and that fixed all the issues. I was able to solve this by downgrading my maven to 3.6.3 as I was having incompatibility issues, although this particular issue was resolved by adding maven war 2.6 plug in in pom.xml but then more incompatibility issues arose so i had to uninstall and重新安装完全不同的 maven 版本并解决所有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM