[jira] [Created] (RANGER-3472) The createPolicy() method is not thread safe. In another word, we can create same resources policies when creating policies concurrently
Xuze Yang created RANGER-3472: - Summary: The createPolicy() method is not thread safe. In another word, we can create same resources policies when creating policies concurrently Key: RANGER-3472 URL: https://issues.apache.org/jira/browse/RANGER-3472 Project: Ranger Issue Type: Bug Components: Ranger Affects Versions: 2.1.0 Reporter: Xuze Yang In our production environment, we happen to find that two policies exist with the same resources.In this case, when we want to modify either policy, ranger doesn't allow this operation and throws message like "*Error Code : 3010 Another policy already exists for matching resource: policy-name=[hhh9], service=[default-Hdfs]*". I go through the source code about create policy, find that the createPolicy() in class ServiceREST is not thread safe. When we create policies concurrently, we may create several same resource's policies. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (RANGER-3463) Use apt logger to log messages
[ https://issues.apache.org/jira/browse/RANGER-3463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nitin Galave updated RANGER-3463: - Fix Version/s: 3.0.0 > Use apt logger to log messages > -- > > Key: RANGER-3463 > URL: https://issues.apache.org/jira/browse/RANGER-3463 > Project: Ranger > Issue Type: Bug > Components: Ranger >Reporter: Abhishek Kumar >Assignee: Mateen Mansoori >Priority: Major > Fix For: 3.0.0 > > Attachments: 0001-RANGER-3463-Use-apt-logger-to-log-messages.patch > > > Avoid use of System.out.println in KMSMetricUtil.java at line numbers 74, 79, > 98, 104. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (RANGER-3463) Use apt logger to log messages
[ https://issues.apache.org/jira/browse/RANGER-3463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426157#comment-17426157 ] Mateen N Mansoori commented on RANGER-3463: --- Merged in master : https://github.com/apache/ranger/commit/3977c959e1720c7f984dd601ea54350ad4ec70e0 > Use apt logger to log messages > -- > > Key: RANGER-3463 > URL: https://issues.apache.org/jira/browse/RANGER-3463 > Project: Ranger > Issue Type: Bug > Components: Ranger >Reporter: Abhishek Kumar >Assignee: Mateen Mansoori >Priority: Major > Attachments: 0001-RANGER-3463-Use-apt-logger-to-log-messages.patch > > > Avoid use of System.out.println in KMSMetricUtil.java at line numbers 74, 79, > 98, 104. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[GitHub] [ranger] jerryleooo commented on pull request #106: Support Java 11 and add trino plugin
jerryleooo commented on pull request #106: URL: https://github.com/apache/ranger/pull/106#issuecomment-938529644 Encountered following error ``` + Fri Oct 8 18:21:12 +08 2021 : Saving lib file: /opt/presto/lib/validation-api-2.0.1.Final.jar to /opt/presto/lib/.validation-api-2.0.1.Final.jar.20211008182112 ... Unable to store password in non-plain text format. Error: [SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils at org.apache.hadoop.metrics2.lib.MutableMetricsFactory.getName(MutableMetricsFactory.java:134) at org.apache.hadoop.metrics2.lib.MutableMetricsFactory.getInfo(MutableMetricsFactory.java:130) at org.apache.hadoop.metrics2.lib.MutableMetricsFactory.newForField(MutableMetricsFactory.java:45) at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.add(MetricsSourceBuilder.java:147) at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.(MetricsSourceBuilder.java:69) at org.apache.hadoop.metrics2.lib.MetricsAnnotations.newSourceBuilder(MetricsAnnotations.java:43) at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:223) at org.apache.hadoop.metrics2.MetricsSystem.register(MetricsSystem.java:71) at org.apache.hadoop.security.UserGroupInformation$UgiMetrics.create(UserGroupInformation.java:149) at org.apache.hadoop.security.UserGroupInformation.(UserGroupInformation.java:265) at org.apache.hadoop.fs.FileSystem$Cache$Key.(FileSystem.java:3614) at org.apache.hadoop.fs.FileSystem$Cache$Key.(FileSystem.java:3604) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3441) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:524) at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365) at org.apache.hadoop.security.alias.JavaKeyStoreProvider.initFileSystem(JavaKeyStoreProvider.java:89) at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.(AbstractJavaKeyStoreProvider.java:85) at org.apache.hadoop.security.alias.JavaKeyStoreProvider.(JavaKeyStoreProvider.java:49) at org.apache.hadoop.security.alias.JavaKeyStoreProvider.(JavaKeyStoreProvider.java:41) at org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory.createProvider(JavaKeyStoreProvider.java:100) at org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:73) at org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:74) at org.apache.ranger.credentialapi.buildks.createCredential(buildks.java:87) at org.apache.ranger.credentialapi.buildks.main(buildks.java:41) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 24 more] Exiting plugin installation ``` Java version: 15.0.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Created] (RANGER-3471) Upgrade Jetty-client, commons-compress, poi-ooxml jar.
Mateen N Mansoori created RANGER-3471: - Summary: Upgrade Jetty-client, commons-compress, poi-ooxml jar. Key: RANGER-3471 URL: https://issues.apache.org/jira/browse/RANGER-3471 Project: Ranger Issue Type: Task Components: Ranger Reporter: Mateen N Mansoori Currently ranger pulling jetty-client : 9.4.31.v20200723, commons-compress : 1.8.1 and poi-ooxml : 4.1.2, Upgrading these libs to 9.4.44.v20210927, 1.21 and 5.0.0 respectively. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (RANGER-3470) Ranger - Upgrade commons-io to 2.11.0
[ https://issues.apache.org/jira/browse/RANGER-3470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dineshkumar Yadav updated RANGER-3470: -- Summary: Ranger - Upgrade commons-io to 2.11.0 (was: Ranger upgrade commons-io to 2.11.0) > Ranger - Upgrade commons-io to 2.11.0 > - > > Key: RANGER-3470 > URL: https://issues.apache.org/jira/browse/RANGER-3470 > Project: Ranger > Issue Type: Improvement > Components: Ranger >Reporter: Dineshkumar Yadav >Assignee: Dineshkumar Yadav >Priority: Major > Fix For: 3.0.0 > > > upgrade commons-io to 2.11.0. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (RANGER-3470) Ranger upgrade commons-io to 2.11.0
Dineshkumar Yadav created RANGER-3470: - Summary: Ranger upgrade commons-io to 2.11.0 Key: RANGER-3470 URL: https://issues.apache.org/jira/browse/RANGER-3470 Project: Ranger Issue Type: Improvement Components: Ranger Reporter: Dineshkumar Yadav Assignee: Dineshkumar Yadav Fix For: 3.0.0 upgrade commons-io to 2.11.0. -- This message was sent by Atlassian Jira (v8.3.4#803005)