-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get attributeTable param when accessing a GeoTrellis layer stored in HBase via URI #3528
Comments
Hi @RunBoo , have you tried But I can check it for you. It is sad that we don't have a good enough coverage for HBase. |
You're totally right, |
@pomadchin Yes, I've tried and results are same to:
|
Okey, Thanks a lot. I'll try it. @pomadchin The "zookeeper" here should be IP address or DNS. |
@pomadchin It works for me. I'll close this commet. Thank you~ |
Describe the bug
Unlike GeoTrellis layers stored in HDFS, S3, or local files, layers stored in HBase cannot be organized into a catalog within the URI like this:
https://github.com/locationtech/geotrellis/blob/master/store/src/main/scala/geotrellis/store/GeoTrellisPath.scala#L41-L44
There is no example for HBase.
To Reproduce
When retrieving GT layers from HBase using a URI:
gt+hbase://znkgtz01:2181?master=znkgtz01&attributes=attributes&layer=tiles&zoom=19&band_count=3
,the HBaseAttributeStore fails to obtain attributeTable param passed in the URI.
The HBaseAttributeStore is created here:
https://github.com/geotrellis/geotrellis-server/blob/main/ogc/src/main/scala/geotrellis/server/ogc/OgcSource.scala#L140-L143
When the program reaches here:
https://github.com/locationtech/geotrellis/blob/master/hbase/src/main/scala/geotrellis/store/hbase/HBaseCollectionLayerProvider.scala#L38-L43
the provided URI is parsed to only retain "hbase://znkgtz01:2181". As a result, the correct attributeTable parameter "attributes" cannot be obtained, and the default value of "metadata" is consistently used.
Expected behavior
The program should be able to read the attributeTable parameter from URI and retrieve data from the corresponding HBase table:
gt+hbase://znkgtz01:2181?master=znkgtz01&attributes=attributes&layer=tiles&zoom=19&band_count=3
Environment
Additional context
Is this a bug in Geotrellis or is there an issue with my URI format?
The text was updated successfully, but these errors were encountered: