You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/03/09 18:40:00 UTC
[jira] [Closed] (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 ]
Ash Berlin-Taylor closed AIRFLOW-1466.
--------------------------------------
Resolution: Fixed
> 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
> Priority: Major
>
> 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
(v7.6.3#76005)