Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EE74119EC for ; Sat, 9 Aug 2014 01:02:55 +0000 (UTC) Received: (qmail 50728 invoked by uid 500); 9 Aug 2014 01:02:55 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50702 invoked by uid 500); 9 Aug 2014 01:02:55 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 50686 invoked by uid 99); 9 Aug 2014 01:02:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Aug 2014 01:02:55 +0000 Date: Sat, 9 Aug 2014 01:02:55 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (AMBARI-6533) Add API to get file log location in the task execution output, currently hardcoded in UI 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/AMBARI-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez reopened AMBARI-6533: ----------------------------------------- Assignee: Alejandro Fernandez The LIMIT clause is not supported in Oracle. Need to generalize it using JPQL and the HostRoleCommandEntity class to merge the updates for the historic records since this approach is safer. > Add API to get file log location in the task execution output, currently hardcoded in UI > ---------------------------------------------------------------------------------------- > > Key: AMBARI-6533 > URL: https://issues.apache.org/jira/browse/AMBARI-6533 > Project: Ambari > Issue Type: Task > Components: site > Affects Versions: 1.6.1 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Fix For: 1.7.0 > > Attachments: patch_bug-12992.txt > > > The Task Execution Output window hardcodes the path to the log files (stdout and stderr). Because the prefix path is configured for each agent in ambari-agent.ini, it's possible for each agent to have its own independent value, and if the configuration changes, then historic logs will not be referenced correctly. > The ask is to remove the hardcoded prefix from the UI, retrieve the log file paths by calling an API, and store the log file path for each task. > Related item: > Once we have the API available, it would be possible to display the logs via an HTTP server running on the agents. > Proposal: > The agent will advertise its prefix path when it registers, and the server will store the path for each host in-memory. > When the server spawns a task execution on an agent, it will insert a record into the host_command_role table, which will contain 2 new fields to store the values for output_log and error_log, by retrieving the prefix path for the host that the command will run on. > Then, the UI can simply query the API to display the log paths. -- This message was sent by Atlassian JIRA (v6.2#6252)