无法启动Spark-shell

时间:2019-03-22 16:42:03

标签: apache-spark pyspark spark-shell

您好,我已经解压缩并导出了Spark路径。当我吃午饭时,我遇到了这个错误。

export PATH=$PATH:/usr/local/spark/spark24/bin

$ spark-shell

错误

Traceback (most recent call last):
  File "/usr/local/bin/find_spark_home.py", line 74, in <module>
    print(_find_spark_home())
  File "/usr/local/bin/find_spark_home.py", line 56, in _find_spark_home
    module_home = os.path.dirname(find_spec("pyspark").origin)
AttributeError: 'NoneType' object has no attribute 'origin'
/usr/local/bin/spark-shell: line 57: /bin/spark-submit: No such file or directory

我怎么了?

1 个答案:

答案 0 :(得分:1)

您设置了SPARK_HOME吗?

<tbody *ngFor="let o of collection | async">
      <tr>
        <td scope="row">
          {{o.address}}
        </td>
        <td scope="row">
          {{o.name}}
        </td>
        <td scope="row">
          {{o.email}}
        </td>
        <td scope="row">
          {{o.phone}}
        </td>
        <td scope="row">
          <button mat-button color="warn" class="delete" type="button" (click)="delete(o)">Delete</button>
        </td>
      </tr>
    </tbody>