ravipesala commented on a change in pull request #3374: [CARBONDATA-3496] Maintain the list of TableDataMap based on tableId instead of tableName
URL:
https://github.com/apache/carbondata/pull/3374#discussion_r334355288
##########
File path: integration/spark-common/src/main/scala/org/apache/spark/sql/hive/DistributionUtil.scala
##########
@@ -89,7 +89,16 @@ object DistributionUtil {
}
}
- def getExecutors(sparkContext: SparkContext): Map[String, Seq[String]] = {
+ def assignAndGetExecutors(sparkContext: SparkContext): Map[String, Seq[String]] = {
+ val availableExecutors = getExecutors(sparkContext)
+ if (availableExecutors.isEmpty) {
+ val configuredExecutorInstances = sparkContext.getConf.getInt("spark.executor.instances", 0)
+ sparkContext.requestExecutors(configuredExecutorInstances)
Review comment:
doesn't it take time time to get the requested executors? Don't we need to wait after this call?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services