unknowntpo opened a new issue, #7084: URL: https://github.com/apache/gravitino/issues/7084
### What would you like to be improved? Use packages from `ranger-distro-2.4.0` to build `hive`, `ranger` docker image. Reference: [ranger-distro-2.4.0 in maven](https://repo.maven.apache.org/maven2/org/apache/ranger/ranger-distro/2.4.0/) ### How should we improve? Because in my previous PR #6848, ranger packages are built with docker compose, and this will fail because of permission error. ``` #19 [ranger-build] exporting to image #19 exporting layers #19 exporting layers 2.2s done #19 writing image sha256:48a72650eff8944e83665179802cc87b82f6eaeb1198082b6dafcd1c0130d70c done #19 naming to docker.io/library/ranger-build done Network rangernw Creating #19 DONE 2.2s Network rangernw Created Container ranger-base Creating Container ranger-base Created Container ranger-build Creating Container ranger-build Created Attaching to ranger-base, ranger-build ranger-base exited with code 0 ranger-build | Building release-ranger-2.4.0 branch from https://github.com/apache/ranger.git ranger-build | Cloning into 'ranger'... ranger-build | Note: switching to '50ad9c19e62f5aa6b2888b17437aa6fb1e2c0a36'. ranger-build | ranger-build | You are in 'detached HEAD' state. You can look around, make experimental ranger-build | changes and commit them, and you can discard any commits you make in this ranger-build | state without impacting any branches by switching back to a branch. ranger-build | ranger-build | If you want to create a new branch to retain commits you create, you may ranger-build | do so (now or later) by using -c with the switch command. Example: ranger-build | ranger-build | git switch -c <new-branch-name> ranger-build | ranger-build | Or undo this operation with: ranger-build | ranger-build | git switch - ranger-build | ranger-build | Turn off this advice by setting config variable advice.detachedHead to false ranger-build | ranger-build | [ERROR] Could not create local repository at /home/ranger/.m2/repository -> [Help 1] ranger-build | [ERROR] ranger-build | [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. ranger-build | [ERROR] Re-run Maven using the -X switch to enable full debug logging. ranger-build | [ERROR] ranger-build | [ERROR] For more information about the errors and possible solutions, please read the following articles: ranger-build | [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException ranger-build | mv: cannot stat 'target/version': No such file or directory ranger-build | mv: cannot stat 'target/ranger-*': No such file or directory ``` And even this problem is solved, it still requires about 40 mins to build package, which is too long. Luckily, I found that in [`ranger-distro-2.4.0`](https://repo.maven.apache.org/maven2/org/apache/ranger/ranger-distro/2.4.0/) of ranger, it contains all packages we need, including `ranger-admin`, `ranger-hdfs`, `ranger-hive`. So we can simply use these packages to build image. And these are to workflow I've run to verify this approach, and it PASSed. I also use this image to run integration test locally, it also PASSed. Hive: - [Github Action Job to build hive image](https://github.com/unknowntpo/gravitino/actions/runs/14692482968) - - [Github Action Job to build ranger image](https://github.com/unknowntpo/gravitino/actions/runs/14692491562) https://github.com/unknowntpo/gravitino/actions/runs/14692491562/job/41229698402 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
