mirror of
https://github.com/apache/lucene.git
synced 2025-02-23 02:35:02 +00:00
This removes the Solr security manager hacks for Hadoop. It does so by: * Using a fake group mapping class instead of ShellGroupMapping * Copies a few Hadoop classes and modifies them for tests with no Shell * Nulls out some of the static variables in the tests The Hadoop files were copied from Apache Hadoop 3.2.0 and copied to the test package to be only picked up during tests. They were modified to remove the need to shell out for access. The assumption is that these HDFS integration tests only run on Unix based systems and therefore Windows compatibility was removed in some of the modified classes. The long term goal is to remove these custom Hadoop classes. All the copied classes are in the org.apache.hadoop package. Signed-off-by: Kevin Risden <krisden@apache.org>