Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sync code from spark master #3
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
Uh oh!
There was an error while loading. Please reload this page.
Sync code from spark master #3
Changes from 1 commit
ff14801cdcccd734811e0119f6a00b6cead3a4d15e707e650487377e9e26473dea381d486f99ea89cdf57965c91269cd532ce37b542cf48e5ff72ffa366b95947b4e64586ead98a5c0aba622f4b0f422cf2cab5650857397706eeaf6b49f98c5b34cad640a5e8a259d8bceb894c587eb04e71c333c2cb2aff7d8153561d2c99fc9aac76eff77c91ccfe22f329bb239cd6632d12cb23a87013eea92e7ecb3be4adfea48099e7bbca8d90e77b2c367362ca9bb010b06571a54f48b6f837cb304e07d5b41ae567bd3123370559ddd1e2918fb9b1098933279b3db4f5bad67c3e89956e8f4815c3c98761889618f85753675af7c2632edca83526c9520005414abcdffeac388d8de99945b02bd201bf8a727348a1efe361487b3745c8c04de638cf15906d5f4deff56632185e7bc2a7f5e8aa2c4b996477d6bd983e8d9500b21cbf09f2f8d7911398d0ea3918c7e92b89e4aa091ee60604bea95e51ff5c9eaa64d37008a649fcfb2edc305fa438492e95256ac4fba8b56f16cb43bbe95c03cba336553816a5495f653d4e4bec7ca9350d7087fb31eb48edfb30a7d23e778f535997b5c68ec4eed72bad34c4b9c761565aea2fdc0641aec6505480c491ec11a7755fdb348901df05fb6b02e76c5b5a36ebc8d093ae9172015298b9529f84744a9f8e6151f29fe2b7a4a7c19d928ea4e3a135182441d0d08020f667cf9fab66a3a5a1035aaa359375e5cfd5fa16ef6ba5197562a355236cccaaa1d8379e5d3bd043c5c8b541822ecdb2329fbd9ca1c94807d38f2ac087d65e531249007e6ade5cb9452401d766ea2c926acfd23a805b6935ffe9982506ab134c2c1fe646a73457710a68c8d40a7932471bad81f29e10f45bb7c1654e252468a61b7247f94f362649888495034af3323b15e179658adb222b4f1e8b97c7570dc7622be87611bbc604d65271c891653fe023cb820475a18309d960dee904dfa6a2289e0b191220f93b91682002b14291b0ab7b9611018be44b070360323e61a83ae0d4dfd74625892f3558f31bcbb41a073f2853c0964936931022083cf2250037360461482fd990a914844a61cc66a005ae74730ffb530a9172aed4101d3990daaf39e82c1ca3c505fccdae1e3b876310a8cdcce4694f81fa47f09a9e9a9066470c94e488bb0df2d5bec4846bb2b51b08c43e1341659e10f69d96c3e30deaa526e19f76a4718809ea8d3de55953bb3fde5ae6b4660File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…ed fast ## What changes were proposed in this pull request? Yarn throws the following exception in cluster mode when the application is really small: ``` 18/03/07 23:34:22 WARN netty.NettyRpcEnv: Ignored failure: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask7c974942 rejected from java.util.concurrent.ScheduledThreadPoolExecutor1eea9d2d[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 18/03/07 23:34:22 ERROR yarn.ApplicationMaster: Uncaught exception: org.apache.spark.SparkException: Exception thrown in awaitResult: at org.apache.spark.util.ThreadUtils$.awaitResult(ThreadUtils.scala:205) at org.apache.spark.rpc.RpcTimeout.awaitResult(RpcTimeout.scala:75) at org.apache.spark.rpc.RpcEndpointRef.askSync(RpcEndpointRef.scala:92) at org.apache.spark.rpc.RpcEndpointRef.askSync(RpcEndpointRef.scala:76) at org.apache.spark.deploy.yarn.YarnAllocator.<init>(YarnAllocator.scala:102) at org.apache.spark.deploy.yarn.YarnRMClient.register(YarnRMClient.scala:77) at org.apache.spark.deploy.yarn.ApplicationMaster.registerAM(ApplicationMaster.scala:450) at org.apache.spark.deploy.yarn.ApplicationMaster.runDriver(ApplicationMaster.scala:493) at org.apache.spark.deploy.yarn.ApplicationMaster.org$apache$spark$deploy$yarn$ApplicationMaster$$runImpl(ApplicationMaster.scala:345) at org.apache.spark.deploy.yarn.ApplicationMaster$$anonfun$run$2.apply$mcV$sp(ApplicationMaster.scala:260) at org.apache.spark.deploy.yarn.ApplicationMaster$$anonfun$run$2.apply(ApplicationMaster.scala:260) at org.apache.spark.deploy.yarn.ApplicationMaster$$anonfun$run$2.apply(ApplicationMaster.scala:260) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$5.run(ApplicationMaster.scala:810) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1920) at org.apache.spark.deploy.yarn.ApplicationMaster.doAsUser(ApplicationMaster.scala:809) at org.apache.spark.deploy.yarn.ApplicationMaster.run(ApplicationMaster.scala:259) at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:834) at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala) Caused by: org.apache.spark.rpc.RpcEnvStoppedException: RpcEnv already stopped. at org.apache.spark.rpc.netty.Dispatcher.postMessage(Dispatcher.scala:158) at org.apache.spark.rpc.netty.Dispatcher.postLocalMessage(Dispatcher.scala:135) at org.apache.spark.rpc.netty.NettyRpcEnv.ask(NettyRpcEnv.scala:229) at org.apache.spark.rpc.netty.NettyRpcEndpointRef.ask(NettyRpcEnv.scala:523) at org.apache.spark.rpc.RpcEndpointRef.askSync(RpcEndpointRef.scala:91) ... 17 more 18/03/07 23:34:22 INFO yarn.ApplicationMaster: Final app status: FAILED, exitCode: 13, (reason: Uncaught exception: org.apache.spark.SparkException: Exception thrown in awaitResult: ) ``` Example application: ``` object ExampleApp { def main(args: Array[String]): Unit = { val conf = new SparkConf().setAppName("ExampleApp") val sc = new SparkContext(conf) try { // Do nothing } finally { sc.stop() } } ``` This PR pauses user class thread after `SparkContext` created and keeps it so until application master initialises properly. ## How was this patch tested? Automated: Existing unit tests Manual: Application submitted into small cluster Author: Gabor Somogyi <gabor.g.somogyi@gmail.com> Closes apache#20807 from gaborgsomogyi/SPARK-23660.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing