You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lulu Cheng (JIRA)" <ji...@apache.org> on 2017/07/26 14:01:10 UTC
[jira] [Created] (AIRFLOW-1466) Hostname of job runner does not
match on ec2
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)