- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9.1k
HADOOP-17324. Don't relocate org.bouncycastle in shaded client jars #2411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -35,6 +35,7 @@ | |
| import org.apache.hadoop.fs.FSDataInputStream; | ||
| import org.apache.hadoop.fs.FSDataOutputStream; | ||
| import org.apache.hadoop.fs.Path; | ||
| import org.apache.hadoop.io.IOUtils; | ||
|  | ||
| import org.apache.hadoop.conf.Configuration; | ||
|  | ||
|  | @@ -43,6 +44,7 @@ | |
|  | ||
| import org.apache.hadoop.hdfs.web.WebHdfsTestUtil; | ||
| import org.apache.hadoop.hdfs.web.WebHdfsConstants; | ||
| import org.apache.hadoop.yarn.server.MiniYARNCluster; | ||
|  | ||
| /** | ||
| * Ensure that we can perform operations against the shaded minicluster | ||
|  | @@ -54,6 +56,7 @@ public class ITUseMiniCluster { | |
| LoggerFactory.getLogger(ITUseMiniCluster.class); | ||
|  | ||
| private MiniDFSCluster cluster; | ||
| private MiniYARNCluster yarnCluster; | ||
|  | ||
| private static final String TEST_PATH = "/foo/bar/cats/dee"; | ||
| private static final String FILENAME = "test.file"; | ||
|  | @@ -73,13 +76,20 @@ public void clusterUp() throws IOException { | |
| .numDataNodes(3) | ||
| .build(); | ||
| cluster.waitActive(); | ||
|  | ||
| conf.set("yarn.scheduler.capacity.root.queues", "default"); | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. another issue: we currently don't bundle YARN test resources like capacity-scheduler.xml in hadoop-client-minicluster so this is a temporary workaround. I'll open another JIRA for this later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we leave out all of test/resources to stop log4j files, site configs etc getting onto the classpath of apps downstream -so making it impossible for them to choose their own options There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we should include them for test-only purpose? I think hadoop-client-minicluster should always be test scope right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it may be test only, but the other test suite may have its own configs that it wants. If we put them in the test JAR, it becomes near impossible to change. People will hate us (more) | ||
| conf.setInt("yarn.scheduler.capacity.root.default.capacity", 100); | ||
| yarnCluster = new MiniYARNCluster(getClass().getName(), 1, 1, 1, 1); | ||
| yarnCluster.init(conf); | ||
| yarnCluster.start(); | ||
| } | ||
|  | ||
| @After | ||
| public void clusterDown() { | ||
| if (cluster != null) { | ||
| cluster.close(); | ||
| } | ||
| IOUtils.cleanupWithLogger(LOG, yarnCluster); | ||
| } | ||
|  | ||
| @Test | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should go straight after line 45 - no gap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix. I was trying to follow the existing style though which separates imports based on package.