Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29162200C2A for ; Wed, 15 Feb 2017 00:06:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 27B7A160B6A; Tue, 14 Feb 2017 23:06:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71E71160B5F for ; Wed, 15 Feb 2017 00:06:46 +0100 (CET) Received: (qmail 2618 invoked by uid 500); 14 Feb 2017 23:06:45 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 2607 invoked by uid 99); 14 Feb 2017 23:06:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2017 23:06:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 323351A0779 for ; Tue, 14 Feb 2017 23:06:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id riLjdzgM67yT for ; Tue, 14 Feb 2017 23:06:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 502FA5FAFB for ; Tue, 14 Feb 2017 23:06:44 +0000 (UTC) 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 02155E0655 for ; Tue, 14 Feb 2017 23:06:42 +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 AF50E2411D for ; Tue, 14 Feb 2017 23:06:41 +0000 (UTC) Date: Tue, 14 Feb 2017 23:06:41 +0000 (UTC) From: "Chris Douglas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-14076) Allow Configuration to be persisted given path to file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Feb 2017 23:06:47 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15866893#comment-15866893 ] Chris Douglas commented on HADOOP-14076: ---------------------------------------- I think Steve is suggesting that this belongs with the application code, not as part of Hadoop. > Allow Configuration to be persisted given path to file > ------------------------------------------------------ > > Key: HADOOP-14076 > URL: https://issues.apache.org/jira/browse/HADOOP-14076 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Ted Yu > > Currently Configuration has the following methods for persistence: > {code} > public void writeXml(OutputStream out) throws IOException { > public void writeXml(Writer out) throws IOException { > {code} > Adding API for persisting to file given path would be useful: > {code} > public void writeXml(String path) throws IOException { > {code} > Background: I recently worked on exporting Configuration to a file using JNI. > Without the proposed API, I resorted to some trick such as the following: > http://www.kfu.com/~nsayer/Java/jni-filedesc.html -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org