You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your excellent work in this field!
I encounter a problem in reading from HDFS backend. I can normally write to HDFS backend but when I try to read the data out from the same location, I got an Error: tiledb.cc.TileDBError: [TileDB::Array] Error: Caught std::exception: [TileDB::HDFS] Error: Cannot list files in hdfs://path/to/__fragment_meta.
And it's weird that, this error will always occur when I try to read from HDFS in the first execution. And it never occurs when I carry out the second attempt. i.e.,
import tiledb
array_uri = "hdfs://path/to/dataset"
with tiledb.DenseArray(array_uri, mode='r', ctx=ctx) as A:
read_data = A[:]["a"]
# Always raise an TileDBError
with tiledb.DenseArray(array_uri, mode='r', ctx=ctx) as A:
read_data = A[:]["a"]
# Never raise any Error and the data is what I want.
And the code for writing data is
config = tiledb.Config()
ctx = tiledb.Ctx(config)
dom = tiledb.Domain(tiledb.Dim(name="rows", domain=(0, 999), tile=1000, dtype=np.int32))
schema = tiledb.ArraySchema(domain=dom, sparse=False,
attrs=[tiledb.Attr(name="a", dtype=np.float32)])
tiledb.Array.create(array_uri, schema, ctx=ctx)
data = np.random.rand(1000).astype(np.float32)
with tiledb.DenseArray(array_uri, mode='w', ctx=ctx) as A:
A[:] = data
And when I try it on the local file system, the problem doesn't occur. So I guess the problem is the interaction between HDFS backend and TileDB. I will appreciate it if you can give me a hand. Thanks again.
The text was updated successfully, but these errors were encountered:
I am working on this issue and could not successfully reproduce it. @AwalkZY can you provide us with more information about your Hadoop instalation, as well as check Hadoop's logs for any errors?
First of all, thanks for your excellent work in this field!
I encounter a problem in reading from HDFS backend. I can normally write to HDFS backend but when I try to read the data out from the same location, I got an Error: tiledb.cc.TileDBError: [TileDB::Array] Error: Caught std::exception: [TileDB::HDFS] Error: Cannot list files in hdfs://path/to/__fragment_meta.
And it's weird that, this error will always occur when I try to read from HDFS in the first execution. And it never occurs when I carry out the second attempt. i.e.,
And the code for writing data is
And when I try it on the local file system, the problem doesn't occur. So I guess the problem is the interaction between HDFS backend and TileDB. I will appreciate it if you can give me a hand. Thanks again.
The text was updated successfully, but these errors were encountered: