This is an automated email from the ASF dual-hosted git repository.
dsen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new dc2d8df [AMBARI-24971] HDFS datanode process fails with class not
found exception when installed with OZONE (#2668)
dc2d8df is described below
commit dc2d8dfada006549cc94d9a929d92b5c21c655d3
Author: Dmitry Sen <[email protected]>
AuthorDate: Thu Nov 29 13:58:39 2018 +0200
[AMBARI-24971] HDFS datanode process fails with class not found exception
when installed with OZONE (#2668)
* [AMBARI-24971] HDFS datanode process fails with class not found exception
when installed with OZONE (dsen)
---
.../src/main/resources/stack-hooks/before-ANY/scripts/params.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
index 36aae1d..96082e4 100644
--- a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
+++ b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
@@ -112,6 +112,13 @@ hadoop_home = stack_select.get_hadoop_dir("home")
hadoop_libexec_dir = stack_select.get_hadoop_dir("libexec")
hadoop_lib_home = stack_select.get_hadoop_dir("lib")
+ozone_manager_hosts = default("/clusterHostInfo/ozone_manager_hosts", [])
+has_ozone = not len(ozone_manager_hosts) == 0
+if version:
+ hadoop_ozone_home = os.path.join(stack_root, version, "hadoop-ozone")
+else:
+ hadoop_ozone_home = os.path.join(stack_root, "current", "hadoop-ozone")
+
hadoop_dir = "/etc/hadoop"
hadoop_java_io_tmpdir = os.path.join(tmp_dir, "hadoop_java_io_tmpdir")
datanode_max_locked_memory =
config['configurations']['hdfs-site']['dfs.datanode.max.locked.memory']