<?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: Kafka audit Logs stored in HDFS in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277785#M207677</link>
    <description>&lt;P&gt;Hi, this is what i did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In Ambari, select&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kafka→ Configs→ Advanced ranger-kafka-audit and add the dfs destination dir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if you have NameNode HA, you need to add to each kafka broker the hdfs-site.xml that has the nameservice property, so the audit logs should always hit the active namenode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example if you have defined the&amp;nbsp;fs.defaultFS=nameservice you will add something like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="form-group control-label-span col-md-3"&gt;&lt;SPAN class="ember-view"&gt;xasecure.audit.destination.hdfs.dir=hdfs://nameservice/ranger/audit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="col-md-9"&gt;Then restart the brokers.&lt;/DIV&gt;&lt;DIV class="col-md-9"&gt;Hope it helps&lt;/DIV&gt;&lt;DIV class="col-md-9"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Sep 2019 08:32:59 GMT</pubDate>
    <dc:creator>psilvarochagome</dc:creator>
    <dc:date>2019-09-19T08:32:59Z</dc:date>
    <item>
      <title>Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237661#M199474</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a scenario with a Hadoop cluster installed with HDP2.6.5 and a Kafka cluster installed with HDF 3.3.0 with Ranger Service configured.&lt;/P&gt;&lt;P&gt;I want to store the Ranger Audit logs in HDFS so I setup in kafka the property &lt;STRONG&gt;xasecure.audit.destination.hdfs.dir &lt;/STRONG&gt;pointing to the HDFS directory.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case one: &lt;/STRONG&gt;when using the namenode in the URI the logs are stored in HDFS successfully (&lt;STRONG&gt;xasecure.audit.destination.hdfs.dir=&lt;/STRONG&gt;hdfs://namenode_FQDN&amp;gt;:8020/ranger/audit)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case two: &lt;/STRONG&gt;Using a haproxy, since i have namenode HA enabled and want to point always to the active NN, i get the following error&lt;/P&gt;&lt;PRE&gt;2019-04-02 12:00:13,841 ERROR [kafka.async.summary.multi_dest.batch_kafka.async.summary.multi_dest.batch.hdfs_destWriter] org.apache.ranger.audit.provider.BaseAuditHandler (BaseAuditHandler.java:329) - Error writing to log file.
java.io.IOException: DestHost:destPort &amp;lt;ha_proxy_hostname&amp;gt;:8085 , LocalHost:localPort &amp;lt;kafka_broker_hostname&amp;gt;/10.212.164.50:0. Failed on local exception: java.io.IOException: org.apache.hadoop.ipc.RpcException: RPC response exceeds maximum data length&lt;/PRE&gt;&lt;P&gt;Is there any extra config to be set?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 19:41:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237661#M199474</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-04-02T19:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237662#M199475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please share hdf instalaltion document. I want to install HDF installation on my personal computer.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 23:42:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237662#M199475</guid>
      <dc:creator>gadibalaji</dc:creator>
      <dc:date>2019-04-03T23:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237663#M199476</link>
      <description>&lt;P&gt;Anyone can help on this topic?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:20:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237663#M199476</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-04-09T14:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237664#M199477</link>
      <description>&lt;P&gt;I followed the steps in this link &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.2.0/installing-hdf/content/install-ambari.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.2.0/installing-hdf/content/install-ambari.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:22:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237664#M199477</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-04-09T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237665#M199478</link>
      <description>&lt;P&gt;Found how to proceed and now i can store the logs in HDFS&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 19:57:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/237665#M199478</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-04-26T19:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277470#M207569</link>
      <description>&lt;P&gt;Could you please share how did you proceed ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 08:44:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277470#M207569</guid>
      <dc:creator>slim_abderrahim</dc:creator>
      <dc:date>2019-09-17T08:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277559#M207610</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28917"&gt;@psilvarochagome&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In this community, we share knowledge to advance the Cloudera community and don't get cash for that!&amp;nbsp; though some are real production issues, having said that it's unfortunate people like you got a solution to a problem being faced by a member and don't want to share as requested&amp;nbsp; by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/36591"&gt;@slim_abderrahim&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very unfortunate&amp;nbsp; I hope member see this and tag you ... .........we&amp;nbsp;&lt;STRONG&gt;open&lt;/STRONG&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;source&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;as opposed to &lt;STRONG&gt;proprietary code.&lt;/STRONG&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Happy hadooping&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 21:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277559#M207610</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-09-17T21:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277784#M207676</link>
      <description>&lt;P&gt;Actually i didn't share because i didn't get the notification about this message. Obviously will do it.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Paula&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 08:18:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277784#M207676</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-09-19T08:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277785#M207677</link>
      <description>&lt;P&gt;Hi, this is what i did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In Ambari, select&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kafka→ Configs→ Advanced ranger-kafka-audit and add the dfs destination dir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if you have NameNode HA, you need to add to each kafka broker the hdfs-site.xml that has the nameservice property, so the audit logs should always hit the active namenode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example if you have defined the&amp;nbsp;fs.defaultFS=nameservice you will add something like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="form-group control-label-span col-md-3"&gt;&lt;SPAN class="ember-view"&gt;xasecure.audit.destination.hdfs.dir=hdfs://nameservice/ranger/audit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="col-md-9"&gt;Then restart the brokers.&lt;/DIV&gt;&lt;DIV class="col-md-9"&gt;Hope it helps&lt;/DIV&gt;&lt;DIV class="col-md-9"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2019 08:32:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277785#M207677</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-09-19T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277789#M207678</link>
      <description>&lt;P&gt;Sorry, forgot to add the port&lt;/P&gt;&lt;P&gt;the correct way will be&lt;/P&gt;&lt;P&gt;hdfs://nameservice:8020/ranger/audit&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 08:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/277789#M207678</guid>
      <dc:creator>psilvarochagome</dc:creator>
      <dc:date>2019-09-19T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka audit Logs stored in HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/278828#M208265</link>
      <description>&lt;P&gt;It works only if it's the same KDC, need cross trust (realm) in my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps : I didn't got the notification too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:01:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kafka-audit-Logs-stored-in-HDFS/m-p/278828#M208265</guid>
      <dc:creator>slim_abderrahim</dc:creator>
      <dc:date>2019-10-04T12:01:27Z</dc:date>
    </item>
  </channel>
</rss>

