<?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: Unable to log storm audit events to hdfs (sandbox kerberized) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187775#M75941</link>
    <description>&lt;P&gt;Please see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html"&gt;this doc&lt;/A&gt; - &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html&lt;/A&gt; - which mentions the below....&lt;/P&gt;&lt;BLOCKQUOTE&gt;For Storm, link to &lt;CODE&gt;/etc/hadoop/conf/core-site.xml&lt;/CODE&gt; under &lt;CODE&gt;/usr/hdp/&amp;lt;version&amp;gt;/storm/extlib-daemon/ranger-storm-plugin-impl/conf&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 07:51:34 GMT</pubDate>
    <dc:creator>vperiasamy</dc:creator>
    <dc:date>2018-03-16T07:51:34Z</dc:date>
    <item>
      <title>Unable to log storm audit events to hdfs (sandbox kerberized)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187774#M75940</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;Product: Hortonworks Data Platform 2.6.3 Sandbox&lt;/P&gt;&lt;P&gt;I am having trouble logging storm events to hdfs when I enable ranger auditing for storm. I enabled kerberos with ambari, since it is noted in document that kerberos is required to install ranger storm-plugin. I kerberized the cluster, enabled storm plugin, and installed a storm policy like the one in attachment. Then I started and killed the storm topology with these commands:&lt;/P&gt;&lt;P&gt;- storm jar storm-starter-0.0.1-storm-0.9.0.1.jar storm.starter.WordCountTopology WordCount -c storm.starter.WordCountTopology WordCount &lt;/P&gt;&lt;P&gt;- storm kill WordCount&lt;/P&gt;&lt;P&gt;However, I don't see the log files in hdfs /ranger/audit/storm. (I can't view it directly from ranger UI because of an solr error, but that's another issue). In nimbus.log, I see this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2018-03-08 18:01:01.037 o.a.r.a.p.BaseAuditHandler [ERROR] Error writing to log file.&lt;BR /&gt;org.apache.hadoop.ipc.RemoteException: User: nimbus/sandbox-hdp.hortonworks.com@HORTONWORKS.COM is not allowed to impersonate storm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1554) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at org.apache.hadoop.ipc.Client.call(Client.java:1498) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at org.apache.hadoop.ipc.Client.call(Client.java:1398) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at com.sun.proxy.$Proxy54.getFileInfo(Unknown Source) ~[?:?]&lt;BR /&gt;  at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:823) ~[?:?]&lt;BR /&gt;  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]&lt;BR /&gt;  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]&lt;BR /&gt;  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]&lt;BR /&gt;  at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]&lt;BR /&gt;  at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:291) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:203) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;BR /&gt;  at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:185) ~[hadoop-common-2.7.3.2.6.3.0-235.jar:?]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I thought it was mapping issue between kerberos principal and linux user, so I added &lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;RULE:[2:$1@$0](nimbus@HORTONWORKS.COM)s/.*/storm/&lt;/STRONG&gt;" to hadoop.security.auth_to_local and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;  &amp;lt;name&amp;gt;hadoop.proxyuser.storm.group&amp;lt;/name&amp;gt;&lt;BR /&gt;  &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;BR /&gt;  &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  &amp;lt;property&amp;gt;&lt;BR /&gt;  &amp;lt;name&amp;gt;hadoop.proxyuser.storm.hosts&amp;lt;/name&amp;gt;&lt;BR /&gt;  &amp;lt;value&amp;gt;sandbox-hdp.hortonworks.com&amp;lt;/value&amp;gt;&lt;BR /&gt;  &amp;lt;/property&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to core-site.xml. But nothing is logged. &lt;/P&gt;&lt;P&gt;Any help or advice is appreciated. Thanks in advance. &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64624-screen-shot-2018-03-15-at-123533-pm-2.png"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 07:02:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187774#M75940</guid>
      <dc:creator>timhywang</dc:creator>
      <dc:date>2018-03-16T07:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log storm audit events to hdfs (sandbox kerberized)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187775#M75941</link>
      <description>&lt;P&gt;Please see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html"&gt;this doc&lt;/A&gt; - &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/manually_updating_ambari_hdfs_audit_settings.html&lt;/A&gt; - which mentions the below....&lt;/P&gt;&lt;BLOCKQUOTE&gt;For Storm, link to &lt;CODE&gt;/etc/hadoop/conf/core-site.xml&lt;/CODE&gt; under &lt;CODE&gt;/usr/hdp/&amp;lt;version&amp;gt;/storm/extlib-daemon/ranger-storm-plugin-impl/conf&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 07:51:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187775#M75941</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-03-16T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log storm audit events to hdfs (sandbox kerberized)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187776#M75942</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy&lt;/A&gt; Thank you very much for your response. &lt;/P&gt;&lt;P&gt;I already see a core-site.xml file in that directory. &lt;/P&gt;&lt;P&gt;I moved it out and linked /etc/hadoop/conf/core-site.xml as described in the doc. &lt;/P&gt;&lt;P&gt;Restarted hdfs, ranger, and storm, but I still see the same error. &lt;/P&gt;&lt;P&gt;Is there any else I could've missed?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 01:40:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187776#M75942</guid>
      <dc:creator>timhywang</dc:creator>
      <dc:date>2018-03-17T01:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log storm audit events to hdfs (sandbox kerberized)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187777#M75943</link>
      <description>&lt;P&gt;Looks like is &lt;STRONG&gt;&lt;A href="mailto:nimbus/sandbox-hdp.hortonworks.com@HORTONWORKS.COM"&gt;nimbus/sandbox-hdp.hortonworks.com@HORTONWORKS.COM&lt;/A&gt; &lt;/STRONG&gt;not getting translated into storm. You need to investigate why. Can you check your jaas config and auth to local rules again? Also the core-site.xml property should be hadoop.proxyuser.&amp;lt;component&amp;gt;.groups. Check for the typo, seems like "s" is missing in your config. &lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 03:40:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187777#M75943</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-03-17T03:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log storm audit events to hdfs (sandbox kerberized)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187778#M75944</link>
      <description>&lt;P&gt;Turns out the typo was the problem. &lt;/P&gt;&lt;P&gt;That's just so silly....&lt;/P&gt;&lt;P&gt;@vperiasamy thank you so much. &lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 05:06:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-log-storm-audit-events-to-hdfs-sandbox-kerberized/m-p/187778#M75944</guid>
      <dc:creator>timhywang</dc:creator>
      <dc:date>2018-03-17T05:06:13Z</dc:date>
    </item>
  </channel>
</rss>

