CodeAnalysisMode in Flink

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

CodeAnalysisMode in Flink

Vinay Patil
Hi,

According to JavaDoc if I use the below method
env.getConfig().setCodeAnalysisMode(CodeAnalysisMode.HINT);

,it will print the program improvements to log, however these details are not getting printed to log, I have kept the log4j in resources folder and kept the log level to ALL.

 I want to analyse my pipeline to get rid of common mistakes.


Regards,
Vinay Patil
Reply | Threaded
Open this post in threaded view
|

Re: CodeAnalysisMode in Flink

Fabian Hueske-2
Hi Vinay,

not sure why it's not working, but maybe TImo (in CC) can help.

Best, Fabian

2016-11-18 17:41 GMT+01:00 Vinay Patil <[hidden email]>:
Hi,

According to JavaDoc if I use the below method
env.getConfig().setCodeAnalysisMode(CodeAnalysisMode.HINT);

,it will print the program improvements to log, however these details are not getting printed to log, I have kept the log4j in resources folder and kept the log level to ALL.

 I want to analyse my pipeline to get rid of common mistakes.


Regards,
Vinay Patil

Reply | Threaded
Open this post in threaded view
|

Re: CodeAnalysisMode in Flink

Vinay Patil
Hi,

Any updates on this thread ? 

Regards,
Vinay Patil

On Fri, Nov 18, 2016 at 10:25 PM, Fabian Hueske-2 [via Apache Flink User Mailing List archive.] <[hidden email]> wrote:
Hi Vinay,

not sure why it's not working, but maybe TImo (in CC) can help.

Best, Fabian

2016-11-18 17:41 GMT+01:00 Vinay Patil <[hidden email]>:
Hi,

According to JavaDoc if I use the below method
env.getConfig().setCodeAnalysisMode(CodeAnalysisMode.HINT);

,it will print the program improvements to log, however these details are not getting printed to log, I have kept the log4j in resources folder and kept the log level to ALL.

 I want to analyse my pipeline to get rid of common mistakes.


Regards,
Vinay Patil




If you reply to this email, your message will be added to the discussion below:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/CodeAnalysisMode-in-Flink-tp10212p10215.html
To start a new topic under Apache Flink User Mailing List archive., email [hidden email]
To unsubscribe from Apache Flink User Mailing List archive., click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: CodeAnalysisMode in Flink

Fabian Hueske-2
Hi Vinay,

I had a look into the code. The code analysis is only performed for DataSet (batch) programs and not for DataStream (streaming) programs.
If your program is a DataStream program, this would explain why no information is shown.

The DataStream API does also not leverage semantic function annotations (yet).
So analyzing and annotating functions that you use in a streaming program does not give any benefits at the moment.

In case you analyzing a batch DataSet program, we would need to dig a bit deeper to identify the problem.

Best, Fabian

2016-12-20 23:21 GMT+01:00 vinay patil <[hidden email]>:
Hi,

Any updates on this thread ? 

Regards,
Vinay Patil

On Fri, Nov 18, 2016 at 10:25 PM, Fabian Hueske-2 [via Apache Flink User Mailing List archive.] <[hidden email]> wrote:
Hi Vinay,

not sure why it's not working, but maybe TImo (in CC) can help.

Best, Fabian

2016-11-18 17:41 GMT+01:00 Vinay Patil <[hidden email]>:
Hi,

According to JavaDoc if I use the below method
env.getConfig().setCodeAnalysisMode(CodeAnalysisMode.HINT);

,it will print the program improvements to log, however these details are not getting printed to log, I have kept the log4j in resources folder and kept the log level to ALL.

 I want to analyse my pipeline to get rid of common mistakes.


Regards,
Vinay Patil




If you reply to this email, your message will be added to the discussion below:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/CodeAnalysisMode-in-Flink-tp10212p10215.html
To start a new topic under Apache Flink User Mailing List archive., email [hidden email]
To unsubscribe from Apache Flink User Mailing List archive., click here.
NAML



View this message in context: Re: CodeAnalysisMode in Flink
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.