Skip to content

Commit

Permalink
ODP-785|Druid-issue-13225: adding ODP's ranger v2.3.0 and other chang…
Browse files Browse the repository at this point in the history
…es into druid
  • Loading branch information
manishsinghmowall committed Dec 4, 2023
1 parent d90b0c1 commit f2d08e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.Collections;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
Expand Down Expand Up @@ -134,7 +135,7 @@ class RangerDruidAccessRequest extends RangerAccessRequestImpl
{
public RangerDruidAccessRequest(RangerDruidResource resource, String user, Set<String> userGroups, Action action)
{
super(resource, action.name().toLowerCase(Locale.ENGLISH), user, userGroups,null);
super(resource, action.name().toLowerCase(Locale.ENGLISH), user, userGroups, Collections.emptySet());
setAccessTime(new Date());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.druid.java.util.common.logger.Logger;
import org.apache.hadoop.conf.Configuration;
import org.apache.ranger.admin.client.AbstractRangerAdminClient;
import org.apache.ranger.plugin.util.ServicePolicies;

Expand All @@ -39,9 +40,9 @@ public class RangerAdminClientImpl extends AbstractRangerAdminClient
protected Gson gson;

@Override
public void init(String serviceName, String appId, String configPropertyPrefix)
public void init(String serviceName, String appId, String configPropertyPrefix, Configuration config)
{
super.init(serviceName, appId, configPropertyPrefix);
super.init(serviceName, appId, configPropertyPrefix, config);

try {
gson = new GsonBuilder().setDateFormat("yyyyMMdd-HH:mm:ss.SSS-Z").setPrettyPrinting().create();
Expand Down
4 changes: 2 additions & 2 deletions licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4943,7 +4943,7 @@ libraries:

name: org.apache.ranger ranger-plugins-audit
license_category: binary
version: 2.0.0
version: 2.3.0
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
Expand All @@ -4953,7 +4953,7 @@ libraries:

name: org.apache.ranger ranger-plugins-common
license_category: binary
version: 2.0.0
version: 2.3.0
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@
</execution>
</executions>
</plugin>
<!--plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
Expand Down Expand Up @@ -1344,7 +1344,7 @@
</goals>
</execution>
</executions>
</plugin-->
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
Expand Down

0 comments on commit f2d08e4

Please sign in to comment.