Lulu Cheng created AIRFLOW-1466:
-----------------------------------
Summary: Hostname of job runner does not match on ec2
Key: AIRFLOW-1466
URL: https://issues.apache.org/jira/browse/AIRFLOW-1466
Project: Apache Airflow
Issue Type: Bug
Components: core
Affects Versions: Airflow 1.8
Environment: AWS EMR 5.6, Amazon Linux AMI release 2017.03
Reporter: Lulu Cheng
Assignee: Lulu Cheng
When running jobs on EMR master, it'll throw the following error
{code}
AirflowException("Hostname of job runner does not match")
{code}
upon investigation, taskinstance.hostname is set to ec2 host name whereas
socket.getfqdn is returning full domain name. It's essentially the same, for
example ip-1-2-3-4 versus ip-1-2-3-4.ec2.internal.
Fix is to instead of calling fqdn, call gethostname.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)