<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NIFI flow.xml.gz is getting cleared out during NIFI restart in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301788#M220847</link>
    <description>&lt;P&gt;figured out the issue, related to jira &lt;A href="https://issues.apache.org/jira/browse/NIFI-6999" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-6999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flow.xml.gz is 963 mb, where toolkit mem isn't enough to restart from ambari GUI. hence started through CLI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;restarted the nifi from CLI rather than AMBARI , came up&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flow.xml.gz file size is 963MB&lt;/P&gt;&lt;P&gt;instance : 120GB memory&lt;/P&gt;&lt;P&gt;NIFI allocated mem: 45GB&lt;/P&gt;&lt;P&gt;toolkit&amp;nbsp; 15GB mem&lt;/P&gt;&lt;P&gt;error: from ambari agent logs&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:020/08/21 19:01:30 ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="error"&gt;[main]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;org.apache.nifi.toolkit.encryptconfig.EncryptConfigMain:&lt;BR /&gt;java.lang.OutOfMemoryError: Requested array size exceeds VM limit&lt;BR /&gt;at java.lang.StringCoding.encode(StringCoding.java:350)&lt;BR /&gt;at java.lang.String.getBytes(String.java:941)&lt;BR /&gt;at org.apache.commons.io.IOUtils.write(IOUtils.java:2025)&lt;BR /&gt;at org.apache.commons.io.IOUtils$write$0.call(Unknown Source)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)&lt;BR /&gt;at org.apache.nifi.properties.ConfigEncryptionTool$_writeFlowXmlToFile_closure6$_closure30.doCall(ConfigEncryptionTool.groovy:870)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)&lt;BR /&gt;at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)&lt;BR /&gt;at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)&lt;BR /&gt;at groovy.lang.Closure.call(Closure.java:414)&lt;BR /&gt;at groovy.lang.Closure.call(Closure.java:430)&lt;BR /&gt;at org.codehaus.groovy.runtime.IOGroovyMethods.withCloseable(IOGroovyMethods.java:1622)&lt;BR /&gt;at org.codehaus.groovy.runtime.NioGroovyMethods.withCloseable(NioGroovyMethods.java:1759)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:54)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:56)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)&lt;BR /&gt;at org.apache.nifi.properties.ConfigEncryptionTool$_writeFlowXmlToFile_closure6.doCall(ConfigEncryptionTool.groovy:869)&lt;BR /&gt;Requested array size exceeds VM limit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Aug 2020 03:31:54 GMT</pubDate>
    <dc:creator>venkii</dc:creator>
    <dc:date>2020-08-22T03:31:54Z</dc:date>
    <item>
      <title>NIFI flow.xml.gz is getting cleared out during NIFI restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301782#M220844</link>
      <description>&lt;P&gt;NIFI flow.xml.gz is getting cleared out during NIFI restart&lt;BR /&gt;&lt;BR /&gt;HDF 3.4&lt;/P&gt;&lt;P&gt;NIFI 1.9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no configs have been changes but when restarted the existing flwo.xml.gz of size 70MB is getting overwritten. though restored from a backup and placed back in, again after restarting it's getting cleared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; please advice&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:37:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301782#M220844</guid>
      <dc:creator>venkii</dc:creator>
      <dc:date>2020-08-21T21:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI flow.xml.gz is getting cleared out during NIFI restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301783#M220845</link>
      <description>&lt;P&gt;here is the error message&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/hdf/current/nifi-toolkit/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /grid/var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -l /usr/hdf/current/nifi/conf/login-identity-providers.xml -a /usr/hdf/current/nifi/conf/authorizers.xml -m -e '[PROTECTED]' -p '[PROTECTED]'' returned 255. 2020/08/21 09:07:10 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of nifi.properties&lt;BR /&gt;2020/08/21 09:07:10 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source nifi.properties and destination nifi.properties are identical [/usr/hdf/current/nifi/conf/nifi.properties] so the original will be overwritten&lt;BR /&gt;2020/08/21 09:07:10 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of login-identity-providers.xml&lt;BR /&gt;2020/08/21 09:07:10 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source login-identity-providers.xml and destination login-identity-providers.xml are identical [/usr/hdf/current/nifi/conf/login-identity-providers.xml] so the original will be overwritten&lt;BR /&gt;2020/08/21 09:07:10 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of authorizers.xml&lt;BR /&gt;2020/08/21 09:07:10 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source authorizers.xml and destination authorizers.xml are identical [/usr/hdf/current/nifi/conf/authorizers.xml] so the original will be overwritten&lt;BR /&gt;2020/08/21 09:07:10 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of flow.xml.gz&lt;BR /&gt;2020/08/21 09:07:10 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source flow.xml.gz and destination flow.xml.gz are identical [/grid/var/lib/nifi/conf/flow.xml.gz] so the original will be overwritten&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 22:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301783#M220845</guid>
      <dc:creator>venkii</dc:creator>
      <dc:date>2020-08-21T22:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI flow.xml.gz is getting cleared out during NIFI restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301787#M220846</link>
      <description>&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 304, in &amp;lt;module&amp;gt;
    Master().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 143, in start
    self.configure(env, is_starting = True)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 111, in configure
    self.write_configurations(params, is_starting)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 247, in write_configurations
    support_encrypt_authorizers=params.stack_support_encrypt_authorizers
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi_toolkit_util_common.py", line 574, in encrypt_sensitive_properties
    Execute(encrypt_config_command, user=nifi_user, logoutput=False, environment=environment)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/hdf/current/nifi-toolkit/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /grid/var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -l /usr/hdf/current/nifi/conf/login-identity-providers.xml -a /usr/hdf/current/nifi/conf/authorizers.xml -m -e '[PROTECTED]' -p '[PROTECTED]'' returned 255. 2020/08/21 18:00:37 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of nifi.properties
2020/08/21 18:00:37 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source nifi.properties and destination nifi.properties are identical [/usr/hdf/current/nifi/conf/nifi.properties] so the original will be overwritten
2020/08/21 18:00:37 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of login-identity-providers.xml
2020/08/21 18:00:37 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source login-identity-providers.xml and destination login-identity-providers.xml are identical [/usr/hdf/current/nifi/conf/login-identity-providers.xml] so the original will be overwritten
2020/08/21 18:00:37 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of authorizers.xml
2020/08/21 18:00:37 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source authorizers.xml and destination authorizers.xml are identical [/usr/hdf/current/nifi/conf/authorizers.xml] so the original will be overwritten
2020/08/21 18:00:37 INFO [main] org.apache.nifi.properties.ConfigEncryptionTool: Handling encryption of flow.xml.gz
2020/08/21 18:00:37 WARN [main] org.apache.nifi.properties.ConfigEncryptionTool: The source flow.xml.gz and destination flow.xml.gz are identical [/grid/var/lib/nifi/conf/flow.xml.gz] so the original will be overwritten&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Aug 2020 01:02:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301787#M220846</guid>
      <dc:creator>venkii</dc:creator>
      <dc:date>2020-08-22T01:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI flow.xml.gz is getting cleared out during NIFI restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301788#M220847</link>
      <description>&lt;P&gt;figured out the issue, related to jira &lt;A href="https://issues.apache.org/jira/browse/NIFI-6999" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-6999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flow.xml.gz is 963 mb, where toolkit mem isn't enough to restart from ambari GUI. hence started through CLI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;restarted the nifi from CLI rather than AMBARI , came up&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flow.xml.gz file size is 963MB&lt;/P&gt;&lt;P&gt;instance : 120GB memory&lt;/P&gt;&lt;P&gt;NIFI allocated mem: 45GB&lt;/P&gt;&lt;P&gt;toolkit&amp;nbsp; 15GB mem&lt;/P&gt;&lt;P&gt;error: from ambari agent logs&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:020/08/21 19:01:30 ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="error"&gt;[main]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;org.apache.nifi.toolkit.encryptconfig.EncryptConfigMain:&lt;BR /&gt;java.lang.OutOfMemoryError: Requested array size exceeds VM limit&lt;BR /&gt;at java.lang.StringCoding.encode(StringCoding.java:350)&lt;BR /&gt;at java.lang.String.getBytes(String.java:941)&lt;BR /&gt;at org.apache.commons.io.IOUtils.write(IOUtils.java:2025)&lt;BR /&gt;at org.apache.commons.io.IOUtils$write$0.call(Unknown Source)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)&lt;BR /&gt;at org.apache.nifi.properties.ConfigEncryptionTool$_writeFlowXmlToFile_closure6$_closure30.doCall(ConfigEncryptionTool.groovy:870)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)&lt;BR /&gt;at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)&lt;BR /&gt;at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)&lt;BR /&gt;at groovy.lang.Closure.call(Closure.java:414)&lt;BR /&gt;at groovy.lang.Closure.call(Closure.java:430)&lt;BR /&gt;at org.codehaus.groovy.runtime.IOGroovyMethods.withCloseable(IOGroovyMethods.java:1622)&lt;BR /&gt;at org.codehaus.groovy.runtime.NioGroovyMethods.withCloseable(NioGroovyMethods.java:1759)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:54)&lt;BR /&gt;at org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:56)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)&lt;BR /&gt;at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)&lt;BR /&gt;at org.apache.nifi.properties.ConfigEncryptionTool$_writeFlowXmlToFile_closure6.doCall(ConfigEncryptionTool.groovy:869)&lt;BR /&gt;Requested array size exceeds VM limit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 03:31:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-flow-xml-gz-is-getting-cleared-out-during-NIFI-restart/m-p/301788#M220847</guid>
      <dc:creator>venkii</dc:creator>
      <dc:date>2020-08-22T03:31:54Z</dc:date>
    </item>
  </channel>
</rss>

