Re: Manage a ROOT file from a streaming of the ROOT file content

From: Massimiliano Fasi <Massimiliano.Fasi_at_pg.infn.it>
Date: Sun, 22 Apr 2012 09:28:15 +0200


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 message was sent using IMP, the INFN Perugia Internet Messaging Program. Received on Sun Apr 22 2012 - 09:28:34 CEST

This archive was generated by hypermail 2.2.0 : Sun Apr 22 2012 - 17:50:02 CEST