pom.xml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-project</artifactId>
  20. <version>2.10.0-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-azure</artifactId>
  24. <name>Apache Hadoop Azure support</name>
  25. <description>
  26. This module contains code to support integration with Azure.
  27. Currently this consists of a filesystem client to read data from
  28. and write data to Azure Storage.
  29. </description>
  30. <packaging>jar</packaging>
  31. <properties>
  32. <file.encoding>UTF-8</file.encoding>
  33. <downloadSources>true</downloadSources>
  34. <hadoop.tmp.dir>${project.build.directory}/test</hadoop.tmp.dir>
  35. <!-- are scale tests enabled ? -->
  36. <fs.azure.scale.test.enabled>unset</fs.azure.scale.test.enabled>
  37. <!-- Size in MB of huge files. -->
  38. <fs.azure.scale.test.huge.filesize>unset</fs.azure.scale.test.huge.filesize>
  39. <!-- Size in MB of the partion size in huge file uploads. -->
  40. <fs.azure.scale.test.huge.partitionsize>unset</fs.azure.scale.test.huge.partitionsize>
  41. <!-- Timeout in seconds for scale tests.-->
  42. <fs.azure.scale.test.timeout>7200</fs.azure.scale.test.timeout>
  43. <fs.azure.scale.test.list.performance.threads>10</fs.azure.scale.test.list.performance.threads>
  44. <fs.azure.scale.test.list.performance.files>1000</fs.azure.scale.test.list.performance.files>
  45. </properties>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.codehaus.mojo</groupId>
  50. <artifactId>findbugs-maven-plugin</artifactId>
  51. <configuration>
  52. <findbugsXmlOutput>true</findbugsXmlOutput>
  53. <xmlOutput>true</xmlOutput>
  54. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
  55. </excludeFilterFile>
  56. <effort>Max</effort>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-project-info-reports-plugin</artifactId>
  62. <configuration>
  63. <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
  64. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  65. </configuration>
  66. </plugin>
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-checkstyle-plugin</artifactId>
  70. <configuration>
  71. <!-- To run with the default Sun ruleset,
  72. comment out the configLocation line -->
  73. <configLocation>src/config/checkstyle.xml</configLocation>
  74. <suppressionsLocation>src/config/checkstyle-suppressions.xml</suppressionsLocation>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>test-jar</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. </plugins>
  89. <!--
  90. The following is to suppress a m2e warning in eclipse
  91. (m2e doesn't know how to handle maven-enforcer:enforce, so we have to tell m2e to ignore it)
  92. see: https://stackoverflow.com/questions/13040788/how-to-elimate-the-maven-enforcer-plugin-goal-enforce-is-ignored-by-m2e-wa
  93. -->
  94. <pluginManagement>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.eclipse.m2e</groupId>
  98. <artifactId>lifecycle-mapping</artifactId>
  99. <version>1.0.0</version>
  100. <configuration>
  101. <lifecycleMappingMetadata>
  102. <pluginExecutions>
  103. <pluginExecution>
  104. <pluginExecutionFilter>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-enforcer-plugin</artifactId>
  107. <versionRange>[1.0.0,)</versionRange>
  108. <goals>
  109. <goal>enforce</goal>
  110. </goals>
  111. </pluginExecutionFilter>
  112. <action>
  113. <ignore />
  114. </action>
  115. </pluginExecution>
  116. </pluginExecutions>
  117. </lifecycleMappingMetadata>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. </pluginManagement>
  122. </build>
  123. <!-- see hadoop-project/pom.xml for version number declarations -->
  124. <dependencies>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-common</artifactId>
  128. <scope>compile</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.httpcomponents</groupId>
  132. <artifactId>httpclient</artifactId>
  133. <scope>compile</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.microsoft.azure</groupId>
  137. <artifactId>azure-storage</artifactId>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.google.guava</groupId>
  142. <artifactId>guava</artifactId>
  143. </dependency>
  144. <!--
  145. <dependency>
  146. <groupId>org.eclipse.jetty</groupId>
  147. <artifactId>jetty-util-ajax</artifactId>
  148. <scope>compile</scope>
  149. </dependency>
  150. -->
  151. <dependency>
  152. <groupId>org.codehaus.jackson</groupId>
  153. <artifactId>jackson-mapper-asl</artifactId>
  154. <scope>compile</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.codehaus.jackson</groupId>
  158. <artifactId>jackson-core-asl</artifactId>
  159. <scope>compile</scope>
  160. </dependency>
  161. <!--
  162. <dependency>
  163. <groupId>org.wildfly.openssl</groupId>
  164. <artifactId>wildfly-openssl</artifactId>
  165. <scope>compile</scope>
  166. </dependency>
  167. -->
  168. <!--com.fasterxml.jackson is used by WASB, not ABFS-->
  169. <!--transitive dependency from Azure SDK-->
  170. <dependency>
  171. <groupId>com.fasterxml.jackson.core</groupId>
  172. <artifactId>jackson-core</artifactId>
  173. <scope>provided</scope>
  174. </dependency>
  175. <!--transitive dependency from hadoop-common-->
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.core</groupId>
  178. <artifactId>jackson-databind</artifactId>
  179. <scope>provided</scope>
  180. </dependency>
  181. <!-- dependencies use for test only -->
  182. <dependency>
  183. <groupId>junit</groupId>
  184. <artifactId>junit</artifactId>
  185. <scope>test</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-common</artifactId>
  190. <scope>test</scope>
  191. <type>test-jar</type>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.hadoop</groupId>
  195. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.hadoop</groupId>
  200. <artifactId>hadoop-distcp</artifactId>
  201. <scope>test</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.apache.hadoop</groupId>
  205. <artifactId>hadoop-distcp</artifactId>
  206. <scope>test</scope>
  207. <type>test-jar</type>
  208. </dependency>
  209. <dependency>
  210. <groupId>log4j</groupId>
  211. <artifactId>log4j</artifactId>
  212. <scope>test</scope>
  213. </dependency>
  214. <!--
  215. <dependency>
  216. <groupId>javax.ws.rs</groupId>
  217. <artifactId>jsr311-api</artifactId>
  218. <scope>test</scope>
  219. </dependency>
  220. -->
  221. <dependency>
  222. <groupId>org.mockito</groupId>
  223. <artifactId>mockito-all</artifactId>
  224. <scope>test</scope>
  225. </dependency>
  226. </dependencies>
  227. <profiles>
  228. <profile>
  229. <id>parallel-tests-wasb</id>
  230. <activation>
  231. <property>
  232. <name>parallel-tests</name>
  233. <value>wasb</value>
  234. </property>
  235. </activation>
  236. <build>
  237. <plugins>
  238. <plugin>
  239. <artifactId>maven-antrun-plugin</artifactId>
  240. <executions>
  241. <execution>
  242. <id>create-parallel-tests-dirs</id>
  243. <phase>test-compile</phase>
  244. <configuration>
  245. <target>
  246. <script language="javascript"><![CDATA[
  247. var baseDirs = [
  248. project.getProperty("test.build.data"),
  249. project.getProperty("test.build.dir"),
  250. project.getProperty("hadoop.tmp.dir")
  251. ];
  252. for (var i in baseDirs) {
  253. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  254. var mkdir = project.createTask("mkdir");
  255. mkdir.setDir(new java.io.File(baseDirs[i], j));
  256. mkdir.perform();
  257. }
  258. }
  259. ]]></script>
  260. </target>
  261. </configuration>
  262. <goals>
  263. <goal>run</goal>
  264. </goals>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-surefire-plugin</artifactId>
  271. <executions>
  272. <execution>
  273. <id>default-test</id>
  274. <goals>
  275. <goal>test</goal>
  276. </goals>
  277. <configuration>
  278. <forkCount>1</forkCount>
  279. <forkCount>${testsThreadCount}</forkCount>
  280. <reuseForks>false</reuseForks>
  281. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  282. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  283. <systemPropertyVariables>
  284. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  285. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  286. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  287. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  288. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  289. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  290. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  291. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  292. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  293. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  294. </systemPropertyVariables>
  295. <includes>
  296. <include>**/azure/Test*.java</include>
  297. <include>**/azure/**/Test*.java</include>
  298. </includes>
  299. <excludes>
  300. <exclude>**/azure/**/TestRollingWindowAverage*.java</exclude>
  301. </excludes>
  302. </configuration>
  303. </execution>
  304. <execution>
  305. <id>serialized-test-wasb</id>
  306. <goals>
  307. <goal>test</goal>
  308. </goals>
  309. <configuration>
  310. <forkCount>1</forkCount>
  311. <reuseForks>false</reuseForks>
  312. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  313. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  314. <systemPropertyVariables>
  315. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  316. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  317. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  318. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  319. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  320. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  321. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  322. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  323. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  324. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  325. </systemPropertyVariables>
  326. <includes>
  327. <include>**/azure/**/TestRollingWindowAverage*.java</include>
  328. </includes>
  329. </configuration>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-failsafe-plugin</artifactId>
  336. <executions>
  337. <execution>
  338. <id>default-integration-test-wasb</id>
  339. <goals>
  340. <goal>integration-test</goal>
  341. <goal>verify</goal>
  342. </goals>
  343. <configuration>
  344. <forkCount>1</forkCount>
  345. <forkCount>${testsThreadCount}</forkCount>
  346. <reuseForks>false</reuseForks>
  347. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  348. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  349. <trimStackTrace>false</trimStackTrace>
  350. <systemPropertyVariables>
  351. <!-- Tell tests that they are being executed in parallel -->
  352. <test.parallel.execution>true</test.parallel.execution>
  353. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  354. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  355. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  356. <!-- Due to a Maven quirk, setting this to just -->
  357. <!-- surefire.forkNumber won't do the parameter -->
  358. <!-- substitution. Putting a prefix in front of it like -->
  359. <!-- "fork-" makes it work. -->
  360. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  361. <!-- Propagate scale parameters -->
  362. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  363. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  364. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  365. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  366. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  367. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  368. </systemPropertyVariables>
  369. <!-- Some tests cannot run in parallel-->
  370. <includes>
  371. <include>**/azure/ITest*.java</include>
  372. <include>**/azure/**/ITest*.java</include>
  373. </includes>
  374. <excludes>
  375. <exclude>**/azure/ITestNativeFileSystemStatistics.java</exclude>
  376. </excludes>
  377. </configuration>
  378. </execution>
  379. <!-- Do a sequential run for tests that cannot handle -->
  380. <!-- parallel execution. -->
  381. <execution>
  382. <id>sequential-integration-tests-wasb</id>
  383. <goals>
  384. <goal>integration-test</goal>
  385. <goal>verify</goal>
  386. </goals>
  387. <configuration>
  388. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  389. <trimStackTrace>false</trimStackTrace>
  390. <systemPropertyVariables>
  391. <test.parallel.execution>false</test.parallel.execution>
  392. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  393. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  394. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  395. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  396. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  397. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  398. </systemPropertyVariables>
  399. <includes>
  400. <include>**/azure/ITestNativeFileSystemStatistics.java</include>
  401. </includes>
  402. </configuration>
  403. </execution>
  404. </executions>
  405. </plugin>
  406. </plugins>
  407. </build>
  408. </profile>
  409. <profile>
  410. <id>parallel-tests-abfs</id>
  411. <activation>
  412. <property>
  413. <name>parallel-tests</name>
  414. <value>abfs</value>
  415. </property>
  416. </activation>
  417. <build>
  418. <plugins>
  419. <plugin>
  420. <artifactId>maven-antrun-plugin</artifactId>
  421. <executions>
  422. <execution>
  423. <id>create-parallel-tests-dirs</id>
  424. <phase>test-compile</phase>
  425. <configuration>
  426. <target>
  427. <script language="javascript"><![CDATA[
  428. var baseDirs = [
  429. project.getProperty("test.build.data"),
  430. project.getProperty("test.build.dir"),
  431. project.getProperty("hadoop.tmp.dir")
  432. ];
  433. for (var i in baseDirs) {
  434. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  435. var mkdir = project.createTask("mkdir");
  436. mkdir.setDir(new java.io.File(baseDirs[i], j));
  437. mkdir.perform();
  438. }
  439. }
  440. ]]></script>
  441. </target>
  442. </configuration>
  443. <goals>
  444. <goal>run</goal>
  445. </goals>
  446. </execution>
  447. </executions>
  448. </plugin>
  449. <plugin>
  450. <groupId>org.apache.maven.plugins</groupId>
  451. <artifactId>maven-surefire-plugin</artifactId>
  452. <executions>
  453. <execution>
  454. <id>default-test</id>
  455. <goals>
  456. <goal>test</goal>
  457. </goals>
  458. <configuration>
  459. <forkCount>${testsThreadCount}</forkCount>
  460. <reuseForks>false</reuseForks>
  461. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  462. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  463. <systemPropertyVariables>
  464. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  465. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  466. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  467. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  468. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  469. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  470. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  471. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  472. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  473. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  474. </systemPropertyVariables>
  475. <includes>
  476. <include>**/azurebfs/Test*.java</include>
  477. <include>**/azurebfs/**/Test*.java</include>
  478. </includes>
  479. </configuration>
  480. </execution>
  481. </executions>
  482. </plugin>
  483. <plugin>
  484. <groupId>org.apache.maven.plugins</groupId>
  485. <artifactId>maven-failsafe-plugin</artifactId>
  486. <executions>
  487. <execution>
  488. <id>integration-test-abfs-parallel-classesAndMethods</id>
  489. <goals>
  490. <goal>integration-test</goal>
  491. <goal>verify</goal>
  492. </goals>
  493. <configuration>
  494. <forkCount>${testsThreadCount}</forkCount>
  495. <reuseForks>true</reuseForks>
  496. <parallel>both</parallel>
  497. <threadCount>${testsThreadCount}</threadCount>
  498. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  499. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  500. <trimStackTrace>false</trimStackTrace>
  501. <systemPropertyVariables>
  502. <!-- Tell tests that they are being executed in parallel -->
  503. <test.parallel.execution>true</test.parallel.execution>
  504. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  505. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  506. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  507. <!-- Due to a Maven quirk, setting this to just -->
  508. <!-- surefire.forkNumber won't do the parameter -->
  509. <!-- substitution. Putting a prefix in front of it like -->
  510. <!-- "fork-" makes it work. -->
  511. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  512. <!-- Propagate scale parameters -->
  513. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  514. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  515. </systemPropertyVariables>
  516. <includes>
  517. <include>**/azurebfs/ITest*.java</include>
  518. <include>**/azurebfs/**/ITest*.java</include>
  519. </includes>
  520. <excludes>
  521. <exclude>**/azurebfs/contract/ITest*.java</exclude>
  522. <exclude>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</exclude>
  523. <exclude>**/azurebfs/ITestAbfsReadWriteAndSeek.java</exclude>
  524. <exclude>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</exclude>
  525. </excludes>
  526. </configuration>
  527. </execution>
  528. <execution>
  529. <id>integration-test-abfs-parallel-classes</id>
  530. <goals>
  531. <goal>integration-test</goal>
  532. <goal>verify</goal>
  533. </goals>
  534. <configuration>
  535. <forkCount>${testsThreadCount}</forkCount>
  536. <reuseForks>false</reuseForks>
  537. <!--NOTICE: hadoop contract tests methods can not be ran in parallel-->
  538. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  539. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  540. <trimStackTrace>false</trimStackTrace>
  541. <systemPropertyVariables>
  542. <!-- Tell tests that they are being executed in parallel -->
  543. <test.parallel.execution>true</test.parallel.execution>
  544. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  545. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  546. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  547. <!-- Due to a Maven quirk, setting this to just -->
  548. <!-- surefire.forkNumber won't do the parameter -->
  549. <!-- substitution. Putting a prefix in front of it like -->
  550. <!-- "fork-" makes it work. -->
  551. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  552. <!-- Propagate scale parameters -->
  553. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  554. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  555. </systemPropertyVariables>
  556. <includes>
  557. <include>**/azurebfs/contract/ITest*.java</include>
  558. <include>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</include>
  559. <include>**/azurebfs/ITestAbfsReadWriteAndSeek.java</include>
  560. <include>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</include>
  561. </includes>
  562. </configuration>
  563. </execution>
  564. </executions>
  565. </plugin>
  566. </plugins>
  567. </build>
  568. </profile>
  569. <profile>
  570. <id>parallel-tests</id>
  571. <activation>
  572. <property>
  573. <name>parallel-tests</name>
  574. <value>both</value>
  575. </property>
  576. </activation>
  577. <build>
  578. <plugins>
  579. <plugin>
  580. <artifactId>maven-antrun-plugin</artifactId>
  581. <executions>
  582. <execution>
  583. <id>create-parallel-tests-dirs</id>
  584. <phase>test-compile</phase>
  585. <configuration>
  586. <target>
  587. <script language="javascript"><![CDATA[
  588. var baseDirs = [
  589. project.getProperty("test.build.data"),
  590. project.getProperty("test.build.dir"),
  591. project.getProperty("hadoop.tmp.dir")
  592. ];
  593. for (var i in baseDirs) {
  594. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  595. var mkdir = project.createTask("mkdir");
  596. mkdir.setDir(new java.io.File(baseDirs[i], j));
  597. mkdir.perform();
  598. }
  599. }
  600. ]]></script>
  601. </target>
  602. </configuration>
  603. <goals>
  604. <goal>run</goal>
  605. </goals>
  606. </execution>
  607. </executions>
  608. </plugin>
  609. <plugin>
  610. <groupId>org.apache.maven.plugins</groupId>
  611. <artifactId>maven-surefire-plugin</artifactId>
  612. <executions>
  613. <execution>
  614. <id>default-test</id>
  615. <goals>
  616. <goal>test</goal>
  617. </goals>
  618. <configuration>
  619. <forkCount>1</forkCount>
  620. <forkCount>${testsThreadCount}</forkCount>
  621. <reuseForks>false</reuseForks>
  622. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  623. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  624. <systemPropertyVariables>
  625. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  626. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  627. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  628. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  629. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  630. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  631. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  632. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  633. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  634. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  635. </systemPropertyVariables>
  636. <includes>
  637. <include>**/Test*.java</include>
  638. </includes>
  639. <excludes>
  640. <exclude>**/TestRollingWindowAverage*.java</exclude>
  641. </excludes>
  642. </configuration>
  643. </execution>
  644. <execution>
  645. <id>serialized-test</id>
  646. <goals>
  647. <goal>test</goal>
  648. </goals>
  649. <configuration>
  650. <forkCount>1</forkCount>
  651. <reuseForks>false</reuseForks>
  652. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  653. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  654. <systemPropertyVariables>
  655. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  656. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  657. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  658. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  659. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  660. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  661. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  662. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  663. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  664. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  665. </systemPropertyVariables>
  666. <includes>
  667. <include>**/TestRollingWindowAverage*.java</include>
  668. </includes>
  669. </configuration>
  670. </execution>
  671. </executions>
  672. </plugin>
  673. <plugin>
  674. <groupId>org.apache.maven.plugins</groupId>
  675. <artifactId>maven-failsafe-plugin</artifactId>
  676. <executions>
  677. <execution>
  678. <id>default-integration-test</id>
  679. <goals>
  680. <goal>integration-test</goal>
  681. <goal>verify</goal>
  682. </goals>
  683. <configuration>
  684. <forkCount>${testsThreadCount}</forkCount>
  685. <reuseForks>false</reuseForks>
  686. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  687. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  688. <trimStackTrace>false</trimStackTrace>
  689. <systemPropertyVariables>
  690. <!-- Tell tests that they are being executed in parallel -->
  691. <test.parallel.execution>true</test.parallel.execution>
  692. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  693. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  694. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  695. <!-- Due to a Maven quirk, setting this to just -->
  696. <!-- surefire.forkNumber won't do the parameter -->
  697. <!-- substitution. Putting a prefix in front of it like -->
  698. <!-- "fork-" makes it work. -->
  699. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  700. <!-- Propagate scale parameters -->
  701. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  702. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  703. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  704. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  705. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  706. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  707. </systemPropertyVariables>
  708. <!-- Some tests cannot run in parallel. Tests that cover -->
  709. <!-- access to the root directory must run in isolation -->
  710. <!-- from anything else that could modify the bucket. -->
  711. <!-- azure tests that cover multi-part upload must run in -->
  712. <!-- isolation, because the file system is configured to -->
  713. <!-- purge existing multi-part upload data on -->
  714. <!-- initialization. MiniYARNCluster has not yet been -->
  715. <!-- changed to handle parallel test execution gracefully. -->
  716. <!-- Exclude all of these tests from parallel execution, -->
  717. <!-- and instead run them sequentially in a separate -->
  718. <!-- Surefire execution step later. -->
  719. <includes>
  720. <include>**/ITest*.java</include>
  721. </includes>
  722. <excludes>
  723. <exclude>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</exclude>
  724. <exclude>**/ITestFileSystemOperationsWithThreads.java</exclude>
  725. <exclude>**/ITestOutOfBandAzureBlobOperationsLive.java</exclude>
  726. <exclude>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</exclude>
  727. <exclude>**/ITestNativeAzureFileSystemConcurrencyLive.java</exclude>
  728. <exclude>**/ITestNativeAzureFileSystemLive.java</exclude>
  729. <exclude>**/ITestNativeAzureFSPageBlobLive.java</exclude>
  730. <exclude>**/ITestAzureBlobFileSystemRandomRead.java</exclude>
  731. <exclude>**/ITestWasbRemoteCallHelper.java</exclude>
  732. <exclude>**/ITestBlockBlobInputStream.java</exclude>
  733. <exclude>**/ITestWasbAbfsCompatibility.java</exclude>
  734. <exclude>**/ITestNativeFileSystemStatistics.java</exclude>
  735. </excludes>
  736. </configuration>
  737. </execution>
  738. <!-- Do a sequential run for tests that cannot handle -->
  739. <!-- parallel execution. -->
  740. <execution>
  741. <id>sequential-integration-tests</id>
  742. <goals>
  743. <goal>integration-test</goal>
  744. <goal>verify</goal>
  745. </goals>
  746. <configuration>
  747. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  748. <trimStackTrace>false</trimStackTrace>
  749. <systemPropertyVariables>
  750. <test.parallel.execution>false</test.parallel.execution>
  751. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  752. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  753. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  754. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  755. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  756. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  757. </systemPropertyVariables>
  758. <includes>
  759. <include>**/ITestWasbAbfsCompatibility.java</include>
  760. <include>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</include>
  761. <include>**/ITestFileSystemOperationsWithThreads.java</include>
  762. <include>**/ITestOutOfBandAzureBlobOperationsLive.java</include>
  763. <include>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</include>
  764. <include>**/ITestNativeAzureFileSystemConcurrencyLive.java</include>
  765. <include>**/ITestNativeAzureFileSystemLive.java</include>
  766. <include>**/ITestNativeAzureFSPageBlobLive.java</include>
  767. <include>**/ITestAzureBlobFileSystemRandomRead.java</include>
  768. <include>**/ITestWasbRemoteCallHelper.java</include>
  769. <include>**/ITestBlockBlobInputStream.java</include>
  770. <include>**/ITestNativeFileSystemStatistics.java</include>
  771. </includes>
  772. </configuration>
  773. </execution>
  774. </executions>
  775. </plugin>
  776. </plugins>
  777. </build>
  778. </profile>
  779. <profile>
  780. <id>sequential-tests</id>
  781. <activation>
  782. <property>
  783. <name>!parallel-tests</name>
  784. </property>
  785. </activation>
  786. <build>
  787. <plugins>
  788. <plugin>
  789. <groupId>org.apache.maven.plugins</groupId>
  790. <artifactId>maven-failsafe-plugin</artifactId>
  791. <executions>
  792. <execution>
  793. <goals>
  794. <goal>integration-test</goal>
  795. <goal>verify</goal>
  796. </goals>
  797. <configuration>
  798. <systemPropertyVariables>
  799. <!-- Propagate scale parameters -->
  800. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  801. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  802. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  803. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  804. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  805. </systemPropertyVariables>
  806. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  807. <trimStackTrace>false</trimStackTrace>
  808. </configuration>
  809. </execution>
  810. </executions>
  811. </plugin>
  812. </plugins>
  813. </build>
  814. </profile>
  815. <!-- Turn on scale tests-->
  816. <profile>
  817. <id>scale</id>
  818. <activation>
  819. <property>
  820. <name>scale</name>
  821. </property>
  822. </activation>
  823. <properties>
  824. <fs.azure.scale.test.enabled>true</fs.azure.scale.test.enabled>
  825. </properties>
  826. </profile>
  827. </profiles>
  828. </project>