From yarn-issues-return-168273-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu May 30 04:41:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B0B2D18064C for ; Thu, 30 May 2019 06:41:03 +0200 (CEST) Received: (qmail 99295 invoked by uid 500); 30 May 2019 04:41:02 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 99236 invoked by uid 99); 30 May 2019 04:41:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2019 04:41:02 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 56DB5E2CDD for ; Thu, 30 May 2019 04:41:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B7957245A1 for ; Thu, 30 May 2019 04:41:00 +0000 (UTC) Date: Thu, 30 May 2019 04:41:00 +0000 (UTC) From: "Prabhu Joseph (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-9542) Fix LogsCLI guessAppOwner ignores custom file format suffix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-9542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16851512#comment-16851512 ] Prabhu Joseph commented on YARN-9542: ------------------------------------- Thanks [~eyang]. > Fix LogsCLI guessAppOwner ignores custom file format suffix > ----------------------------------------------------------- > > Key: YARN-9542 > URL: https://issues.apache.org/jira/browse/YARN-9542 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation > Affects Versions: 3.2.0, 3.1.2 > Reporter: Prabhu Joseph > Assignee: Prabhu Joseph > Priority: Minor > Fix For: 3.2.1, 3.1.3 > > Attachments: YARN-9542-001.patch, YARN-9542-branch-3.2.001.patch, YARN-9542-branch-3.2.002.patch > > > LogsCLI guessAppOwner ignores custom file format suffix yarn.log-aggregation.%s.remote-app-log-dir-suffix / Default IndexedFileController Suffix ({yarn.nodemanager.remote-app-log-dir-suffix}-ifile or logs-ifile). It considers only yarn.nodemanager.remote-app-log-dir-suffix or default logs. > *Repro:* > {code} > yarn-site.xml > yarn.log-aggregation.file-formats ifile > yarn.log-aggregation.file-controller.ifile.class org.apache.hadoop.yarn.logaggregation.filecontroller.ifile.LogAggregationIndexedFileController > yarn.log-aggregation.ifile.remote-app-log-dir app-logs > yarn.resourcemanager.connect.max-wait.ms 1000 > core-site.xml: > ipc.client.connect.max.retries 3 > ipc.client.connect.retry.interval 10 > Run a Job with above configs and Stop the RM. > [ambari-qa@yarn-ats-1 ~]$ yarn logs -applicationId application_1557482389195_0001 > 2019-05-10 10:03:58,215 INFO client.RMProxy: Connecting to ResourceManager at yarn-ats-1/172.26.81.91:8050 > Unable to get ApplicationState. Attempting to fetch logs directly from the filesystem. > Can not find the appOwner. Please specify the correct appOwner > Could not locate application logs for application_1557482389195_0001 > [ambari-qa@yarn-ats-1 ~]$ hadoop fs -ls /app-logs/ambari-qa/logs-ifile/application_1557482389195_0001 > Found 1 items > -rw-r----- 3 ambari-qa supergroup 18058 2019-05-10 10:01 /app-logs/ambari-qa/logs-ifile/application_1557482389195_0001/yarn-ats-1_45454 > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org