This is an automated email from the ASF dual-hosted git repository.
guyuqi pushed a commit to branch openEuler-support
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/openEuler-support by this push:
new ee836bcdf BIGTOP-3983: Fix the Ranger-2.4 deploying issues (#1163)
ee836bcdf is described below
commit ee836bcdf4b60f7cfa9a2fb7190d0fd87f76b54d
Author: Yuqi Gu <[email protected]>
AuthorDate: Tue Aug 22 16:09:26 2023 +0800
BIGTOP-3983: Fix the Ranger-2.4 deploying issues (#1163)
(cherry picked from commit 2fedf014811d6a050478abe6860bdd88e2ffcf87)
---
.../src/common/ranger/patch3-RANGER-3206-commit-2.diff | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/bigtop-packages/src/common/ranger/patch3-RANGER-3206-commit-2.diff
b/bigtop-packages/src/common/ranger/patch3-RANGER-3206-commit-2.diff
new file mode 100644
index 000000000..e9e418b2e
--- /dev/null
+++ b/bigtop-packages/src/common/ranger/patch3-RANGER-3206-commit-2.diff
@@ -0,0 +1,13 @@
+diff --git a/security-admin/scripts/db_setup.py
b/security-admin/scripts/db_setup.py
+index 10acb5375..24502f4fb 100644
+--- a/security-admin/scripts/db_setup.py
++++ b/security-admin/scripts/db_setup.py
+@@ -149,7 +149,7 @@ def dbversionBasedOnUserName(userName):
+ def set_env_val(command):
+ proc = subprocess.Popen(command, stdout = subprocess.PIPE)
+ for line in proc.stdout:
+- (key, _, value) = line.partition("=")
++ (key, _, value) = line.decode('utf8').partition('=')
+ os.environ[key] = value.rstrip()
+ proc.communicate()
+