Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

298
Visualizações
MongoDB with the Spark connector

If I have a replica set with mongodb, than a primary server is receiving all the wirte/read operations and writing them to the server. The secondary server are reading the operations from the oplog and replicating them. Now I would like to analyze the data in mongodb replica set with spark-mongodb-connector. I can install a spark cluster on all three nodes and run analytics on it in memory. I understand that spark cluster has a master node where I have to submit the spark job for analytics, or spark streaming. Both are installed on an application server in tomcat.

now I need to choose a master node to submit the job from my tomcat app server to the spark cluster. Should the Primary Server be the Spark Master node? and than the driver of an application can connect to submit jobs on it?. What would be the Spark master in a sharded cluster?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It doesn't really matter which node is the Spark Master in your cluster. The Spark master will be responsible for assigning the tasks to the Spark executors, it will not receive all read/write requests. Each executor will then be responsible for fetching the data it needs to process.

Be careful about data partitioning in Spark, it might happen that mongoDB only provides a single partition to start with, so you might want to do a repartition first.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda