[ 
https://issues.apache.org/jira/browse/HDFS-12039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130304#comment-16130304
 ] 

Lokesh Jain commented on HDFS-12039:
------------------------------------

Hi

The volume owner can be updated using the -user option. For example the 
following command works.

bin/hdfs oz -updateVolume http://localhost:9864/vol1 -user xyz -root
bin/hdfs oz -infoVolume http://localhost:9864/vol1 -root
{
  "owner" : {
    "name" : "xyz"
  },
  "quota" : {
    "unit" : "GB",
    "size" : 1
  },
  "volumeName" : "vol1",
  "createdOn" : "Tue, 15 Aug 2017 02:52:10 GMT",
  "createdBy" : "hdfs"
}

> Ozone: Implement update volume owner in ozone shell
> ---------------------------------------------------
>
>                 Key: HDFS-12039
>                 URL: https://issues.apache.org/jira/browse/HDFS-12039
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Weiwei Yang
>            Assignee: Lokesh Jain
>
> Ozone shell command {{updateVolume}} should support to update the owner of a 
> volume, using following syntax
> {code}
> hdfs oz -updateVolume http://ozone1.fyre.ibm.com:9864/volume-wwei-0 -owner 
> xyz -root
> {code}
> this could work from rest api, following command could change the volume 
> owner to {{www}}
> {code}
> curl -X PUT -H "Date: Mon, 26 Jun 2017 04:23:30 GMT" -H "x-ozone-version: v1" 
> -H "x-ozone-user:www" -H "Authorization:OZONE root" 
> http://ozone1.fyre.ibm.com:9864/volume-wwei-0
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to