cern-eos / eos

EOS Storage
Other
211 stars 39 forks source link

example of a simple project that uses eos client #20

Closed vkhristenko closed 6 years ago

vkhristenko commented 6 years ago

Hello!

Is there any documentation regarding how to compile a simple project that would use an eos client. Suppose I have and do the following:

I apologize for asking if this already exists, but from your repo that is not quite clear

Thanks!

vkhristenko commented 6 years ago

Hi,

any chance to have any response on this ?

just to reiterate, i want to be able to write a simple app to read from eos storage. let's say i have a custom binary file

thanks a lot!

VK

esindril commented 6 years ago

Hi Viktor,

You only need to use the xrootd-client to interact with EOS. The handling of authentication be it Kerberos or GSI certificates is done by the xrootd client. Through the XrdCl::File and XrdCl::FileSystem interfaces form xrootd you can read/write and query for different information directly EOS.

Hope this helps. Cheers, Elvin

esindril commented 6 years ago

Btw, there is no specific eos-client, it all uses the xrootd-client underneath, even the eos console uses that.

Elvin

vkhristenko commented 6 years ago

Hi Elvin,

ok! thanks a lot! I just thought that you already had some kind of hello world to get started from.

i will take a look at the console in that case!

thanks!!!

VK

esindril commented 6 years ago

Here you have examples on how to use the XrdCl::File interface to read/write. You just have to set the proper URL to point to the instance you like. There are more examples in the same directory: https://github.com/xrootd/xrootd/blob/master/tests/XrdClTests/FileTest.cc

vkhristenko commented 6 years ago

thanks a lot once again!!!