<?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 get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358687#M237915</link>
    <description>&lt;P&gt;hey, I'm not using ranger-admin I'm using the &amp;lt;es url&amp;gt;/_bulk call to get the audits which works up until trino 365, this error is only visible in the newer trino versions&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 08:00:35 GMT</pubDate>
    <dc:creator>aleezeh</dc:creator>
    <dc:date>2022-12-01T08:00:35Z</dc:date>
    <item>
      <title>Unable to get audit logs from Apache Ranger Trino plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358537#M237874</link>
      <description>&lt;P&gt;I have edited the install.properties file for the trino plugin and am using this repository&amp;nbsp;&lt;A class="au lc" href="https://github.com/aakashnand/trino-ranger-demo.git" target="_blank" rel="nofollow noopener ugc"&gt;https://github.com/aakashnand/trino-ranger-demo.git&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I edited the &amp;nbsp;&lt;SPAN&gt;XAAUDIT.ELASTICSEARCH.URL to my IP and&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="inherit"&gt;XAAUDIT.ELASTICSEARCH.PORT to my port, and&amp;nbsp;&lt;/FONT&gt;I&lt;FONT face="inherit"&gt;&amp;nbsp;am using similar configuration for apache hive plugin too and its working there but for trino&amp;nbsp;&lt;/FONT&gt;I&lt;FONT face="inherit"&gt;&amp;nbsp;get this error when&amp;nbsp;&lt;/FONT&gt;I&lt;FONT face="inherit"&gt;&amp;nbsp;perform a task and it tried to send audit message.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-11-29T09:48:32.780Z	INFO	org.apache.ranger.audit.queue.AuditBatchQueue1	stdout	INFO  - {"repoType":8,"repo":"apache_trino_onprem_8","reqUser":"testuser","evtTime":"2022-11-29 09:48:32.543","resource":"tpch/sf1/nation/comment","resType":"column","action":"select","result":1,"agent":"trino","policy":141,"enforcer":"ranger-acl","agentHost":"my-localhost-trino","logType":"RangerAudit","id":"718df890-2d9c-4641-96fe-c38fd58f8a20-37","seq_num":75,"event_count":1,"event_dur_ms":0,"tags":[],"cluster_name":"","policy_version":0}
2022-11-29T09:48:33.471Z	INFO	org.apache.ranger.audit.queue.AuditBatchQueue0	stdout	ERROR - Can't connect to ElasticSearch server: User:elasticsearch, http://192.168.100.82:8091/ranger_auditsjava.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException
	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1891)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1645)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1602)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1572)
	at org.elasticsearch.client.IndicesClient.open(IndicesClient.java:614)
	at org.apache.ranger.audit.destination.ElasticSearchAuditDestination.newClient(ElasticSearchAuditDestination.java:253)
	at org.apache.ranger.audit.destination.ElasticSearchAuditDestination.getClient(ElasticSearchAuditDestination.java:184)
	at org.apache.ranger.audit.destination.ElasticSearchAuditDestination.log(ElasticSearchAuditDestination.java:118)
	at org.apache.ranger.audit.queue.AuditBatchQueue.runLogAudit(AuditBatchQueue.java:309)
	at org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java:215)
	at java.base/java.lang.Thread.run(Thread.java:833)

2022-11-29T09:48:33.471Z	INFO	org.apache.ranger.audit.queue.AuditBatchQueue0	stdout	WARN  - failed to log audit event: {"repoType":8,"repo":"apache_trino_onprem_8","reqUser":"testuser","evtTime":"2022-11-29 09:48:31.428","resource":"lower","resType":"function","action":"execute","result":0,"agent":"trino","policy":-1,"enforcer":"ranger-acl","agentHost":"my-localhost-trino","logType":"RangerAudit","id":"718df890-2d9c-4641-96fe-c38fd58f8a20-19","seq_num":39,"event_count":1,"event_dur_ms":0,"tags":[],"cluster_name":""}, errorMessage=
2022-11-29T09:48:33.476Z	INFO	org.apache.ranger.audit.queue.AuditBatchQueue0	stdout	WARN  - Log failure count: 19 in past 28:23.520 minutes; 20 during process lifetime
2022-11-29T09:48:33.669Z	INFO	PolicyRefresher(serviceName=apache_trino_onprem_8)-169	stdout	ERROR - Error getting Roles; service not found. secureMode=false, user=root (auth:SIMPLE), response=404, serviceName=apache_trino_onprem_8, lastKnownRoleVersion=-1, lastActivationTimeInMillis=1669713508318&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;BR /&gt;&lt;BR /&gt;I also&amp;nbsp;&lt;/FONT&gt;can't&lt;FONT face="inherit"&gt;&amp;nbsp;find where the curl commands are, e.g for hive&amp;nbsp;&lt;/FONT&gt;I&lt;FONT face="inherit"&gt;&amp;nbsp;can see the&amp;nbsp;&lt;/FONT&gt;exact&lt;FONT face="inherit"&gt;&amp;nbsp;&lt;/FONT&gt;curl command it is sending along with the payload in hive.log but for trino I can't see any curl command in logs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 17:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358537#M237874</guid>
      <dc:creator>aleezeh</dc:creator>
      <dc:date>2022-12-01T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358641#M237903</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102134"&gt;@aleezeh&lt;/a&gt;&amp;nbsp;We seem to be missing the jar for the class&amp;nbsp;&lt;FONT color="#0000FF"&gt;org.elasticsearch.ElasticsearchStatusException&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please make sure that you have&amp;nbsp;elasticsearch-7.6.0.jar is present in the classpath. This jar comes bundled in&amp;nbsp;ranger-${RANGER_VERSION}-admin.tar.gz.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 11:49:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358641#M237903</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2022-11-30T11:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358687#M237915</link>
      <description>&lt;P&gt;hey, I'm not using ranger-admin I'm using the &amp;lt;es url&amp;gt;/_bulk call to get the audits which works up until trino 365, this error is only visible in the newer trino versions&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:00:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358687#M237915</guid>
      <dc:creator>aleezeh</dc:creator>
      <dc:date>2022-12-01T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358688#M237916</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hey, I'm not using ranger-admin I'm using the &amp;lt;es url&amp;gt;/_bulk call to get the audits which works up until trino 365, this error is only visible in the newer trino versions&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:01:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358688#M237916</guid>
      <dc:creator>aleezeh</dc:creator>
      <dc:date>2022-12-01T08:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358707#M237918</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102134"&gt;@aleezeh&lt;/a&gt;&amp;nbsp;I guess you could reach out to Trino support for their inputs. But it looks like we are missing a dependent elasticsearch jar in the classpath.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:01:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/358707#M237918</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2022-12-01T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/360984#M238481</link>
      <description>&lt;P&gt;hey! so the problem was that i wasnt handling the open connection API call for elastic search due to which i was facing the error&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 22:47:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/360984#M238481</guid>
      <dc:creator>aleezeh</dc:creator>
      <dc:date>2023-01-10T22:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/369819#M240565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102134"&gt;@aleezeh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm facing similar problems. Can you elaborate how do you solve the problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 08:04:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/369819#M240565</guid>
      <dc:creator>jtvm</dc:creator>
      <dc:date>2023-05-02T08:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get audit logs from Apache Ranger Trino plugin - java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.ElasticsearchStatusException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/369820#M240566</link>
      <description>&lt;P&gt;I was redirecting the es audit logs to get the audit logs on an endpoint I had made for testing and the issue was the i wasnt handling the open connection es API call due to which the plugin wasnt able to establish an es connection,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/ranger_audits/_open&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is the API end point and this needs to send some response so es audit connection can be established&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 08:08:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-get-audit-logs-from-Apache-Ranger-Trino-plugin/m-p/369820#M240566</guid>
      <dc:creator>aleezeh</dc:creator>
      <dc:date>2023-05-02T08:08:41Z</dc:date>
    </item>
  </channel>
</rss>

