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
Delta Share Fails When Attempting to Read Delta Table #197
Comments
Files on the local file system are not supported by the server. You need to put your table in S3, Azure, or GCS. |
That makes. Thanks I have similar problem in S3 import os Point to the profile file. It can be a file on the local file system or a file on a remote storage.profile_file = os.path.abspath('open-datasets.share') Create a SharingClient.client = delta_sharing.SharingClient(profile_file) List all shared tables.print("########### All Available Tables #############") All available tables are printed correctly but when I try read the data from the table The following errors are thrown when I run delta_sharing.lod_as_pandas(table_url, limit=10) . I have spent many hours to debug it but no luck. Any guidance will be much appreciated table_url = profile_file + "#share1.default.test_locations" My config.yaml The format version of this config fileversion: 1 Config shares/schemas/tables to shareshares:
host: "myserver.cxl.io" I can query the delta table but not with delta share Cell In [8], line 15 File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/delta_sharing.py:71, in load_as_pandas(url, limit, version) File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/reader.py:71, in DeltaSharingReader.to_pandas(self) File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/rest_client.py:111, in retry_with_exponential_backoff..func_with_retry(self, *arg, **kwargs) File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/rest_client.py:99, in retry_with_exponential_backoff..func_with_retry(self, *arg, **kwargs) File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/rest_client.py:267, in DataSharingRestClient.list_files_in_table(self, table, predicateHints, limitHint, version) File /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/contextlib.py:117, in _GeneratorContextManager.enter(self) File ~/Library/Python/3.9/lib/python/site-packages/delta_sharing/rest_client.py:346, in DataSharingRestClient._request_internal(self, request, target, **kwargs) HTTPError: 500 Server Error: Internal Server Error for url: https://myserver.cxl.io/delta-sharing/shares/share1/schemas/default/tables/test_locations/query |
What's the error in the server? The most common issue is your server doesn't have the permission to access S3 (the S3 credential is not set up correctly) |
You are correct. That fixed the issue. Thank you very much for you guidance! |
Great to see you fixed the issue! |
import delta_sharing
table_url = "/Users/user1/Applications/open-datasets.share#share1.default.test_facilities"
pandas_df = delta_sharing.load_as_pandas(table_url)
pandas_df.head(10)
My config.yaml:
The format version of this config file
version: 1
Config shares/schemas/tables to share
shares:
schemas:
tables:
location: "/tmp/test_facilities"
host: "localhost"
port: 9999
endpoint: "/delta-sharing"
I keep getting the following error when I run the above program. The delta table is there
HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:9999/delta-sharing/shares/share1/schemas/default/tables/test_facilities/query
Response from server:
{'errorCode': 'INTERNAL_ERROR', 'message': ''}
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: File system class org.apache.hadoop.fs.LocalFileSystem is not supported
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2055)
at com.google.common.cache.LocalCache.get(LocalCache.java:3966)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4863)
at io.delta.standalone.internal.DeltaSharedTableLoader.loadTable(DeltaSharedTableLoader.scala:54)
at io.delta.sharing.server.DeltaSharingService.$anonfun$listFiles$1(DeltaSharingService.scala:282)
at io.delta.sharing.server.DeltaSharingService.processRequest(DeltaSharingService.scala:169)
... 60 more
Caused by: java.lang.IllegalStateException: File system class org.apache.hadoop.fs.LocalFileSystem is not supported
at io.delta.standalone.internal.DeltaSharedTable.$anonfun$fileSigner$1(DeltaSharedTableLoader.scala:97)
at io.delta.standalone.internal.DeltaSharedTable.withClassLoader(DeltaSharedTableLoader.scala:109)
at io.delta.standalone.internal.DeltaSharedTable.(DeltaSharedTableLoader.scala:84)
at io.delta.standalone.internal.DeltaSharedTableLoader.$anonfun$loadTable$1(DeltaSharedTableLoader.scala:58)
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4868)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3533)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2282)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2159)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049)
... 65 more
The text was updated successfully, but these errors were encountered: