Size: a a a

2021 April 29

GP

Grigory Pomadchin in Data Engineers
spark-submit
источник

GP

Grigory Pomadchin in Data Engineers
ну или шелл на мастере открой) какой-то ж доступ ьы имеешь к нему
источник

t

tenKe in Data Engineers
/**
* Request executors from the cluster manager by specifying the total number desired,
* including existing pending and running executors.
*
* The semantics here guarantee that we do not over-allocate executors for this application,
* since a later request overrides the value of any prior request. The alternative interface
* of requesting a delta of executors risks double counting new executors when there are
* insufficient resources to satisfy the first request. We make the assumption here that the
* cluster manager will eventually fulfill all requests when resources free up.
*
* @return a future whose evaluation indicates whether the request is acknowledged.
*/
protected def
@return @return a future whose evaluation indicates whether the request is acknowledged.
*/
protected def doRequestTotalExecutors(requestedTotal: Int): Future[Boolean] =
 Future.
successful(false)
источник

t

tenKe in Data Engineers
это прекрасно
источник

GP

Grigory Pomadchin in Data Engineers
там наверное еще более прекарсные реализации
источник

t

tenKe in Data Engineers
источник

t

tenKe in Data Engineers
я удивлен, что оно не final
источник

GP

Grigory Pomadchin in Data Engineers
буду смеяться над телом {
 reallyRequestMyExecutors() // блокирующая
 Future.successful(true)
}
источник

GP

Grigory Pomadchin in Data Engineers
источник

t

tenKe in Data Engineers
источник

GP

Grigory Pomadchin in Data Engineers
отлично
источник

t

tenKe in Data Engineers
технологии работают, зачем придумывать что то новое
источник

GP

Grigory Pomadchin in Data Engineers
слушай но похоже ты прав да
вот эта настрйок меняет колво ехекуторов
источник

GP

Grigory Pomadchin in Data Engineers
и потом скедулер похоже идет в конфиг читает (а может не идет и не читает) и алоцирует штуки
источник

GP

Grigory Pomadchin in Data Engineers
интересно что заставляет его триггернутса и проверить конфиги
источник

GP

Grigory Pomadchin in Data Engineers
как оно работает на включенной динамик аллокации вообще?
источник

GP

Grigory Pomadchin in Data Engineers
он другие функции вызывает? или както форсит новые ехекуторы
источник

t

tenKe in Data Engineers
эти же, судя по коду - в части про динамическую аллокацию есть ссылки на этот ExecutorAllocationClient
источник

t

tenKe in Data Engineers
вот тут:

package org.apache.spark

**
* An agent that dynamically allocates and removes executors based on the workload.


private[spark] class ExecutorAllocationManager(
   client:
ExecutorAllocationClient,
   listenerBus: LiveListenerBus,
   conf: SparkConf,
   blockManagerMaster: BlockManagerMaster)
 
extends Logging {
источник

t

tenKe in Data Engineers
источник