Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9154 Few improvements/bug fixes in offline image viewer and offline edit viewer
  3. HDFS-9155

OEV should treat .XML files as XML even when the file name extension is uppercase

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None

    Description

      As in document and help

      -i,--inputFile <arg>   edits file to process, xml (*case
                             insensitive*) extension means XML format,
      

      But if i give the file with "XML" extension it falls back to binary processing.
      This issue is due the code

       int org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsViewer.go()
      .....
      boolean xmlInput = inputFileName.endsWith(".xml");
      
      

      Here need to check the xml after converting the file name to lower case

      Attachments

        1. HDFS-9155_01.patch
          3 kB
          nijel

        Issue Links

          Activity

            People

              nijel nijel
              nijel nijel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: