You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "JiaLiangC (via GitHub)" <gi...@apache.org> on 2023/10/23 06:21:11 UTC

[PR] BIGTOP-4030: Error building Ranger deb using bigtop [bigtop]

JiaLiangC opened a new pull request, #1201:
URL: https://github.com/apache/bigtop/pull/1201

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/BIGTOP/How+to+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'BIGTOP-3638: Your PR title ...'.
   -->
   
   ### Description of PR
   This PR addresses several issues:
   
   1.Fixed a bug related to the configuration directory. The command update-alternatives --install /etc/ranger/conf ranger-conf @etc_ranger@/conf.dist 30 was updated. The soft link directory under /etc should correspond to the component's directory, such as /etc/ranger-admin/conf.
   
   2.Added JDBC dependency. When executing the setup.sh script under Ubuntu 22, an error was reported about missing JDBC driver. This was resolved by installing libpostgresql-jdbc-java.
   
   3.Also, a solution was provided for the lack of /var/log/ranger directory when starting Ranger
   
   ### How was this patch tested?
   manual test
   unit test
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'BIGTOP-3638. Your PR title ...')?
   - [ ] Make sure that newly added files do not have any licensing issues. When in doubt refer to https://www.apache.org/licenses/


-- 
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: dev-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] BIGTOP-4030: Error building Ranger deb using bigtop [bigtop]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC commented on PR #1201:
URL: https://github.com/apache/bigtop/pull/1201#issuecomment-1774647474

   @sekikn Could you help review this PR?
   


-- 
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: dev-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] BIGTOP-4030: Error building Ranger deb using bigtop [bigtop]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC closed pull request #1201: BIGTOP-4030: Error building Ranger deb using bigtop
URL: https://github.com/apache/bigtop/pull/1201


-- 
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: dev-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] BIGTOP-4030: Error building Ranger deb using bigtop [bigtop]

Posted by "sekikn (via GitHub)" <gi...@apache.org>.
sekikn commented on code in PR #1201:
URL: https://github.com/apache/bigtop/pull/1201#discussion_r1375680621


##########
bigtop-packages/src/deb/ranger/control:
##########
@@ -35,7 +35,7 @@ Description: Apache Ranger is a framework to enable,
 
 Package: ranger-admin
 Architecture: all
-Depends: adduser, postgresql (>= 8.1), bigtop-utils (>= 0.7), python | python2
+Depends: adduser, postgresql (>= 8.1), libpostgresql-jdbc-java, bigtop-utils (>= 0.7), python | python2

Review Comment:
   After applying this PR and #1199, running smoke test on Rocky 8 fails as follows. Would you add postgresql-jdbc to ranger.spec as a dependency just like the deb package?
   
   ```
   $ ./docker-hadoop.sh -d -dcp -C config_rockylinux-8.yaml -F docker-compose-cgroupv2.yml -G -L -k hdfs,hbase,ranger -s ranger -c 1
   
   ...
   
   Notice: /Stage[main]/Ranger::Admin/Package[ranger-admin]/ensure: created
   Notice: /Stage[main]/Ranger::Admin/Package[python36]/ensure: created
   Notice: /Stage[main]/Ranger::Admin/Exec[initdb]/returns: executed successfully
   Notice: /Stage[main]/Ranger::Admin/Service[postgresql]/ensure: ensure changed 'stopped' to 'running'
   Notice: /Stage[main]/Ranger::Admin/Exec[change_postgres_password]/returns: executed successfully
   Notice: /Stage[main]/Ranger::Admin/File[/usr/lib/ranger-admin/install.properties]/content: content changed '{md5}631fa44e1819ff0a7e64596b37898011' to '{md5}7052aeeb8d8a81c35d282d7a8d76a5f9'
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,938   --------- Running Ranger PolicyManager Web Application Install Script ---------
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,940  [I] uname=Linux
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,942  [I] hostname=fed3e9010829
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,947  [I] DB_FLAVOR=POSTGRES
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,950  [I] Audit source=
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,953  [I] Checking distribution name..
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,962  [I] Found distribution : Rocky
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,963  [I] check if command /usr/lib/jvm/java-1.8.0/bin/java exists
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:05,965  [I] '/usr/lib/jvm/java-1.8.0/bin/java' command found
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:06,026  [I] Checking POSTGRES CONNECTOR FILE : /usr/share/java/postgresql-jdbc.jar
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: 2023-10-30 00:01:06,028  [E] POSTGRES CONNECTOR FILE : /usr/share/java/postgresql-jdbc.jar does not exists
   Error: '/usr/lib/ranger-admin/setup.sh' returned 1 instead of one of [0]
   Error: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/setup.sh]/returns: change from 'notrun' to ['0'] failed: '/usr/lib/ranger-admin/setup.sh' returned 1 instead of one of [0]
   Notice: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/set_globals.sh]: Dependency Exec[/usr/lib/ranger-admin/setup.sh] has failures: true
   Warning: /Stage[main]/Ranger::Admin/Exec[/usr/lib/ranger-admin/set_globals.sh]: Skipping because of failed dependencies
   Warning: /Stage[main]/Ranger::Admin/Exec[systemctl daemon-reload]: Skipping because of failed dependencies
   Warning: /Stage[main]/Ranger::Admin/Service[ranger-admin]: Skipping because of failed dependencies
   ```



-- 
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: dev-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org