I just tried this today - it's more than just the python path.  There also
needs to be a jar loaded in the driver path.  Here's what the call to
pyspark looks like:

pyspark \
    --jars ${PYSPARK_ROOT}/pyspark_cassandra-0.1.4.jar  \
    --driver-class-path ${PYSPARK_ROOT}/pyspark_cassandra-0.1.4.jar \
    --py-files ${PYSPARK_ROOT}/pyspark_cassandra-0.1.4-py2.7.egg \
    --conf spark.cassandra.connection.host=127.0.0.1 \
    --master spark://127.0.0.1:7077 \

I'm also wondering how this would work as I don't know Zeppelin at all.

Jon

On Mon, May 4, 2015 at 6:18 PM moon soo Lee <[email protected]> wrote:

> Hi,
>
> Zeppelin's PySpark Interpreter respect PYTHONPATH environment variable.
> Could you try export PYTHONPATH in conf/zeppelin-env.sh?
>
> Thanks,
> moon
>
> On Sat, May 2, 2015 at 11:46 PM Marty B <[email protected]> wrote:
>
>> Hi,
>>
>> With PySpark, how do I configure a Python module to load when starting
>> Zeppelin?
>>
>> I'm attempting to load the pyspark-cassandra connector (
>> https://github.com/TargetHolding/pyspark-cassandra). The jar loads
>> successfully, but I don't see how to load the associated .egg file for
>> Python.
>>
>> I tried -Dspark.py-files=3D/path/to/module in ZEPPELIN_JAVA_OPTS (with
>> -Dspark.jars=3D/...) but that didn't seem to do anything.
>>
>> Thanks in advance for any pointers.
>>
>

Reply via email to