[gdal-dev] Question on how to open a raster in HDFS using GDAL

Nikos Alexandris nik at nikosalexandris.net
Thu Nov 22 17:13:54 PST 2018


* ZAZHIL-HA HERENA <zazhil_ha at hotmail.com> [2018-11-22 22:35:32 +0000]:

>Hello, I am not sure if I should use this mailing list to ask questions but I wanted to try, I am a developer trying to use GDAL to open rasters in HDFS.
>
>
>I read in GDAL documentation that starting 2.4 it is possible to open a raster in HDFS. I downloaded and compiled the latest source code available version and the generated libraries show it is 2.4 (libgdal.so.20.4.2). I compiled with option "-with-hdfs=yes" and "--with-java=yes".
>
>I am trying to open a raster using:
>
>
>
>    Dataset raster = gdal.Open("/vsihdfs/hdfs://node:8020/user/hdfs /spatial_raster/input_raster/kahoolawe.tif", gdalconst.GA_ReadOnly);

Is your path correct? There is a space here (in "/hfds /").

Nikos

>
>
>but I am getting the following error: "ERROR 4: No such file or directory"

[rest deleted]


More information about the gdal-dev mailing list