tooptoop4 commented on issue #36: [RANGER-2395] Add Presto plugin
URL: https://github.com/apache/ranger/pull/36#issuecomment-498757741
 
 
   After changing presto's launcher.py to have the -cp line include ranger 
folder got further to this error:  
    2019-06-04T15:54:27.589Z        INFO    main    
io.prestosql.security.AccessControlManager      -- Loading system access 
control --
   2019-06-04T15:54:27.848Z        INFO    main    Bootstrap       PROPERTY     
     DEFAULT  RUNTIME  DESCRIPTION
   2019-06-04T15:54:27.848Z        INFO    main    Bootstrap       
ranger.keytab     null     null     Keytab for authentication against Ranger
   2019-06-04T15:54:27.848Z        INFO    main    Bootstrap       
ranger.principal  null     null     Principal for authentication against Ranger 
with keytab
   2019-06-04T15:54:27.977Z        INFO    main    stderr  SLF4J: Failed to 
load class "org.slf4j.impl.StaticLoggerBinder".
   2019-06-04T15:54:27.977Z        INFO    main    stderr  SLF4J: Defaulting to 
no-operation (NOP) logger implementation
   2019-06-04T15:54:27.977Z        INFO    main    stderr  SLF4J: See 
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
   2019-06-04T15:54:28.032Z        ERROR   main    
org.apache.ranger.authorization.hadoop.config.RangerConfiguration       
addResourceIfReadable(ranger-presto-audit.xml): couldn't find resource file 
location
   2019-06-04T15:54:28.034Z        ERROR   main    
org.apache.ranger.authorization.hadoop.config.RangerConfiguration       
addResourceIfReadable(ranger-presto-security.xml): couldn't find resource file 
location
   2019-06-04T15:54:28.039Z        INFO    main    
org.apache.ranger.audit.provider.AuditProviderFactory   AuditProviderFactory: 
creating..
   2019-06-04T15:54:28.040Z        INFO    main    
org.apache.ranger.audit.provider.AuditProviderFactory   AuditProviderFactory: 
initializing..
   2019-06-04T15:54:28.069Z        INFO    main    
org.apache.ranger.audit.provider.AuditProviderFactory   No v3 audit 
configuration found. Trying v2 audit configurations
   2019-06-04T15:54:28.069Z        INFO    main    
org.apache.ranger.audit.provider.AuditProviderFactory   AuditProviderFactory: 
Audit not enabled..
   2019-06-04T15:54:28.069Z        INFO    main    
org.apache.ranger.plugin.service.RangerBasePlugin       PolicyEngineOptions: { 
evaluatorType: auto, evaluateDelegateAdminOnly: false, disableContextEnrichers: 
false, disableCustomConditions: false, disableTagPolicyEvaluation: false, 
enableTagEnricherWithLocalRefresher: false, disableTrieLookupPrefilter: false, 
optimizeTrieForRetrieval: false, cacheAuditResult: false }
   2019-06-04T15:54:28.079Z        ERROR   main    
io.prestosql.server.PrestoServer        Unable to create injector, see the 
following errors:
   
   1) Error injecting constructor, java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
     at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:40)
     at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControlFactory.lambda$create$0(RangerSystemAccessControlFactory.java:45)
     while locating 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl
   
   1 error
   com.google.inject.CreationException: Unable to create injector, see the 
following errors:
   
   1) Error injecting constructor, java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
     at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:40)
     at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControlFactory.lambda$create$0(RangerSystemAccessControlFactory.java:45)
     while locating 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl
   
   1 error
           at 
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
           at 
com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
           at 
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
           at com.google.inject.Guice.createInjector(Guice.java:87)
           at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
           at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControlFactory.create(RangerSystemAccessControlFactory.java:53)
           at 
io.prestosql.security.AccessControlManager.setSystemAccessControl(AccessControlManager.java:142)
           at 
io.prestosql.security.AccessControlManager.loadSystemAccessControl(AccessControlManager.java:122)
           at io.prestosql.server.PrestoServer.run(PrestoServer.java:138)
           at io.prestosql.server.PrestoServer.main(PrestoServer.java:70)
   Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
           at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:56)
           at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl$$FastClassByGuice$$ec9f475b.newInstance(<generated>)
           at 
com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
           at 
com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
           at 
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
           at 
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
           at 
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
           at 
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
           at 
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
           at 
com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211)
           at 
com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182)
           ... 8 more
   Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:54)
           ... 18 more
   Caused by: java.lang.NullPointerException
           at 
java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
           at 
java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
           at 
org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:228)
           at 
org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:84)
           ... 23 more
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to