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:55:00 UTC

[jira] [Updated] (AIRFLOW-1466) Hostname does not match domain name on ec2

     [ https://issues.apache.org/jira/browse/AIRFLOW-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lulu Cheng updated AIRFLOW-1466:
--------------------------------
    Summary: Hostname does not match domain name on ec2  (was: hostname does not match domain name on ec2)

> Hostname does not match domain name 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)