Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7588

Improve the HDFS Web UI browser to allow chowning / chmoding, creating dirs and uploading files

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0
    • Component/s: ui, webhdfs
    • Labels:
      None
    • Target Version/s:

      Description

      The new HTML5 web browser is neat, however it lacks a few features that might make it more useful:
      1. chown
      2. chmod
      3. Uploading files
      4. mkdir

      1. HDFS-7588.01.patch
        4.30 MB
        Ravi Prakash
      2. HDFS-7588.02.patch
        10 kB
        Ravi Prakash

        Issue Links

          Activity

          Hide
          raviprak Ravi Prakash added a comment -

          Many thanks to Travis Thompson and Howard Weingram for this initial implementation for a Hackday.
          I'll be trying to refine and modify from their original implementation

          Show
          raviprak Ravi Prakash added a comment - Many thanks to Travis Thompson and Howard Weingram for this initial implementation for a Hackday. I'll be trying to refine and modify from their original implementation
          Hide
          raviprak Ravi Prakash added a comment -

          BTW, to make the file upload work, the hack used a plugin to turn off same-origin checks.

          It seems to me that we'll have to support CORS in WebHDFS.

          Show
          raviprak Ravi Prakash added a comment - BTW, to make the file upload work, the hack used a plugin to turn off same-origin checks. It seems to me that we'll have to support CORS in WebHDFS.
          Hide
          raviprak Ravi Prakash added a comment -

          Here's a patch which enables file uploads, but this worked for me only on Chrome. Not on Firefox.

          Show
          raviprak Ravi Prakash added a comment - Here's a patch which enables file uploads, but this worked for me only on Chrome. Not on Firefox.
          Hide
          raviprak Ravi Prakash added a comment -

          Ok! I have a predicament now:
          https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Create_and_Write_to_a_File says

          Submit a HTTP PUT request without automatically following redirects and without sending the file data.

          Whereas XMLHttpRequest's specification says that it MUST follow redirects transparently: http://www.w3.org/TR/XMLHttpRequest1/#infrastructure-for-the-send-method . There seems to be an argument in the community: http://discourse.specifiction.org/t/followredirects-in-xmlhttprequest/420/6

          I can't see another way of implementing file uploads via the browser using WebHDFS without changing WebHDFS to return something other than a 307 code on op=CREATE. Tsz Wo Nicholas Sze Haohui Mai Do you have any suggestions / pointers?

          Show
          raviprak Ravi Prakash added a comment - Ok! I have a predicament now: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Create_and_Write_to_a_File says Submit a HTTP PUT request without automatically following redirects and without sending the file data. Whereas XMLHttpRequest's specification says that it MUST follow redirects transparently: http://www.w3.org/TR/XMLHttpRequest1/#infrastructure-for-the-send-method . There seems to be an argument in the community: http://discourse.specifiction.org/t/followredirects-in-xmlhttprequest/420/6 I can't see another way of implementing file uploads via the browser using WebHDFS without changing WebHDFS to return something other than a 307 code on op=CREATE. Tsz Wo Nicholas Sze Haohui Mai Do you have any suggestions / pointers?
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          -1 patch 0m 0s The patch command could not apply the patch during dryrun.



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12692083/HDFS-7588.02.patch
          Optional Tests javadoc javac unit findbugs checkstyle
          git revision trunk / 7f07c4d
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/10414/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment -1 patch 0m 0s The patch command could not apply the patch during dryrun. Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12692083/HDFS-7588.02.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 7f07c4d Console output https://builds.apache.org/job/PreCommit-HDFS-Build/10414/console This message was automatically generated.
          Hide
          raviprak Ravi Prakash added a comment -

          Hi Allen! I converted this JIRA into an umbrella issue to effect this change piecemeal. That patch no longer applies

          Show
          raviprak Ravi Prakash added a comment - Hi Allen! I converted this JIRA into an umbrella issue to effect this change piecemeal. That patch no longer applies
          Hide
          raviprak Ravi Prakash added a comment -

          Thanks for all the reviews Allen and Haohui and others. All the features in this JIRA are now in branch-2. This concludes this JIRA

          Show
          raviprak Ravi Prakash added a comment - Thanks for all the reviews Allen and Haohui and others. All the features in this JIRA are now in branch-2. This concludes this JIRA

            People

            • Assignee:
              raviprak Ravi Prakash
              Reporter:
              raviprak Ravi Prakash
            • Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development