You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2019/12/10 03:09:49 UTC

[GitHub] [lucene-solr] risdenk edited a comment on issue #1068: SOLR-14033: Fix Hadoop tests with security manager

risdenk edited a comment 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 (this happens in tests that don't use HdfsTestUtil), 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:
users@infra.apache.org


With regards,
Apache Git Services

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