擅长:python、mysql、java
<p>您应该将<code>elephas</code>库作为参数添加到<code>spark-submit</code>命令中。在</p>
<p>引用官方指南:</p>
<blockquote>
<p>For Python, you can use the <code> py-files</code> argument of <code>spark-submit</code> to add .py, .zip or .egg files to be distributed with your application. If you depend on multiple Python files we recommend packaging them into a .zip or .egg.</p>
</blockquote>
<p><a href="https://spark.apache.org/docs/2.3.0/submitting-applications.html" rel="nofollow noreferrer">Official guide</a></p>