Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14076

Allow Configuration to be persisted given path to file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • None
    • None

    Description

      Currently Configuration has the following methods for persistence:

        public void writeXml(OutputStream out) throws IOException {
      
        public void writeXml(Writer out) throws IOException {
      

      Adding API for persisting to file given path would be useful:

        public void writeXml(String path) throws IOException {
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: