miho120 / ambari-airflow-mpack

Ambari stack service for installing and managing Apache Airflow on HDP cluster
Apache License 2.0
59 stars 44 forks source link

error regarding python-pip #4

Closed sai9849 closed 6 years ago

sai9849 commented 6 years ago

trying to use the master pack and it went smooth and while installing it throws following exception

raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python-pip' returned 1. Error: Nothing to do

we do not have yum install python-pip so i got from get-pip.py file and then installed in my node but still it throws the above error.

could you please help me to fix the issue to bypass that error and also i am using virtual environments i did not get where this file located AIRFLOW_HOME/airflow_control.sh

miho120 commented 6 years ago

Hi @sai9849. You could modify mpack archive airflow-service-mpack/common-services/AIRFLOW/1.9.0/metainfo.xml, just delete line <package><name>python-pip</name></package>. Then reinstall mpack:

ambari-server uninstall-mpack --mpack-name=airflow-ambari-mpack ambari-server install-mpack --mpack=airflow-service-mpack.tar.gz ambari-server restart

By default airflow_control.sh located here /usr/local/airflow/airflow_venv/airflow_control.sh

miho120 commented 6 years ago

Not a regular case. Special environment. Long time no answer. Closing the issue.