<?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: Ranger cannot record Knox audit log to hdfs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116055#M33975</link>
    <description>&lt;P&gt;Is 'testcluster' the name of the topology file that you've configured via Knox?&lt;/P&gt;&lt;P&gt;You should have a file named 'testcluster.xml' under conf/topologies&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 01:23:29 GMT</pubDate>
    <dc:creator>zblanco</dc:creator>
    <dc:date>2016-07-07T01:23:29Z</dc:date>
    <item>
      <title>Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116051#M33971</link>
      <description>&lt;P&gt;Hello, I would like to ask a question.&lt;/P&gt;&lt;P&gt;I integrated Ranger + Knox + LDAP on my test cluster. &lt;/P&gt;&lt;P&gt;Ranger could records the audit logs into HDFS except the audit log of Knox. &lt;/P&gt;&lt;P&gt;It doesn't have any user or group synchronize problem with LDAP on my cluster. &lt;/P&gt;&lt;P&gt;Let me list up those component version of my cluster:&lt;/P&gt;&lt;P&gt;
Ambari 2.2.1 &lt;/P&gt;&lt;P&gt;HDP 2.4.2.0 &lt;/P&gt;&lt;P&gt;Ranger: 0.5.0.2.4 &lt;/P&gt;&lt;P&gt;Knox: 0.6.0.2.4&lt;/P&gt;&lt;P&gt;The following error message is from /var/log/knox/gateway.log &lt;/P&gt;&lt;P&gt;I cannot figure out why it couldn't recognize my cluster nameservice. &lt;/P&gt;&lt;P&gt;My HDFS directory is hdfs://testcluster/ranger/audit&lt;/P&gt;&lt;PRE&gt;2016-07-06 19:24:18,591 ERROR queue.AuditFileSpool (AuditFileSpool.java:logError(710)) - Error sending logs to consumer. provider=knox.async.batch, consumer=knox.async.batch.hdfs
2016-07-06 19:25:18,669 ERROR provider.BaseAuditHandler (BaseAuditHandler.java:logError(329)) - Error writing to log file.
java.lang.IllegalArgumentException: java.net.UnknownHostException: testcluster
	at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:411)
	at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:311)
	at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
	at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:678)
	at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:619)
	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:150)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
	at org.apache.ranger.audit.destination.HDFSAuditDestination.getLogFileStream(HDFSAuditDestination.java:221)
	at org.apache.ranger.audit.destination.HDFSAuditDestination.logJSON(HDFSAuditDestination.java:123)
	at org.apache.ranger.audit.queue.AuditFileSpool.sendEvent(AuditFileSpool.java:890)
	at org.apache.ranger.audit.queue.AuditFileSpool.runDoAs(AuditFileSpool.java:838)
	at org.apache.ranger.audit.queue.AuditFileSpool$2.run(AuditFileSpool.java:759)
	at org.apache.ranger.audit.queue.AuditFileSpool$2.run(AuditFileSpool.java:757)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1689)
	at org.apache.ranger.audit.queue.AuditFileSpool.run(AuditFileSpool.java:765)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: testcluster
	... 22 more
&lt;/PRE&gt;&lt;P&gt;Please help me figure this out. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:12:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116051#M33971</guid>
      <dc:creator>sula678</dc:creator>
      <dc:date>2016-07-06T18:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116052#M33972</link>
      <description>&lt;P&gt;is this HA cluster?&lt;/P&gt;&lt;P&gt;can you please provide the knox audit confguration&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:15:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116052#M33972</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-07-06T18:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116053#M33973</link>
      <description>&lt;P&gt;can you please refer to this document :&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/save_audits_to_hdfs.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/save_audits_to_hdfs.html&lt;/A&gt;. and please see the steps to create the following symbolic links:&lt;/P&gt;&lt;P&gt;Link /etc/hadoop/conf/hdfs-site.xml file to /etc/knox/conf/hdfs-site.xml&lt;/P&gt;&lt;P&gt;Link /etc/hadoop/conf/core-site.xml file to /etc/knox/conf/core-site.xml&lt;/P&gt;
&lt;DIV&gt;&lt;A href="https://hortonworks.jira.com/browse/EAR-3202?jql=text%20~%20%22Error%20writing%20to%20log%20file.%20java.lang.IllegalArgumentException%3A%20java.net.UnknownHostException%3A%22#"&gt;&lt;/A&gt;&lt;DIV&gt;More &lt;A href="https://hortonworks.jira.com/browse/EAR-3202?jql=text%20~%20%22Error%20writing%20to%20log%20file.%20java.lang.IllegalArgumentException%3A%20java.net.UnknownHostException%3A%22#"&gt;&lt;/A&gt;
&lt;A href="https://hortonworks.jira.com/secure/ViewProfile.jspa?name=mfang"&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:28:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116053#M33973</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-07-06T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116054#M33974</link>
      <description>&lt;P&gt;did it solve the problem ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 19:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116054#M33974</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-07-06T19:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116055#M33975</link>
      <description>&lt;P&gt;Is 'testcluster' the name of the topology file that you've configured via Knox?&lt;/P&gt;&lt;P&gt;You should have a file named 'testcluster.xml' under conf/topologies&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:23:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116055#M33975</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-07-07T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116056#M33976</link>
      <description>&lt;P&gt;After configured by following the document.&lt;/P&gt;&lt;P&gt;It works now.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 08:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116056#M33976</guid>
      <dc:creator>sula678</dc:creator>
      <dc:date>2016-07-07T08:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger cannot record Knox audit log to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116057#M33977</link>
      <description>&lt;P&gt;Soft linking of hdfs and core site xmls on KNOX Gateway server fixed the UnknownHostException  issue. &lt;/P&gt;&lt;P&gt;The versions I was working with are&lt;/P&gt;&lt;P&gt; HDP - 2.5&lt;/P&gt;&lt;P&gt;Ranger - 0.6.0.2.5 &lt;/P&gt;&lt;P&gt;Knox - 0.9.0.2.5&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 04:14:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-cannot-record-Knox-audit-log-to-hdfs/m-p/116057#M33977</guid>
      <dc:creator>jay1ram2</dc:creator>
      <dc:date>2016-10-28T04:14:25Z</dc:date>
    </item>
  </channel>
</rss>

