Getting "java.io.FileNotFoundException" when I'm trying to use wildcard character
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2022 09:32 PM
Though there are parquet files in the folder which I'm trying to query, I'm getting FileNotFoundException. Please Let me know if there is any issue in the code.
Thanks
- Labels:
-
Filenotfoundexception
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2023 12:02 AM
@Varshith K the actual path is
/dbfs/user/hive/warehouse/a/*.parquet
or
/user/hive/warehouse/a/*.parquet
check both and I am pretty sure that 1st one will work
Please select this answer as best answer if it resolved your issue
Thanks
Aviral Bhardwaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2023 12:31 AM
@Aviral Bhardwaj
Hi Aviral,
Actually when I'm giving "dbfs:/user/hive/warehouse/a/" or "/user/hive/warehouse/a/" as path then there is no issue, but when I'm trying to use wildcard character to find the parquet files in that folder then it is throwing error. Please refer to the attached screenshot
Thanks,
Varshith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2023 01:22 AM
Hey @Varshith K Connect with me at https://www.linkedin.com/in/aviralb/
we will set up a meeting link and I will try to help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 06:02 AM
alternatively you can use this as shell command. This will work.
%sh
ls /dbfs/mnt/mountpoint/path/to/raw/*.parquet

