[
https://issues.apache.org/jira/browse/NIFI-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15996828#comment-15996828
]
ASF GitHub Bot commented on NIFI-3716:
--------------------------------------
Github user josephxsxn commented on the issue:
https://github.com/apache/nifi/pull/1747
I went and built this, you have alot of checkstyle issues -
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:2.15:check (check-style) on
project nifi-toolkit-flowanalyzer: **You have 187 Checkstyle violations**. ->
[Help 1]
Mostly just white spaces, but you may wanna try building with:
```
mvn -Pcontrib-check clean install
```
That said I did built and run the tool. While it builds I am getting an
error against an flowfile.
```
/usr/jdk64/jdk1.8.0_60/bin/java -cp
./nifi-toolkit-flowanalyzer-1.2.0-SNAPSHOT.jar
org.apache.nifi.toolkit.flowanalyzer.FlowAnalyzerDriver
/usr/hdf/nifi/conf/flow.xml.gz
Using flowfile=/usr/hdf/nifi/conf/flow.xml.gz
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact
representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1690)
at
org.apache.nifi.toolkit.flowanalyzer.FlowAnalyzerDriver.main(FlowAnalyzerDriver.java:85)
Exception Occured while attempting to parse Flowfile.xml. Cause: null
```
Maybe rounding UP would be ok>?
http://stackoverflow.com/questions/4591206/arithmeticexception-non-terminating-decimal-expansion-no-exact-representable
> Utility to calculate MAX storage required for BackPressure on a Node
> --------------------------------------------------------------------
>
> Key: NIFI-3716
> URL: https://issues.apache.org/jira/browse/NIFI-3716
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Joseph Niemiec
> Assignee: Eric Ulicny
> Priority: Trivial
>
> Today there is no way to understand the max amount of data which can be
> stored in backpressure for a given flow. Personally have had users configure
> queues with impossible backpressure amounts that would definitely fill the
> disk, having an operational tool to understand if anyone has done something
> so dramatic would be helpful.
> I see this produce a report by analyzing the FlowFile.xml.gz.
> * Total Storage for all queues Backpressure
> * Average Storage of all queues Backpressure
> * Min and Max of all queues Backpressure over the entire flow.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)