You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/10/13 15:19:14 UTC
[GitHub] [hudi] idrismike opened a new issue, #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
idrismike opened a new issue, #6942:
URL: https://github.com/apache/hudi/issues/6942
**To Reproduce**
Steps to reproduce the behavior:
1. Use Hudi To Write to A file system (We use Azure abfss)
2. Table with Partitions - Hudi partitions and keys defined
**Expected behavior**
Should write to a MOR table with partitions
**Environment Description**
* Hudi version : 0.12.0
* Spark version : 3.2.2
* Hadoop version : 3.3.1
* Storage (HDFS/S3/GCS..) : 8.6.3 (azure storage) and hadoop-azure (3.3.1)
* Running on Docker? (yes/no) : no, in k8s
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```22/10/13 15:06:23 ERROR BaseSparkCommitActionExecutor: Error upserting bucketType UPDATE for partition :0
java.lang.NoSuchMethodError: 'void org.apache.hudi.common.table.log.block.HoodieHFileDataBlock.<init>(java.util.List, java.util.Map, org.apache.hudi.org.apache.hadoop.hbase.io.compress.Compression$Algorithm, org.apache.hadoop.fs.Path)'
at org.apache.hudi.io.HoodieAppendHandle.getBlock(HoodieAppendHandle.java:565)
at org.apache.hudi.io.HoodieAppendHandle.appendDataAndDeleteBlocks(HoodieAppendHandle.java:396)
at org.apache.hudi.io.HoodieAppendHandle.doAppend(HoodieAppendHandle.java:382)
at org.apache.hudi.table.action.deltacommit.BaseSparkDeltaCommitActionExecutor.handleUpdate(BaseSparkDeltaCommitActionExecutor.java:84)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.handleUpsertPartition(BaseSparkCommitActionExecutor.java:322)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.lambda$mapPartitionsAsRDD$a3ab3c4$1(BaseSparkCommitActionExecutor.java:244)
at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitionsWithIndex$1(JavaRDDLike.scala:102)
at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitionsWithIndex$1$adapted(JavaRDDLike.scala:102)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsWithIndex$2(RDD.scala:915)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsWithIndex$2$adapted(RDD.scala:915)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:337)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.$anonfun$getOrCompute$1(RDD.scala:386)
at org.apache.spark.storage.BlockManager.$anonfun$doPutIterator$1(BlockManager.scala:1498)
at org.apache.spark.storage.BlockManager.org$apache$spark$storage$BlockManager$$doPut(BlockManager.scala:1408)
at org.apache.spark.storage.BlockManager.doPutIterator(BlockManager.scala:1472)
at org.apache.spark.storage.BlockManager.getOrElseUpdate(BlockManager.scala:1295)
at org.apache.spark.rdd.RDD.getOrCompute(RDD.scala:384)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:335)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:337)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:131)
at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
22/10/13 15:06:23 WARN BlockManager: Putting block rdd_23_0 failed due to exception org.apache.hudi.exception.HoodieUpsertException: Error upserting bucketType UPDATE for partition :0.
22/10/13 15:06:23 WARN BlockManager: Block rdd_23_0 could not be removed as it was not found on disk or in memory
22/10/13 15:06:23 ERROR Executor: Exception in task 0.9 in stage 7.0 (TID 2675)
org.apache.hudi.exception.HoodieUpsertException: Error upserting bucketType UPDATE for partition :0
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.handleUpsertPartition(BaseSparkCommitActionExecutor.java:329)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.lambda$mapPartitionsAsRDD$a3ab3c4$1(BaseSparkCommitActionExecutor.java:244)
at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitionsWithIndex$1(JavaRDDLike.scala:102)
at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitionsWithIndex$1$adapted(JavaRDDLike.scala:102)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsWithIndex$2(RDD.scala:915)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsWithIndex$2$adapted(RDD.scala:915)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:337)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.$anonfun$getOrCompute$1(RDD.scala:386)
at org.apache.spark.storage.BlockManager.$anonfun$doPutIterator$1(BlockManager.scala:1498)
at org.apache.spark.storage.BlockManager.org$apache$spark$storage$BlockManager$$doPut(BlockManager.scala:1408)
at org.apache.spark.storage.BlockManager.doPutIterator(BlockManager.scala:1472)
at org.apache.spark.storage.BlockManager.getOrElseUpdate(BlockManager.scala:1295)
at org.apache.spark.rdd.RDD.getOrCompute(RDD.scala:384)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:335)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:337)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:131)
at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: 'void org.apache.hudi.common.table.log.block.HoodieHFileDataBlock.<init>(java.util.List, java.util.Map, org.apache.hudi.org.apache.hadoop.hbase.io.compress.Compression$Algorithm, org.apache.hadoop.fs.Path)'
at org.apache.hudi.io.HoodieAppendHandle.getBlock(HoodieAppendHandle.java:565)
at org.apache.hudi.io.HoodieAppendHandle.appendDataAndDeleteBlocks(HoodieAppendHandle.java:396)
at org.apache.hudi.io.HoodieAppendHandle.doAppend(HoodieAppendHandle.java:382)
at org.apache.hudi.table.action.deltacommit.BaseSparkDeltaCommitActionExecutor.handleUpdate(BaseSparkDeltaCommitActionExecutor.java:84)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.handleUpsertPartition(BaseSparkCommitActionExecutor.java:322)
... 28 more
22/10/13 15:10:59 INFO BlockManager: Removing RDD 13
22/10/13 15:10:59 INFO BlockManager: Removing RDD 23```
--
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: commits-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] idrismike commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
idrismike commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1313313934
@nsivabalan Indeed the jars were conflicting. the issue is resolved. A single jar was enough.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] idrismike commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
idrismike commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1279098063
As mentioned above, writing to `azure abfss` with `hoodie.metadata.enable=false` works. But then, async indexing Fails using `HoodieIndexer`

Since both `hoodie.metadata.enable=true` and `HoodieIndexer` generate metadata - the problem seems similar. Therefore, cannot really upgrade until and unless these issues are resolved.
**PS**: currently, the `HoodieIndexer` takes two parameters `--base-path` and `--table-name`. I would imagine `basepath` to be the directory that contains the `table` - but the indexer only works if `base-path` also contains the table name . e.g.
Imagine storage container to be on the path `abfss://abc@a234.dfs.core.windows.net/some/path/to/storage/container` and
a table there `test_table`.
Then, the `base-path` should be `abfss://abc@a234.dfs.core.windows.net/some/path/to/storage/container` and the `table-name` should be `test_table`.
But what my experience with `HoodieIndexer` is that, the `base-path` must be `abfss://abc@a234.dfs.core.windows.net/some/path/to/storage/container/test_table` and the `tabel-name` to be `test_table`.
That works but seems bit weird.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1284313852
let us know if you run into issues after upgrade. we can dig deeper.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1283149423
yes, its not advisable to run just indexer to 0.9.0 table directly.Would recommend upgrading to 0.11.1 or above and enable metadata table + other indexes in metadata table.
we don't have much exp w/ azure storage. but w/ hdfs, we know you could have some class conflicts. We have have a FAQ [here](https://hudi.apache.org/docs/faq#how-can-i-resolve-the-nosuchmethoderror-from-hbase-when-using-hudi-with-metadata-table-on-hdfs) on how to tackle that.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1287877656
going ahead and closing the issue. feel free to re-open or open a new one if you need further assistance. thanks!
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan closed issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan closed issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
URL: https://github.com/apache/hudi/issues/6942
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] yihua commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
yihua commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1279479228
> We know that we can create the metadata indexes using HoodieIndexer asynchronously (Not sure if that is the same metadata).
HoodieIndexer builds the metadata async to the same metadata table.
> Can we generate indexes using HoodieIndexer for tables written using hudi 0.9.0? We tried doing that but get the following issue - hence clarifying that as well.
Yes, you can. It's recommended to upgrade the Hudi table written from 0.9.0 first with metadata table disabled in this case, and then you can use HoodieIndexer to build the metadata/index again.
I'll try to reproduce your problems on my side to see what's going on. I agree that the base path and the table name should not be coupled.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] yihua commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
yihua commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1278561883
@idrismike this seems like an issue of writing data to the internal metadata table on this particular file system. To mitigate the issue, could you try disabling metadata table by setting `hoodie.metadata.enable=false`?
Could you also share your setup of starting the spark job, e.g., do you use `hudi-utilities-bundle` or `hudi-spark3.2-bundle`?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] idrismike commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
idrismike commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1278681326
@yihua I tried with `hoodie.metadata.enable=false`
**PS**: We are using the following set of `hudi` dependencies:
`"org.apache.hudi" %% "hudi-utilities-slim-bundle" % "0.12.0",
"org.apache.hudi" %% "hudi-spark3.2-bundle" % "0.12.0"`
This seems to work.
But, we want the metadata to be enabled because I am querying Hudi using `hive metastore`, and if `metadata` is not enabled (hence not created), hive querying is `super-slow`.
We know that we can create the `metadata indexes` using `HoodieIndexer` asynchronously (Not sure if that is the same `metadata`).
Moreover, using HoodieIndexer from using within `scala code` (i.e. calling HoodieIndexer from within code having spark session intiated) instead of using `spark-submit` - we get the following issue:
**PS**: All setup remains the same as above.

**Aside Question**: Can we generate `indexes` using `HoodieIndexer` for tables written using `hudi 0.9.0`? We tried doing that but get the following issue - hence clarifying that as well.

--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] idrismike commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
idrismike commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1285631818
@nsivabalan the issue occurs and persists if I try the following:
1. Upgrade a `hudi table with partitions` written using `0.9.0` to `0.12.0` with `metadata` **enabled** - fails.
2. Write a new `hudi table with partitions from scratch` using hudi `0.12.0` with `metadata` **enabled** - fails.
3. Write a new `hudi table with partitions from scratch` using hudi `0.12.0` with `metadata` **disabled** - **works** - But run `HoodieIndexer` with `metadata` **enabled**. fails.
This shows that `metadata` generation for `tables with partitions` fails when writing to azure abfss.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1287482433
I took another look at the stacktrace. looks like there could be some conflicting jars in classpath. here is the core stacktrace
```
java.lang.NoSuchMethodError: 'void org.apache.hudi.common.table.log.block.HoodieHFileDataBlock.<init>(java.util.List, java.util.Map, org.apache.hudi.org.apache.hadoop.hbase.io.compress.Compression$Algorithm, org.apache.hadoop.fs.Path)'
```
this class if from hudi. So, unless you have two diff hudi jars in your classpath, you should be seeing this issue.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6942: [SUPPORT] Hudi 0.12.0 InsertOverWrite - Getting NoSuchMethodError while writing to table with partitions
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6942:
URL: https://github.com/apache/hudi/issues/6942#issuecomment-1287483260
```
PS: We are using the following set of hudi dependencies:
"org.apache.hudi" %% "hudi-utilities-slim-bundle" % "0.12.0", "org.apache.hudi" %% "hudi-spark3.2-bundle" % "0.12.0"
```
either of hudi-utilities or hudi-spark bundle is good enough. you don't need both
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org