risdenk commented on issue #1068: SOLR-14033: Fix Hadoop tests with security 
manager
URL: https://github.com/apache/lucene-solr/pull/1068#issuecomment-563662772
 
 
   So this is because the `UserGroupInfromation` is initialized once statically 
in the JVM. If it isn't configured before being initialized then you end up w/ 
the wrong group implementation.
   
   I tried to set the group impl here 
https://github.com/apache/lucene-solr/pull/1068/files#diff-3c36d2ce2df3ab00d607b1c9eb01ae29R210
 and then force the UGI initialization here 
https://github.com/apache/lucene-solr/pull/1068/files#diff-3c36d2ce2df3ab00d607b1c9eb01ae29R132
   
   However if the order of Hadoop tests run where HdfsTestUtil#setupClass isn't 
run before any other Hadoop related test, the UGI gets initialized incorrectly 
and then fails with the stacktrace you shared. 
   
   
   So yea I tried to bypass the whole group lookup crap by putting in a fake 
group lookup provider, but it requires the UGI to be initialized upfront. I 
haven't figured out the best place to ensure the UGI is initialized with the 
right config.

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to