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

Zita Dombi commented on HDDS-10866:
-----------------------------------

Thanks for finding this [~pratyush.bhatt]! With HDDS-9262 it's expected to 
change in HttpFS gateway as well (as in the 
[BasicRootedOzoneFileSystem.java|https://github.com/apache/ozone/pull/5264/files#diff-b2802792bb08b569714c90f10ecda42d917dd6329137188472010d2ea7476b1b]
 class we removed the recursive volume delete support, which is used by 
HttpFS). I think we can close this [~arp] 

> HTTPFS recursive volume delete fails 
> -------------------------------------
>
>                 Key: HDDS-10866
>                 URL: https://issues.apache.org/jira/browse/HDDS-10866
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: HttpFS GateWay
>            Reporter: Pratyush Bhatt
>            Priority: Major
>
> I created a volume and a bucket inside it, and tried deleting the volume with 
> HTTPFS with recursive set. But the command fails with _"Recursive volume 
> delete using ofs is not supported"_
> {code:java}
> ozone fs -mkdir -p ofs://ozone1712905605/httpfs-vol/buck
> 24/05/16 19:21:18 INFO protocolPB.OmTransportFactory: Loading OM transport 
> implementation 
> org.apache.hadoop.ozone.om.protocolPB.Hadoop3OmTransportFactory as specified 
> by configuration.
> 24/05/16 19:21:19 INFO client.ClientTrustManager: Loading certificates for 
> client.
> 24/05/16 19:21:19 INFO rpc.RpcClient: Creating Volume: httpfs-vol, with om as 
> owner and space quota set to -1 bytes, counts quota set to -1
> 24/05/16 19:21:19 INFO rpc.RpcClient: Creating Bucket: httpfs-vol/buck, with 
> bucket layout FILE_SYSTEM_OPTIMIZED, om as owner, Versioning false, Storage 
> Type set to DISK and Encryption set to false, Replication Type set to 
> server-side default replication type, Namespace Quota set to -1, Space Quota 
> set to -1 
> curl -i --negotiate --cacert auto-global_cacerts.pem -u : -X DELETE 
> "https://vc0121.xyz.com:1234/webhdfs/v1/httpfs-vol?user.name=hdfs&op=DELETE&recursive=true";
> HTTP/1.1 401 Authentication required
> Pragma: no-cache
> Strict_Transport_Security: max-age=0; includeSubDomains
> X-Content-Type-Options: nosniff
> X-XSS-Protection: 1; mode=block
> WWW-Authenticate: Negotiate
> Set-Cookie: hadoop.auth=; Path=/; Secure; HttpOnly
> Content-Length: 0HTTP/1.1 500 Internal Server Error
> Date: Fri, 17 May 2024 02:33:30 GMT
> Cache-Control: no-cache
> Expires: Fri, 17 May 2024 02:33:30 GMT
> Date: Fri, 17 May 2024 02:33:30 GMT
> Pragma: no-cache
> Content-Type: application/json
> Strict_Transport_Security: max-age=0; includeSubDomains
> X-Content-Type-Options: nosniff
> X-XSS-Protection: 1; mode=block
> WWW-Authenticate: Negotiate XYZ
> Set-Cookie: 
> hadoop.auth="u=om&[email protected]&t=kerberos-dt&e=1715949210513&s=123"; 
> Path=/; Secure; HttpOnly
> Transfer-Encoding: chunked{"RemoteException":{"message":"Recursive volume 
> delete using ofs is not supported. Instead use 'ozone sh volume delete -r -id 
> <OM_SERVICE_ID> <Volume_URI>' 
> command","exception":"IOException","javaClassName":"java.io.IOException"}}{code}
> The behavior to delete volume recursively was done via HDDS-9262
> Do we want to keep the same behavior for HTTPFS as well? 
> cc: [~zitadombi] 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to