You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beam.apache.org by Georg Heiler <ge...@gmail.com> on 2017/04/12 17:57:50 UTC

beam + scala + streamline

Hi,
new to beam I wonder what API is recommended for using beam from scala.
Would you recommend simply using the java API from scala or
https://github.com/spotify/scio?

Are there any plans to support beam in
https://github.com/hortonworks/streamline?

regards,
Georg

Re: beam + scala + streamline

Posted by Davor Bonaci <da...@apache.org>.
Hi Georg --
Great to see you are evaluating Beam for your scenario.


> > someone told me that e.g. the flink runner for beam seems to be slower
>> than a
>> > native flink job. Is this true? Did you observe such characteristics
>> for several
>> > runners?
>>
>
This should not be true in a general sense -- the performance should be
~equivalent. The Flink runner in Beam constructs a "native" Flink pipeline;
the overhead of invoking user-defined functions is often to set a few
fields and invoke a function, which is negligible. The actual performance
of a pipeline tend to depend on other factors -- stragglers, how fast the
system can adopt to changing load, etc.

(If there's a gap somewhere, it is likely a bug -- and we'd like to know
about it and fix it.)

> in case I want to use some low level functionality (specific to a runner)
>> like
>> > ML, graph processing or sql-tables api, is it possible to just drop
>> from the
>> > beam API one level deeper to the actual runner and sort of mesh beam
>> with runner
>> > native code to integrate these features?
>
>
The Beam API, in a general sense, doesn't provide such hooks, as that would
break portability.

I wouldn't advise this, but technically, it wouldn't be hard -- you'd
create a PTransform in Beam, and modify the runner to replace it with their
own specific implementation. Instead, I'd suggest using Beam's abstractions
and, in the case of a missing pattern or a feature, to work with us to
augment the Beam model accordingly.

Hope this helps -- and that you find Beam fitting for your case. Please let
us know if we can assist any further -- thanks!

Davor

Re: beam + scala + streamline

Posted by Georg Heiler <ge...@gmail.com>.
Hi JB ,
Indeed I would like to get access to this lower level features as some are
still missing from beam.

So in a DoFn I would not be able to let's say access spark session and
convert to a spark native data frame.

How is / should such things currently be handled in beam?

Regards
Georg
Jean-Baptiste Onofré <jb...@nanthrax.net> schrieb am Mi. 12. Apr. 2017 um
21:45:

> Hi Georg,
>
> Personally, I didn't have feedback about performance difference between
> flink
> native and beam/flink runner.
>
> For low level runner access, you mean you want to access Spark ML
> function, etc
> from a Beam pipeline ? Even if you can always use a DoFn, you won't have
> access
> to all internal objects/API. That's what you mean ?
>
> Regards
> JB
>
> On 04/12/2017 08:33 PM, Georg Heiler wrote:
> > HI JB,
> >
> > The overall look and feel of streamline (Kafka, storm, hbase and the
> simplicity
> > of the UI) were really compelling. As we are currently starting to build
> a
> > streaming platform we are looking forward to such a tight integration,
> but would
> > rather use flink or spark (maybe via beam) and not storm integrated into
> such a
> > platform.
> >
> > Regarding streamline performance:
> > someone told me that e.g. the flink runner for beam seems to be slower
> than a
> > native flink job. Is this true? Did you observe such characteristics for
> several
> > runners?
> >
> > Regarding streamline low level runner access:
> > in case I want to use some low level functionality (specific to a
> runner) like
> > ML, graph processing or sql-tables api, is it possible to just drop from
> the
> > beam API one level deeper to the actual runner and sort of mesh beam
> with runner
> > native code to integrate these features?
> >
> > Regards,
> > Georg
> >
> > Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>> schrieb
> am Mi.,
> > 12. Apr. 2017 um 20:04 Uhr:
> >
> >     Hi Georg,
> >
> >     You can use Java API via Scala, or you can use the Scio Scala DSL
> (this DSL use
> >     the Beam Java SDK).
> >
> >     For Streamline, can you explain a bit ? Streamline contains
> different parts:
> >     HBase, Kafka, the web frontend, ...
> >
> >     Using provided IO, it should be possible to store the data and use
> streamline on
> >     top of this data for analytics.
> >
> >     Regards
> >     JB
> >
> >     On 04/12/2017 07:57 PM, Georg Heiler wrote:
> >     > Hi,
> >     > new to beam I wonder what API is recommended for using beam from
> scala.
> >     > Would you recommend simply using the java API from scala or
> >     > https://github.com/spotify/scio?
> >     >
> >     > Are there any plans to support beam in
> >     https://github.com/hortonworks/streamline?
> >     >
> >     > regards,
> >     > Georg
> >
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: beam + scala + streamline

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Georg,

Personally, I didn't have feedback about performance difference between flink 
native and beam/flink runner.

For low level runner access, you mean you want to access Spark ML function, etc 
from a Beam pipeline ? Even if you can always use a DoFn, you won't have access 
to all internal objects/API. That's what you mean ?

Regards
JB

On 04/12/2017 08:33 PM, Georg Heiler wrote:
> HI JB,
>
> The overall look and feel of streamline (Kafka, storm, hbase and the simplicity
> of the UI) were really compelling. As we are currently starting to build a
> streaming platform we are looking forward to such a tight integration, but would
> rather use flink or spark (maybe via beam) and not storm integrated into such a
> platform.
>
> Regarding streamline performance:
> someone told me that e.g. the flink runner for beam seems to be slower than a
> native flink job. Is this true? Did you observe such characteristics for several
> runners?
>
> Regarding streamline low level runner access:
> in case I want to use some low level functionality (specific to a runner) like
> ML, graph processing or sql-tables api, is it possible to just drop from the
> beam API one level deeper to the actual runner and sort of mesh beam with runner
> native code to integrate these features?
>
> Regards,
> Georg
>
> Jean-Baptiste Onofr� <jb@nanthrax.net <ma...@nanthrax.net>> schrieb am Mi.,
> 12. Apr. 2017 um 20:04 Uhr:
>
>     Hi Georg,
>
>     You can use Java API via Scala, or you can use the Scio Scala DSL (this DSL use
>     the Beam Java SDK).
>
>     For Streamline, can you explain a bit ? Streamline contains different parts:
>     HBase, Kafka, the web frontend, ...
>
>     Using provided IO, it should be possible to store the data and use streamline on
>     top of this data for analytics.
>
>     Regards
>     JB
>
>     On 04/12/2017 07:57 PM, Georg Heiler wrote:
>     > Hi,
>     > new to beam I wonder what API is recommended for using beam from scala.
>     > Would you recommend simply using the java API from scala or
>     > https://github.com/spotify/scio?
>     >
>     > Are there any plans to support beam in
>     https://github.com/hortonworks/streamline?
>     >
>     > regards,
>     > Georg
>
>     --
>     Jean-Baptiste Onofr�
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: beam + scala + streamline

Posted by Georg Heiler <ge...@gmail.com>.
HI JB,

The overall look and feel of streamline (Kafka, storm, hbase and the
simplicity of the UI) were really compelling. As we are currently starting
to build a streaming platform we are looking forward to such a tight
integration, but would rather use flink or spark (maybe via beam) and not
storm integrated into such a platform.

Regarding streamline performance:
someone told me that e.g. the flink runner for beam seems to be slower than
a native flink job. Is this true? Did you observe such characteristics for
several runners?

Regarding streamline low level runner access:
in case I want to use some low level functionality (specific to a runner)
like ML, graph processing or sql-tables api, is it possible to just drop
from the beam API one level deeper to the actual runner and sort of mesh
beam with runner native code to integrate these features?

Regards,
Georg

Jean-Baptiste Onofré <jb...@nanthrax.net> schrieb am Mi., 12. Apr. 2017 um
20:04 Uhr:

> Hi Georg,
>
> You can use Java API via Scala, or you can use the Scio Scala DSL (this
> DSL use
> the Beam Java SDK).
>
> For Streamline, can you explain a bit ? Streamline contains different
> parts:
> HBase, Kafka, the web frontend, ...
>
> Using provided IO, it should be possible to store the data and use
> streamline on
> top of this data for analytics.
>
> Regards
> JB
>
> On 04/12/2017 07:57 PM, Georg Heiler wrote:
> > Hi,
> > new to beam I wonder what API is recommended for using beam from scala.
> > Would you recommend simply using the java API from scala or
> > https://github.com/spotify/scio?
> >
> > Are there any plans to support beam in
> https://github.com/hortonworks/streamline?
> >
> > regards,
> > Georg
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: beam + scala + streamline

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Georg,

You can use Java API via Scala, or you can use the Scio Scala DSL (this DSL use 
the Beam Java SDK).

For Streamline, can you explain a bit ? Streamline contains different parts: 
HBase, Kafka, the web frontend, ...

Using provided IO, it should be possible to store the data and use streamline on 
top of this data for analytics.

Regards
JB

On 04/12/2017 07:57 PM, Georg Heiler wrote:
> Hi,
> new to beam I wonder what API is recommended for using beam from scala.
> Would you recommend simply using the java API from scala or
> https://github.com/spotify/scio?
>
> Are there any plans to support beam in https://github.com/hortonworks/streamline?
>
> regards,
> Georg

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com