hortonworks / ansible-hortonworks

Ansible playbooks for deploying Hortonworks Data Platform and DataFlow using Ambari Blueprints
Apache License 2.0
248 stars 253 forks source link

assume-yes install nifi-3-1-2-0-7-toolkit' #114

Closed aldaher closed 5 years ago

aldaher commented 5 years ago

Hi,

i got a problem when i install NIFI version 1.8.0 with HDF 3.3.0

with ambari version 2.7.0.0

the issue i had is :

2018-12-17 10:03:24,565 - Could not determine stack version for component zookeeper by calling '/usr/bin/hdf-select status zookeeper > /tmp/tmpRShobK'. Return Code: 1, Output: ERROR: Invalid package - zookeeper

Packages: accumulo-client accumulo-gc accumulo-master accumulo-monitor accumulo-tablet accumulo-tracer atlas-client atlas-server falcon-client falcon-server flume-server hadoop-client hadoop-hdfs-datanode hadoop-hdfs-journalnode hadoop-hdfs-namenode hadoop-hdfs-nfs3 hadoop-hdfs-portmap hadoop-hdfs-secondarynamenode hadoop-httpfs hadoop-mapreduce-historyserver hadoop-yarn-nodemanager hadoop-yarn-resourcemanager hadoop-yarn-timelineserver hbase-client hbase-master hbase-regionserver hive-metastore hive-server2 hive-server2-hive2 hive-webhcat kafka-broker knox-server livy-server mahout-client nifi nifi-registry nifi-toolkit oozie-client oozie-server phoenix-client phoenix-server ranger-admin ranger-kms ranger-tagsync ranger-usersync registry slider-client spark-client spark-historyserver spark-thriftserver spark2-client spark2-historyserver spark2-thriftserver sqoop-client sqoop-server storm-client storm-nimbus storm-slider-client storm-supervisor streamline zeppelin-server zookeeper-client zookeeper-server Aliases: accumulo-server all client hadoop-hdfs-server hadoop-mapreduce-server hadoop-yarn-server hive-server . Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 304, in Master().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 66, in install self.install_packages(env) File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 836, in install_packages retry_count=agent_stack_retry_count) File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in init self.env.run() File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/ambari-agent/lib/resource_management/core/providers/packaging.py", line 30, in action_install self._pkg_manager.install_package(package_name, self.__create_context()) File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 35, in wrapper return function_to_decorate(self, name, *args[2:]) File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 265, in install_package shell.repository_manager_executor(cmd, self.properties, context, env=self.properties.install_cmd_env) File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 749, in repository_manager_executor raise RuntimeError(message) RuntimeError: Failed to execute command '/usr/bin/apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install nifi-3-1-2-0-7-toolkit', exited with code '100', message: 'E: Impossible de trouver le paquet nifi-3-1-2-0-7-toolkit '

regards

alexandruanghel commented 5 years ago

Hi @aldaher

Which OS is that? Looks like that package might be missing from the repo? Which repo are you using? If using a local repo made with reposync, that might have missed some of the package.

On the other hand, it tries to install a nifi-toolkit package from HDF 3.1.2 which is also strange. What ambari_version and hdf_version did you set in your all file?

alexandruanghel commented 5 years ago

Hi @aldaher have you sorted out this issue? I haven't heard anything since 23 days ago so I assume things are working now? I'll close it but feel free to re-open if the issue is still going on.