Created on 11-22-2019 04:15 PM - last edited on 11-22-2019 07:00 PM by ask_bill_brooks
Installed CFM (Nifi) on Cloudera 6.2 using parcels. I see default 512 M being allocated for Heap size and want to increase it. I did not see nifi.properties file where I could do the same...
Any guidance would be appreciated..
Created 12-04-2019 07:34 AM
@GKrishan
You want to be very careful when setting safety valve in CM to override existing default property values in NiFi files.
@wengelbrecht screenshot shows creating a safety valve that would override "java.arg.2" in the NiFi bootstrap.conf file with a new value of "Xmx1024m". The problem here is that "java.arg.2" is used to set Xms while "java.arg.3" is used to set Xmx. So you would end up with two properties defining Xmx and missing the property for Xms.
Here is an example setting override safety valves in CM for both Xms and Xmx:
Hope this helps,
Matt
Created 11-26-2019 04:09 AM
In CM, the bootstrap file is auto generated when you start NiFi, so it is not really something you can edit.
However you can set the same parameters through name=value pairs as Java args in CM:
Created 12-04-2019 07:34 AM
@GKrishan
You want to be very careful when setting safety valve in CM to override existing default property values in NiFi files.
@wengelbrecht screenshot shows creating a safety valve that would override "java.arg.2" in the NiFi bootstrap.conf file with a new value of "Xmx1024m". The problem here is that "java.arg.2" is used to set Xms while "java.arg.3" is used to set Xmx. So you would end up with two properties defining Xmx and missing the property for Xms.
Here is an example setting override safety valves in CM for both Xms and Xmx:
Hope this helps,
Matt
Created 12-16-2019 02:24 PM
Thanks for helping out .. It worked.
Created on 03-28-2024 02:32 AM - edited 03-28-2024 02:33 AM
Can we set these properties from kubernetes config yaml?