Mulavar commented on issue #6169:
URL: https://github.com/apache/hudi/issues/6169#issuecomment-1206138784
Thanks, I tried to add dependencies with "provided" scope to classpath and
solved the problem, and then ran into another problem:
```bash
Exception in thread "main" org.apache.hudi.exception.TableNotFoundException:
Hoodie table not found in path
/Users/xxx/workspace/github.com/apache/hudi/data0/.hoodie
at
org.apache.hudi.exception.TableNotFoundException.checkTableValidity(TableNotFoundException.java:57)
at
org.apache.hudi.common.table.HoodieTableMetaClient.<init>(HoodieTableMetaClient.java:128)
at
org.apache.hudi.common.table.HoodieTableMetaClient.newMetaClient(HoodieTableMetaClient.java:641)
at
org.apache.hudi.common.table.HoodieTableMetaClient.access$000(HoodieTableMetaClient.java:80)
at
org.apache.hudi.common.table.HoodieTableMetaClient$Builder.build(HoodieTableMetaClient.java:710)
at
org.apache.hudi.client.BaseHoodieClient.createMetaClient(BaseHoodieClient.java:139)
at
org.apache.hudi.client.BaseHoodieWriteClient.startCommit(BaseHoodieWriteClient.java:933)
at
org.apache.hudi.examples.java.HoodieJavaWriteClientExample.main(HoodieJavaWriteClientExample.java:93)
Caused by: java.io.FileNotFoundException: File
file:/Users/xxx/workspace/github.com/apache/hudi/data0/.hoodie does not exist
at
org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:634)
at
org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:860)
at
org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:624)
at
org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:446)
at
org.apache.hudi.common.fs.HoodieWrapperFileSystem.lambda$getFileStatus$17(HoodieWrapperFileSystem.java:402)
at
org.apache.hudi.common.fs.HoodieWrapperFileSystem.executeFuncWithTimeMetrics(HoodieWrapperFileSystem.java:106)
at
org.apache.hudi.common.fs.HoodieWrapperFileSystem.getFileStatus(HoodieWrapperFileSystem.java:396)
at
org.apache.hudi.exception.TableNotFoundException.checkTableValidity(TableNotFoundException.java:51)
... 7 more
```
I created a directory named 'data0' in the project root path, and ran the
example with arg0 '/Users/djh/workspace/github.com/apache/hudi/data0' and arg1
'hoodie_rt'.
What are the pre-actions I should do before running this demo?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]