Re: Setting JAVA Serializer to be used at App Level.

2017-02-07 Thread Munagala Ramanath
There is some discussion of Kryo serializer issues at:
http://docs.datatorrent.com/troubleshooting/
under the heading "Application throwing following Kryo exception."

Ram

On Tue, Feb 7, 2017 at 12:22 AM, Ambarish Pande <
ambarish.pande2...@gmail.com> wrote:

> I understand that it affects performance, but for now the library that I
> am trying to use has some issues with Kryo. So I have no choice but to use
> Java Serializer for serializing objects of that library.
>
> Okay, I can use this too. Currently I am using FieldSerializer annotation.
>
> I'll keep in mind to post such questions on users@apex.
>
> Thank You.
>
>
> On Tue, Feb 7, 2017 at 1:40 AM, Vlad Rozov 
> wrote:
>
>> Kryo allows to delegate serialization to Java. Add
>> "@DefaultSerializer(JavaSerializer.class)" to a tuple class definition.
>> As Santosh already mentioned, using Java serializer is not recommended as
>> it affect performance.
>>
>> I would recommend in the future to post similar questions on the
>> user@apex. dev@apex is used to discuss development of the platform and
>> the library.
>>
>> Thank you,
>>
>> Vlad
>>
>> *Join us at Apex Big Data World-San Jose
>> , April 4, 2017*
>> [image: http://www.apexbigdata.com/san-jose-register.html]
>> 
>> On 2/5/17 22:34, Ambarish Pande wrote:
>>
>> This is exactly what i wanted.
>> Thank You.
>>
>> On Mon, Feb 6, 2017 at 11:35 AM, Hitesh Kapoor  
>> 
>> wrote:
>>
>>
>> Hi Ambarish,
>>
>> Yes you can plug in your own serializer. You will have to set the
>> "STREAM_CODEC" port attribute to achieve the same.
>> You can refer xmlParserApplication from examples repo 
>> (https://github.com/DataTorrent/examples).
>>
>> Regards,
>> Hitesh
>>
>>
>> On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande 
>>  wrote:
>>
>>
>> Hello,
>>
>> Is there a way to set up JAVA Serializer as the default serializer to be
>> used for a particular application. Currently, Kryo is the default
>> serializer and the library that I am using has compatibility issues with
>> Kryo.
>>
>> Thank You.
>>
>>
>>
>>
>


Re: Setting JAVA Serializer to be used at App Level.

2017-02-07 Thread Ambarish Pande
I understand that it affects performance, but for now the library that I am
trying to use has some issues with Kryo. So I have no choice but to use
Java Serializer for serializing objects of that library.

Okay, I can use this too. Currently I am using FieldSerializer annotation.

I'll keep in mind to post such questions on users@apex.

Thank You.


On Tue, Feb 7, 2017 at 1:40 AM, Vlad Rozov  wrote:

> Kryo allows to delegate serialization to Java. Add 
> "@DefaultSerializer(JavaSerializer.class)"
> to a tuple class definition. As Santosh already mentioned, using Java
> serializer is not recommended as it affect performance.
>
> I would recommend in the future to post similar questions on the user@apex.
> dev@apex is used to discuss development of the platform and the library.
>
> Thank you,
>
> Vlad
>
> *Join us at Apex Big Data World-San Jose
> , April 4, 2017*
> [image: http://www.apexbigdata.com/san-jose-register.html]
> 
> On 2/5/17 22:34, Ambarish Pande wrote:
>
> This is exactly what i wanted.
> Thank You.
>
> On Mon, Feb 6, 2017 at 11:35 AM, Hitesh Kapoor  
> 
> wrote:
>
>
> Hi Ambarish,
>
> Yes you can plug in your own serializer. You will have to set the
> "STREAM_CODEC" port attribute to achieve the same.
> You can refer xmlParserApplication from examples repo 
> (https://github.com/DataTorrent/examples).
>
> Regards,
> Hitesh
>
>
> On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande 
>  wrote:
>
>
> Hello,
>
> Is there a way to set up JAVA Serializer as the default serializer to be
> used for a particular application. Currently, Kryo is the default
> serializer and the library that I am using has compatibility issues with
> Kryo.
>
> Thank You.
>
>
>
>


Re: Setting JAVA Serializer to be used at App Level.

2017-02-06 Thread Vlad Rozov
Kryo allows to delegate serialization to Java. Add 
"@DefaultSerializer(JavaSerializer.class)" to a tuple class definition. 
As Santosh already mentioned, using Java serializer is not recommended 
as it affect performance.


I would recommend in the future to post similar questions on the 
user@apex. dev@apex is used to discuss development of the platform and 
the library.


Thank you,

Vlad

/Join us at Apex Big Data World-San Jose 
, April 4, 2017/
http://www.apexbigdata.com/san-jose-register.html 


On 2/5/17 22:34, Ambarish Pande wrote:

This is exactly what i wanted.
Thank You.

On Mon, Feb 6, 2017 at 11:35 AM, Hitesh Kapoor 
wrote:


Hi Ambarish,

Yes you can plug in your own serializer. You will have to set the
"STREAM_CODEC" port attribute to achieve the same.
You can refer xmlParserApplication from examples repo (
https://github.com/DataTorrent/examples).

Regards,
Hitesh


On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande <
ambarish.pande2...@gmail.com> wrote:


Hello,

Is there a way to set up JAVA Serializer as the default serializer to be
used for a particular application. Currently, Kryo is the default
serializer and the library that I am using has compatibility issues with
Kryo.

Thank You.





Re: Setting JAVA Serializer to be used at App Level.

2017-02-05 Thread Ambarish Pande
This is exactly what i wanted.
Thank You.

On Mon, Feb 6, 2017 at 11:35 AM, Hitesh Kapoor 
wrote:

> Hi Ambarish,
>
> Yes you can plug in your own serializer. You will have to set the
> "STREAM_CODEC" port attribute to achieve the same.
> You can refer xmlParserApplication from examples repo (
> https://github.com/DataTorrent/examples).
>
> Regards,
> Hitesh
>
>
> On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande <
> ambarish.pande2...@gmail.com> wrote:
>
> > Hello,
> >
> > Is there a way to set up JAVA Serializer as the default serializer to be
> > used for a particular application. Currently, Kryo is the default
> > serializer and the library that I am using has compatibility issues with
> > Kryo.
> >
> > Thank You.
> >
>


Re: Setting JAVA Serializer to be used at App Level.

2017-02-05 Thread Sandesh Hegde
Java serializer comes with a big performance cost, so it is better to
reduce it's usage.
Can you please give more detail about your use case?

On Sun, Feb 5, 2017 at 10:05 PM Hitesh Kapoor 
wrote:

Hi Ambarish,

Yes you can plug in your own serializer. You will have to set the
"STREAM_CODEC" port attribute to achieve the same.
You can refer xmlParserApplication from examples repo (
https://github.com/DataTorrent/examples).

Regards,
Hitesh


On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande <
ambarish.pande2...@gmail.com> wrote:

> Hello,
>
> Is there a way to set up JAVA Serializer as the default serializer to be
> used for a particular application. Currently, Kryo is the default
> serializer and the library that I am using has compatibility issues with
> Kryo.
>
> Thank You.
>


Re: Setting JAVA Serializer to be used at App Level.

2017-02-05 Thread Hitesh Kapoor
Hi Ambarish,

Yes you can plug in your own serializer. You will have to set the
"STREAM_CODEC" port attribute to achieve the same.
You can refer xmlParserApplication from examples repo (
https://github.com/DataTorrent/examples).

Regards,
Hitesh


On Mon, Feb 6, 2017 at 11:07 AM, Ambarish Pande <
ambarish.pande2...@gmail.com> wrote:

> Hello,
>
> Is there a way to set up JAVA Serializer as the default serializer to be
> used for a particular application. Currently, Kryo is the default
> serializer and the library that I am using has compatibility issues with
> Kryo.
>
> Thank You.
>


Setting JAVA Serializer to be used at App Level.

2017-02-05 Thread Ambarish Pande
Hello,

Is there a way to set up JAVA Serializer as the default serializer to be
used for a particular application. Currently, Kryo is the default
serializer and the library that I am using has compatibility issues with
Kryo.

Thank You.