Tried to install Nifi using Ambari.
Got error message:
File “/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/params.py”, line 47, in <module> stack_version_buildnum = get_component_version_with_stack_selector(“/usr/bin/hdf-select”, “nifi”) NameError: name ‘get_component_version_with_stack_selector’ is not defined
All hosts in Ambari Hosts menu showed Stack: HDP, Name: HDP-2.6.1.0, Status: Current.
Could not resolve it via Ambari. Even hdf-select in node where to I tried to install Nifi I cot executing:
hdf-select
…
nifi – 3.0.0.0-453
…
Solution for me was to change some lines in /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/params.py. Commented out red line and added green:
if stack_name == “HDP”:
# Override HDP stack root
stack_root = “/usr/hdf”
# Override HDP stack version
#stack_version_buildnum = get_component_version_with_stack_selector(“/usr/bin/hdf-select”, “nifi”)
stack_version_buildnum = get_component_version(stack_name, “nifi”)
elif not stack_version_buildnum and stack_name:
stack_version_buildnum = get_component_version(stack_name, “nifi”)