Hi Fons,
and thank you for your explanation. I tried to use TFile::Open(), getting a different behaviour of the application. Indeed, now I get this error:
Error in <TUnixSystem::DynamicPathName>: HDFS[.so | .dll | .dylib |
.sl | .dl | .a] does not exist in
:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:/storage/root/root/lib/root:.:/storage/root/root/lib/root::/storage/root/root/lib/root/cint/cint/stl
[where /storage/root/root is ROOT installation directory ]
It seems that now the program knows that it has to open a file stored in HDFS, even though it can't do it succesfully. Any hint on how to fix that new issue?
Cheers,
Massimiliano
Fons Rademakers <Fons.Rademakers_at_cern.ch> ha scritto:
> Hi,
>
> to any I/O plugin work you have to open the files via TFile::Open(), like
>
> TFile* fileInput = TFile::Open(line.c_str());
>
> this static method will load the HDFS plugin triggered by hdfs:// an
> will return a TFile derived THDFSFile object. The way you were doing
> it you were getting a standard local TFile object that was trying to
> open a local file.
>
> Let me know if you've more success with TFile::Open().
>
> Cheers, Fons.
>
This archive was generated by hypermail 2.2.0 : Sun Apr 22 2012 - 17:50:02 CEST