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

[GitHub] [bigtop] guyuqi opened a new pull request, #1163: BIGTOP-3983: Fix the Ranger-2.4 deploying issues

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

   https://issues.apache.org/jira/browse/BIGTOP-3983
   
   Cherry pick the patch from the commit 2 of [RANGER-3206](https://issues.apache.org/jira/browse/RANGER-3206).
   (https://github.com/apache/ranger/commit/f6b69ca5846de9a7dfced70ae8e403388ecb89fe.)
   
   The smoke tests were passed on Arm64 Fedora-36.
   ```
   ./docker-hadoop.sh -d --create 3 --image bigtop/puppet:3.2.0-fedora-36 --memory 16g \
   --repo file:///bigtop-home/output --disable-gpg-check --enable-local-repo \
   --stack bigtop-utils,ranger  \
   --smoke-tests ranger 
   ```
   ```
   ...
   ..
   .
   > Task :bigtop-tests:smoke-tests:ranger:test
   Finished generating test XML results (0.026 secs) into: /bigtop-home/bigtop-tests/smoke-tests/ranger/build/test-results/test
   Generating HTML test report...
   Finished generating test html results (0.058 secs) into: /bigtop-home/bigtop-tests/smoke-tests/ranger/build/reports/tests/test
   Now testing...
   :bigtop-tests:smoke-tests:ranger:test (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 4.962 secs.
   
   BUILD SUCCESSFUL in 53s
   
   ```


-- 
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


[GitHub] [bigtop] JiaLiangC commented on pull request #1163: BIGTOP-3983: Fix the Ranger-2.4 deploying issues

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

   @guyuqi 
   
   I am doing an upgrade to Python3 for Ambari and its related components, and I have encountered this problem.
    
   Here, the issue is actually because all Python code for Ranger is executed in Python2. Therefore, if the Ranger db_setup.py script was previously run using Python2 in the system, it would not throw an error. 
   This is because `subprocess.Popen(command, stdout = subprocess.PIPE)` returns a str in Python2, but returns bytes in Python3.
   
   So, if you use a Python3 script to execute db_setup.py, modifying it to `(key, _, value) = line.decode('utf8').partition('=')` is good. However, there are many places where similar subprocess.Popen code exists, and all have encoding issues. 
   All Python scripts for Ranger are based on Python2, so upgrading them all would be a better approach.


-- 
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


[GitHub] [bigtop] guyuqi merged pull request #1163: BIGTOP-3983: Fix the Ranger-2.4 deploying issues

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi merged PR #1163:
URL: https://github.com/apache/bigtop/pull/1163


-- 
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