pom.xml 43 KB

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