Skip to content

Conversation

@jojochuang
Copy link
Contributor

The change was copied from https://github.com/apache/ozone/pull/8556/files and verified to work.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jojochuang for the patch.

Comment on lines 81 to 83
CORE-SITE.XML_fs.defaultFS: "ofs://om"
CORE-SITE.XML_hadoop.proxyuser.hadoop.hosts: "*"
CORE-SITE.XML_hadoop.proxyuser.hadoop.groups: "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be added in common-config. Otherwise I got the following error when trying to put a file:

httpfs-1  | 07:44:03,141 ERROR OzoneClientFactory:267 - Couldn't create RpcClient protocol exception: 
httpfs-1  | org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hadoop
httpfs-1  | 	at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1584)
...
httpfs-1  | 	at org.apache.hadoop.ozone.om.protocolPB.OzoneManagerProtocolClientSideTranslatorPB.getServiceInfo(OzoneManagerProtocolClientSideTranslatorPB.java:1880)
httpfs-1  | 	at org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:260)
...
httpfs-1  | 	at org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:50)
httpfs-1  | 	at org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:108)
httpfs-1  | 	at org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:194)
...
httpfs-1  | 	at org.apache.ozone.lib.service.hadoop.FileSystemAccessService.createFileSystem(FileSystemAccessService.java:339)
...
httpfs-1  | 	at org.apache.ozone.fs.http.server.HttpFSServer.handleCreate(HttpFSServer.java:1229)
httpfs-1  | 	at org.apache.ozone.fs.http.server.HttpFSServer.put(HttpFSServer.java:901)

CORE-SITE.XML_fs.defaultFS: "ofs://om"
CORE-SITE.XML_hadoop.proxyuser.hadoop.hosts: "*"
CORE-SITE.XML_hadoop.proxyuser.hadoop.groups: "*"
OZONE-SITE.XML_hdds.scm.safemode.min.datanode: ${OZONE_SAFEMODE_MIN_DATANODES:-1}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hdds.scm.safemode.min.datanode is not needed for httpfs, can be removed.

httpfs:
<<: *image
ports:
- 14000:14000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the rest of this file has indentation of 3 spaces, please use the same for the new service.

@jojochuang
Copy link
Contributor Author

Thanks @adoroszlai i had initially added them to common-config and then figured i should made it role specific.
Updated according to your suggestion.

Also I'm wondering instead of putting it in common-config, how about moving the proxy user configs to OM and have fs.defaultFS set at httpfs? I tested and that also works for me.

@jojochuang jojochuang requested a review from adoroszlai June 10, 2025 17:55
@adoroszlai
Copy link
Contributor

Also I'm wondering instead of putting it in common-config, how about moving the proxy user configs to OM and have fs.defaultFS set at httpfs? I tested and that also works for me.

Yes, that's probably the most specific working config.

@jojochuang jojochuang merged commit 57fb73f into apache:latest Jun 11, 2025
1 check passed
@jojochuang
Copy link
Contributor Author

Merged. Thanks @adoroszlai for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants