ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stewart Thomas J <StewartThom...@JohnDeere.com>
Subject CacheLoader returned null for key
Date Tue, 11 Apr 2017 14:46:34 GMT
I upgraded to Ambari 2.5.0.3 and I am getting this exception when an LDAP user tries to login.
The local admin user can login fine. My users/groups shows blank in user/group management
as well, however the users/groups tables in the Ambari database have data in them.

11 Apr 2017 09:17:39,517 ERROR [ambari-client-thread-53] ReadHandler:102 - Caught a runtime
exception executing a query
com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for
key 153.
        at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2348)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
        at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
        at org.apache.ambari.server.controller.internal.UserPrivilegeResourceProvider.toResource(UserPrivilegeResourceProvider.java:347)
        at org.apache.ambari.server.controller.internal.UserPrivilegeResourceProvider.getResources(UserPrivilegeResourceProvider.java:301)
        at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java:966)
        at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:141)

I am assuming there is something mucked up in the tables, but need assistance on which ones
to investigate for this condition. That line in the code is doing:
  final ViewInstanceEntity viewInstanceEntity = viewInstanceCache.get().getUnchecked(privilegeEntity.getResource().getId())

Thanks,

Tom



Mime
View raw message