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/08/01 09:18:05 UTC
[GitHub] [hudi] fengjian428 opened a new pull request, #6265: [HUDI-4516] fix task not serializable error
fengjian428 opened a new pull request, #6265:
URL: https://github.com/apache/hudi/pull/6265
## *Tips*
- *Thank you very much for contributing to Apache Hudi.*
- *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.*
## What is the purpose of the pull request
`2/08/01 10:43:08 ERROR HoodieCleaner: Fail to run cleaning for hdfs://R2/user/voonhou.su/test/hudi/voon_kafka_test__test_hudi_011_04/
org.apache.spark.SparkException: Task not serializable
at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:416)
at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:406)
at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:162)
at org.apache.spark.SparkContext.clean(SparkContext.scala:2467)
at org.apache.spark.rdd.RDD.$anonfun$map$1(RDD.scala:422)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:414)
at org.apache.spark.rdd.RDD.map(RDD.scala:421)
at org.apache.spark.api.java.JavaRDDLike.map(JavaRDDLike.scala:93)
at org.apache.spark.api.java.JavaRDDLike.map$(JavaRDDLike.scala:92)
at org.apache.spark.api.java.AbstractJavaRDDLike.map(JavaRDDLike.scala:45)
at org.apache.hudi.client.common.HoodieSparkEngineContext.map(HoodieSparkEngineContext.java:103)
at org.apache.hudi.table.action.clean.CleanPlanActionExecutor.requestClean(CleanPlanActionExecutor.java:113)
at org.apache.hudi.table.action.clean.CleanPlanActionExecutor.requestClean(CleanPlanActionExecutor.java:141)
at org.apache.hudi.table.action.clean.CleanPlanActionExecutor.execute(CleanPlanActionExecutor.java:166)
at org.apache.hudi.table.HoodieSparkCopyOnWriteTable.scheduleCleaning(HoodieSparkCopyOnWriteTable.java:204)
at org.apache.hudi.client.BaseHoodieWriteClient.scheduleTableServiceInternal(BaseHoodieWriteClient.java:1352)
at org.apache.hudi.client.BaseHoodieWriteClient.clean(BaseHoodieWriteClient.java:863)
at org.apache.hudi.client.BaseHoodieWriteClient.clean(BaseHoodieWriteClient.java:836)
at org.apache.hudi.client.BaseHoodieWriteClient.clean(BaseHoodieWriteClient.java:890)
at org.apache.hudi.client.BaseHoodieWriteClient.clean(BaseHoodieWriteClient.java:880)
at org.apache.hudi.utilities.HoodieCleaner.run(HoodieCleaner.java:69)
at org.apache.hudi.utilities.HoodieCleaner.main(HoodieCleaner.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:743)
Caused by: java.io.NotSerializableException: org.apache.hudi.common.util.collection.ExternalSpillableMap
Serialization stack:
- object not serializable (class: org.apache.hudi.common.util.collection.ExternalSpillableMap, value: org.apache.hudi.common.util.collection.ExternalSpillableMap@564f5b8f)
- writeObject data (class: org.apache.hudi.common.table.view.HoodieTableFileSystemView)
- object (class org.apache.hudi.common.table.view.SpillableMapBasedFileSystemView, org.apache.hudi.common.table.view.SpillableMapBasedFileSystemView@1bebb4c9)
- field (class: org.apache.hudi.table.action.clean.CleanPlanner, name: fileSystemView, type: interface org.apache.hudi.common.table.view.SyncableFileSystemView)
- object (class org.apache.hudi.table.action.clean.CleanPlanner, org.apache.hudi.table.action.clean.CleanPlanner@347dc85b)
- element of array (index: 0)
- array (class [Ljava.lang.Object;, size 1)
- field (class: java.lang.invoke.SerializedLambda, name: capturedArgs, type: class [Ljava.lang.Object;)
- object (class java.lang.invoke.SerializedLambda, SerializedLambda[capturingClass=class org.apache.hudi.table.action.clean.CleanPlanActionExecutor, functionalInterfaceMethod=org/apache/hudi/common/function/SerializableFunction.apply:(Ljava/lang/Object;)Ljava/lang/Object;, implementation=invokeStatic org/apache/hudi/table/action/clean/CleanPlanActionExecutor.lambda$requestClean$e73901b4$1:(Lorg/apache/hudi/table/action/clean/CleanPlanner;Ljava/lang/String;)Lorg/apache/hudi/common/util/collection/Pair;, instantiatedMethodType=(Ljava/lang/String;)Lorg/apache/hudi/common/util/collection/Pair;, numCaptured=1])
- writeReplace data (class: java.lang.invoke.SerializedLambda)
- object (class org.apache.hudi.table.action.clean.CleanPlanActionExecutor$$Lambda$1860/1603900739, org.apache.hudi.table.action.clean.CleanPlanActionExecutor$$Lambda$1860/1603900739@68c1ef97)
- element of array (index: 0)
- array (class [Ljava.lang.Object;, size 1)
- field (class: java.lang.invoke.SerializedLambda, name: capturedArgs, type: class [Ljava.lang.Object;)
- object (class java.lang.invoke.SerializedLambda, SerializedLambda[capturingClass=class org.apache.hudi.client.common.HoodieSparkEngineContext, functionalInterfaceMethod=org/apache/spark/api/java/function/Function.call:(Ljava/lang/Object;)Ljava/lang/Object;, implementation=invokeInterface org/apache/hudi/common/function/SerializableFunction.apply:(Ljava/lang/Object;)Ljava/lang/Object;, instantiatedMethodType=(Ljava/lang/Object;)Ljava/lang/Object;, numCaptured=1])
- writeReplace data (class: java.lang.invoke.SerializedLambda)
- object (class org.apache.hudi.client.common.HoodieSparkEngineContext$$Lambda$1207/398430635, org.apache.hudi.client.common.HoodieSparkEngineContext$$Lambda$1207/398430635@4ab46aba)
- element of array (index: 0)
- array (class [Ljava.lang.Object;, size 1)
- field (class: java.lang.invoke.SerializedLambda, name: capturedArgs, type: class [Ljava.lang.Object;)
- object (class java.lang.invoke.SerializedLambda, SerializedLambda[capturingClass=class org.apache.spark.api.java.JavaPairRDD$, functionalInterfaceMethod=scala/Function1.apply:(Ljava/lang/Object;)Ljava/lang/Object;, implementation=invokeStatic org/apache/spark/api/java/JavaPairRDD$.$anonfun$toScalaFunction$1:(Lorg/apache/spark/api/java/function/Function;Ljava/lang/Object;)Ljava/lang/Object;, instantiatedMethodType=(Ljava/lang/Object;)Ljava/lang/Object;, numCaptured=1])
- writeReplace data (class: java.lang.invoke.SerializedLambda)
- object (class org.apache.spark.api.java.JavaPairRDD$$$Lambda$1208/2104349, org.apache.spark.api.java.JavaPairRDD$$$Lambda$1208/2104349@5de52b56)
at org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:41)
at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:47)
at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:101)
at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:413)
... 28 more`
## Brief change log
*(for example:)*
- *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
## Verify this pull request
*(Please pick either of the following options)*
This pull request is a trivial rework / code cleanup without any test coverage.
*(or)*
This pull request is already covered by existing tests, such as *(please describe tests)*.
(or)
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end.*
- *Added HoodieClientWriteTest to verify the change.*
- *Manually verified the change by running a job locally.*
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1201211717
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
}, {
"hash" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495",
"triggerID" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9737231e29508d5c08a2212c1660a874a3e77b89 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1201000031
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0de765781aec789c0b9bc1655f3504e2600ba8e1 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1200994478
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0de765781aec789c0b9bc1655f3504e2600ba8e1 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1201063264
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
}, {
"hash" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0de765781aec789c0b9bc1655f3504e2600ba8e1 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492)
* 9737231e29508d5c08a2212c1660a874a3e77b89 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1201128499
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
}, {
"hash" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495",
"triggerID" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0de765781aec789c0b9bc1655f3504e2600ba8e1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492)
* 9737231e29508d5c08a2212c1660a874a3e77b89 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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] hudi-bot commented on pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #6265:
URL: https://github.com/apache/hudi/pull/6265#issuecomment-1201068376
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492",
"triggerID" : "0de765781aec789c0b9bc1655f3504e2600ba8e1",
"triggerType" : "PUSH"
}, {
"hash" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495",
"triggerID" : "9737231e29508d5c08a2212c1660a874a3e77b89",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0de765781aec789c0b9bc1655f3504e2600ba8e1 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10492)
* 9737231e29508d5c08a2212c1660a874a3e77b89 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=10495)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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 merged pull request #6265: [HUDI-4516] fix Task not serializable error when run HoodieCleaner after one failure
Posted by GitBox <gi...@apache.org>.
nsivabalan merged PR #6265:
URL: https://github.com/apache/hudi/pull/6265
--
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