Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-813

Add rename in HDFS for ClientDSL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.7.0
    • 0.12.0
    • ClientDSL

    Description

      The ClientDSL for HDFS shoud provide the rename method.

      It could be easily done with something like that :

              protected Callable<Rename.Response> callable() {
                  return new Callable<Rename.Response>() {
                      @Override
                      public Rename.Response call() throws Exception {
                          URIBuilder uri = uri( Hdfs.SERVICE_PATH, file );
                          addQueryParam( uri, "op", "RENAME" );
                          addQueryParam( uri, "destination", to );
                          HttpPut request = new HttpPut( uri.build() );
                          return new Rename.Response( execute( request ) );
                      }
                  };
              }
      

      Attachments

        1. KNOX-813.patch
          3 kB
          Vincent Devillers

        Activity

          People

            treydone Vincent Devillers
            Khanh Khanh Maudoux
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: