You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Kylo 0.8.4特定组件时遇spark-submit路径错误求助

Fixing "spark-submit not on path" Error During Kylo 0.8.4 Installation

Hey there, I’ve run into this exact hiccup before when setting up Kylo with Spark—even if Spark is installed, the installer script can’t find spark-submit if it’s not properly added to your system’s PATH (especially when using sudo). Let’s walk through the fixes step by step:

Step 1: Locate Your Spark Installation Path

First, find where spark-submit lives on your system. Run this command to search for it:

find / -name spark-submit 2>/dev/null

You’ll get an output like /opt/spark/bin/spark-submit or /usr/local/spark/bin/spark-submit—make note of the full path to the bin directory (e.g., /opt/spark/bin).

Step 2: Add Spark’s Bin Directory to Your PATH

Temporary Fix (for the current session)

Run this command to add Spark’s bin folder to your PATH immediately:

export PATH=$PATH:/path/to/spark/bin

Replace /path/to/spark/bin with the actual path you found in Step 1. Then test if spark-submit is accessible:

spark-submit --version

If this outputs Spark’s version info, you’re good to retry the Kylo installer.

Permanent Fix (persists across reboots)

To make the PATH change permanent, edit your shell profile file. If you’re using bash, run:

nano ~/.bashrc

Add this line at the end of the file:

export PATH=$PATH:/path/to/spark/bin

Save and exit (Ctrl+O, Enter, Ctrl+X), then reload the profile:

source ~/.bashrc

Step 3: Handle Sudo Environment Variables

Since you’re running the installer with sudo, keep in mind that sudo might not inherit your user’s PATH settings. To fix this, use the -E flag to preserve your environment variables when running sudo:

sudo -E ./install-kylo-components.sh /opt /opt/kylo kylo kylo

The -E flag tells sudo to pass your current PATH (including Spark’s bin directory) to the installer script.

Step 4: Manually Set SPARK_HOME (Alternative)

If the above steps don’t work, you can explicitly set the SPARK_HOME environment variable before running the installer:

export SPARK_HOME=/path/to/spark
export PATH=$PATH:$SPARK_HOME/bin
sudo -E ./install-kylo-components.sh /opt /opt/kylo kylo kylo

This ensures the installer knows exactly where Spark is installed.

After trying these steps, the installer should be able to find spark-submit and proceed with creating the NiFi-compatible NARs.

内容的提问来源于stack exchange,提问作者Vish

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:58:16