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

517
Visualizações
Unable to run spark-shell from bin

I'm new to spark, I downloaded precompiled spark.

When I try to run spark-shell from bin folder on command line, it returns

:cd /users/denver/spark-1.6/bin
:spark-shell

command not found

But if I run it like

:cd /users/denver/spark-1.6
:./bin/spark-shell

it launches spark ..

can you please let me know why it is throwing error in the 1st case

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

0

The reason why you can not run the spark-shell command in first case is because of environment variable

The terminal searches for executables in $PATH. This is a Unix environment variable that lists directories containing system binaries (such as ls, echo, or gcc). If you call an executable that's not in a $PATH directory (such as spark-shell), you need to indicate its absolute path in the file system.

In the terminal . is a synonym for the current working directory, thus ./bin/spark-shell can work properly. You could equally well call ./some/path/bin/spark-shell.

Hope it helps.

over 4 years ago · Santiago Trujillo Relatório

0

In linux:

Add to your ~/.bashrc

export SPARK_HOME=/home/das/spark-1.6.2-bin-hadoop2.6 export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin

Source ~/.bashrc. Relaunch terminal then spark-shell works from anywhere If it doesn't work add to ~/.profile

over 4 years ago · Santiago Trujillo Relatório

0

This happened to me too. Using ./bin/spark-shell after changing to the spark directory should solve the issue.

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