You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Sebastian Albrecht <al...@googlemail.com> on 2019/09/06 13:27:26 UTC

use more than one host with spark cassandra connector

Hi,
is there a way to connect a zeppelin instance to more than one cassandra
hosts via the spark cassandra connector to use the data from them in spark?

BR,
Sebastian.

Re: use more than one host with spark cassandra connector

Posted by Jeff Zhang <zj...@gmail.com>.
Try %spark.conf

https://zeppelin.apache.org/docs/0.9.0-SNAPSHOT/usage/interpreter/overview.html#generic-confinterpreter


Sebastian Albrecht <al...@googlemail.com> 于2019年9月9日周一
下午4:15写道:

> Hi Jeff,
> thank you. Is it possible to change the spark property in a %spark
> paragraph which was set interpreter UI or has the interpreter to be
> restarted for that?
>
> BR,
> Sebastian.
>
> Am Sa., 7. Sept. 2019 um 04:36 Uhr schrieb Jeff Zhang <zj...@gmail.com>:
>
>> Sebastian,
>>
>> I don't think spark interpreter of zeppelin does anything for cassandra.
>> IIUC spark.cassandra.connection.host is spark-cassandra connector
>> property, as long as spark support it, it should work in zeppelin. So I
>> would suggest to you to figure out how to set more than one host in spark
>> cassandra connector first.
>>
>> Sebastian Albrecht <al...@googlemail.com> 于2019年9月7日周六
>> 上午12:25写道:
>>
>>>
>>> Am Fr., 6. Sept. 2019 um 17:04 Uhr schrieb Jeff Zhang <zjffdu@gmail.com
>>> >:
>>>
>>>> It is better to ask this kind of question in spark community. As long
>>>> as spark support it, you can do it in zeppelin.
>>>>
>>>>
>>> Hi Jeff,
>>> thank you for your answer. Zeppelin already does is in the spark
>>> interpreter: set the property spark.cassandra.connection.host , add the
>>> cassandra-connector to the dependencies and go. But where do i configure an
>>> additional host? In the same interpreter. Do i have to add a separate spark
>>> interpreter?
>>>
>>> Thank you,
>>> Sebastian.
>>>
>>>
>>>> Sebastian Albrecht <al...@googlemail.com> 于2019年9月6日周五
>>>> 下午9:27写道:
>>>>
>>>>> Hi,
>>>>> is there a way to connect a zeppelin instance to more than one
>>>>> cassandra hosts via the spark cassandra connector to use the data from them
>>>>> in spark?
>>>>>
>>>>> BR,
>>>>> Sebastian.
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>>
>>>> Jeff Zhang
>>>>
>>>
>>
>> --
>> Best Regards
>>
>> Jeff Zhang
>>
>

-- 
Best Regards

Jeff Zhang

Re: use more than one host with spark cassandra connector

Posted by Sebastian Albrecht <al...@googlemail.com>.
Hi Jeff,
thank you. Is it possible to change the spark property in a %spark
paragraph which was set interpreter UI or has the interpreter to be
restarted for that?

BR,
Sebastian.

Am Sa., 7. Sept. 2019 um 04:36 Uhr schrieb Jeff Zhang <zj...@gmail.com>:

> Sebastian,
>
> I don't think spark interpreter of zeppelin does anything for cassandra.
> IIUC spark.cassandra.connection.host is spark-cassandra connector
> property, as long as spark support it, it should work in zeppelin. So I
> would suggest to you to figure out how to set more than one host in spark
> cassandra connector first.
>
> Sebastian Albrecht <al...@googlemail.com> 于2019年9月7日周六
> 上午12:25写道:
>
>>
>> Am Fr., 6. Sept. 2019 um 17:04 Uhr schrieb Jeff Zhang <zj...@gmail.com>:
>>
>>> It is better to ask this kind of question in spark community. As long as
>>> spark support it, you can do it in zeppelin.
>>>
>>>
>> Hi Jeff,
>> thank you for your answer. Zeppelin already does is in the spark
>> interpreter: set the property spark.cassandra.connection.host , add the
>> cassandra-connector to the dependencies and go. But where do i configure an
>> additional host? In the same interpreter. Do i have to add a separate spark
>> interpreter?
>>
>> Thank you,
>> Sebastian.
>>
>>
>>> Sebastian Albrecht <al...@googlemail.com> 于2019年9月6日周五
>>> 下午9:27写道:
>>>
>>>> Hi,
>>>> is there a way to connect a zeppelin instance to more than one
>>>> cassandra hosts via the spark cassandra connector to use the data from them
>>>> in spark?
>>>>
>>>> BR,
>>>> Sebastian.
>>>>
>>>
>>>
>>> --
>>> Best Regards
>>>
>>> Jeff Zhang
>>>
>>
>
> --
> Best Regards
>
> Jeff Zhang
>

Re: use more than one host with spark cassandra connector

Posted by Jeff Zhang <zj...@gmail.com>.
Sebastian,

I don't think spark interpreter of zeppelin does anything for cassandra.
IIUC spark.cassandra.connection.host is spark-cassandra connector property,
as long as spark support it, it should work in zeppelin. So I would suggest
to you to figure out how to set more than one host in spark cassandra
connector first.

Sebastian Albrecht <al...@googlemail.com> 于2019年9月7日周六
上午12:25写道:

>
> Am Fr., 6. Sept. 2019 um 17:04 Uhr schrieb Jeff Zhang <zj...@gmail.com>:
>
>> It is better to ask this kind of question in spark community. As long as
>> spark support it, you can do it in zeppelin.
>>
>>
> Hi Jeff,
> thank you for your answer. Zeppelin already does is in the spark
> interpreter: set the property spark.cassandra.connection.host , add the
> cassandra-connector to the dependencies and go. But where do i configure an
> additional host? In the same interpreter. Do i have to add a separate spark
> interpreter?
>
> Thank you,
> Sebastian.
>
>
>> Sebastian Albrecht <al...@googlemail.com> 于2019年9月6日周五
>> 下午9:27写道:
>>
>>> Hi,
>>> is there a way to connect a zeppelin instance to more than one cassandra
>>> hosts via the spark cassandra connector to use the data from them in spark?
>>>
>>> BR,
>>> Sebastian.
>>>
>>
>>
>> --
>> Best Regards
>>
>> Jeff Zhang
>>
>

-- 
Best Regards

Jeff Zhang

Re: use more than one host with spark cassandra connector

Posted by Sebastian Albrecht <al...@googlemail.com>.
Am Fr., 6. Sept. 2019 um 17:04 Uhr schrieb Jeff Zhang <zj...@gmail.com>:

> It is better to ask this kind of question in spark community. As long as
> spark support it, you can do it in zeppelin.
>
>
Hi Jeff,
thank you for your answer. Zeppelin already does is in the spark
interpreter: set the property spark.cassandra.connection.host , add the
cassandra-connector to the dependencies and go. But where do i configure an
additional host? In the same interpreter. Do i have to add a separate spark
interpreter?

Thank you,
Sebastian.


> Sebastian Albrecht <al...@googlemail.com> 于2019年9月6日周五
> 下午9:27写道:
>
>> Hi,
>> is there a way to connect a zeppelin instance to more than one cassandra
>> hosts via the spark cassandra connector to use the data from them in spark?
>>
>> BR,
>> Sebastian.
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>

Re: use more than one host with spark cassandra connector

Posted by Jeff Zhang <zj...@gmail.com>.
It is better to ask this kind of question in spark community. As long as
spark support it, you can do it in zeppelin.

Sebastian Albrecht <al...@googlemail.com> 于2019年9月6日周五
下午9:27写道:

> Hi,
> is there a way to connect a zeppelin instance to more than one cassandra
> hosts via the spark cassandra connector to use the data from them in spark?
>
> BR,
> Sebastian.
>


-- 
Best Regards

Jeff Zhang