pom.xml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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-all</artifactId>
  233. <scope>test</scope>
  234. </dependency>
  235. </dependencies>
  236. <profiles>
  237. <profile>
  238. <id>parallel-tests-wasb</id>
  239. <activation>
  240. <property>
  241. <name>parallel-tests</name>
  242. <value>wasb</value>
  243. </property>
  244. </activation>
  245. <build>
  246. <plugins>
  247. <plugin>
  248. <artifactId>maven-antrun-plugin</artifactId>
  249. <executions>
  250. <execution>
  251. <id>create-parallel-tests-dirs</id>
  252. <phase>test-compile</phase>
  253. <configuration>
  254. <target>
  255. <script language="javascript"><![CDATA[
  256. var baseDirs = [
  257. project.getProperty("test.build.data"),
  258. project.getProperty("test.build.dir"),
  259. project.getProperty("hadoop.tmp.dir")
  260. ];
  261. for (var i in baseDirs) {
  262. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  263. var mkdir = project.createTask("mkdir");
  264. mkdir.setDir(new java.io.File(baseDirs[i], j));
  265. mkdir.perform();
  266. }
  267. }
  268. ]]></script>
  269. </target>
  270. </configuration>
  271. <goals>
  272. <goal>run</goal>
  273. </goals>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-surefire-plugin</artifactId>
  280. <executions>
  281. <execution>
  282. <id>default-test</id>
  283. <goals>
  284. <goal>test</goal>
  285. </goals>
  286. <configuration>
  287. <forkCount>1</forkCount>
  288. <forkCount>${testsThreadCount}</forkCount>
  289. <reuseForks>false</reuseForks>
  290. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  291. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  292. <systemPropertyVariables>
  293. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  294. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  295. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  296. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  297. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  298. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  299. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  300. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  301. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  302. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  303. </systemPropertyVariables>
  304. <includes>
  305. <include>**/azure/Test*.java</include>
  306. <include>**/azure/**/Test*.java</include>
  307. </includes>
  308. <excludes>
  309. <exclude>**/azure/**/TestRollingWindowAverage*.java</exclude>
  310. </excludes>
  311. </configuration>
  312. </execution>
  313. <execution>
  314. <id>serialized-test-wasb</id>
  315. <goals>
  316. <goal>test</goal>
  317. </goals>
  318. <configuration>
  319. <forkCount>1</forkCount>
  320. <reuseForks>false</reuseForks>
  321. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  322. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  323. <systemPropertyVariables>
  324. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  325. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  326. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  327. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  328. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  329. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  330. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  331. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  332. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  333. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  334. </systemPropertyVariables>
  335. <includes>
  336. <include>**/azure/**/TestRollingWindowAverage*.java</include>
  337. </includes>
  338. </configuration>
  339. </execution>
  340. </executions>
  341. </plugin>
  342. <plugin>
  343. <groupId>org.apache.maven.plugins</groupId>
  344. <artifactId>maven-failsafe-plugin</artifactId>
  345. <executions>
  346. <execution>
  347. <id>default-integration-test-wasb</id>
  348. <goals>
  349. <goal>integration-test</goal>
  350. <goal>verify</goal>
  351. </goals>
  352. <configuration>
  353. <forkCount>1</forkCount>
  354. <forkCount>${testsThreadCount}</forkCount>
  355. <reuseForks>false</reuseForks>
  356. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  357. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  358. <trimStackTrace>false</trimStackTrace>
  359. <systemPropertyVariables>
  360. <!-- Tell tests that they are being executed in parallel -->
  361. <test.parallel.execution>true</test.parallel.execution>
  362. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  363. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  364. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  365. <!-- Due to a Maven quirk, setting this to just -->
  366. <!-- surefire.forkNumber won't do the parameter -->
  367. <!-- substitution. Putting a prefix in front of it like -->
  368. <!-- "fork-" makes it work. -->
  369. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  370. <!-- Propagate scale parameters -->
  371. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  372. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  373. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  374. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  375. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  376. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  377. </systemPropertyVariables>
  378. <!-- Some tests cannot run in parallel-->
  379. <includes>
  380. <include>**/azure/ITest*.java</include>
  381. <include>**/azure/**/ITest*.java</include>
  382. </includes>
  383. <excludes>
  384. <exclude>**/azure/ITestNativeFileSystemStatistics.java</exclude>
  385. </excludes>
  386. </configuration>
  387. </execution>
  388. <!-- Do a sequential run for tests that cannot handle -->
  389. <!-- parallel execution. -->
  390. <execution>
  391. <id>sequential-integration-tests-wasb</id>
  392. <goals>
  393. <goal>integration-test</goal>
  394. <goal>verify</goal>
  395. </goals>
  396. <configuration>
  397. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  398. <trimStackTrace>false</trimStackTrace>
  399. <systemPropertyVariables>
  400. <test.parallel.execution>false</test.parallel.execution>
  401. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  402. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  403. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  404. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  405. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  406. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  407. </systemPropertyVariables>
  408. <includes>
  409. <include>**/azure/ITestNativeFileSystemStatistics.java</include>
  410. </includes>
  411. </configuration>
  412. </execution>
  413. </executions>
  414. </plugin>
  415. </plugins>
  416. </build>
  417. </profile>
  418. <profile>
  419. <id>parallel-tests-abfs</id>
  420. <activation>
  421. <property>
  422. <name>parallel-tests</name>
  423. <value>abfs</value>
  424. </property>
  425. </activation>
  426. <build>
  427. <plugins>
  428. <plugin>
  429. <artifactId>maven-antrun-plugin</artifactId>
  430. <executions>
  431. <execution>
  432. <id>create-parallel-tests-dirs</id>
  433. <phase>test-compile</phase>
  434. <configuration>
  435. <target>
  436. <script language="javascript"><![CDATA[
  437. var baseDirs = [
  438. project.getProperty("test.build.data"),
  439. project.getProperty("test.build.dir"),
  440. project.getProperty("hadoop.tmp.dir")
  441. ];
  442. for (var i in baseDirs) {
  443. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  444. var mkdir = project.createTask("mkdir");
  445. mkdir.setDir(new java.io.File(baseDirs[i], j));
  446. mkdir.perform();
  447. }
  448. }
  449. ]]></script>
  450. </target>
  451. </configuration>
  452. <goals>
  453. <goal>run</goal>
  454. </goals>
  455. </execution>
  456. </executions>
  457. </plugin>
  458. <plugin>
  459. <groupId>org.apache.maven.plugins</groupId>
  460. <artifactId>maven-surefire-plugin</artifactId>
  461. <executions>
  462. <execution>
  463. <id>default-test</id>
  464. <goals>
  465. <goal>test</goal>
  466. </goals>
  467. <configuration>
  468. <forkCount>${testsThreadCount}</forkCount>
  469. <reuseForks>false</reuseForks>
  470. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  471. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  472. <systemPropertyVariables>
  473. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  474. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  475. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  476. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  477. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  478. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  479. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  480. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  481. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  482. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  483. </systemPropertyVariables>
  484. <includes>
  485. <include>**/azurebfs/Test*.java</include>
  486. <include>**/azurebfs/**/Test*.java</include>
  487. </includes>
  488. </configuration>
  489. </execution>
  490. </executions>
  491. </plugin>
  492. <plugin>
  493. <groupId>org.apache.maven.plugins</groupId>
  494. <artifactId>maven-failsafe-plugin</artifactId>
  495. <executions>
  496. <execution>
  497. <id>integration-test-abfs-parallel-classesAndMethods</id>
  498. <goals>
  499. <goal>integration-test</goal>
  500. <goal>verify</goal>
  501. </goals>
  502. <configuration>
  503. <forkCount>${testsThreadCount}</forkCount>
  504. <reuseForks>true</reuseForks>
  505. <parallel>both</parallel>
  506. <threadCount>${testsThreadCount}</threadCount>
  507. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  508. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  509. <trimStackTrace>false</trimStackTrace>
  510. <systemPropertyVariables>
  511. <!-- Tell tests that they are being executed in parallel -->
  512. <test.parallel.execution>true</test.parallel.execution>
  513. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  514. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  515. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  516. <!-- Due to a Maven quirk, setting this to just -->
  517. <!-- surefire.forkNumber won't do the parameter -->
  518. <!-- substitution. Putting a prefix in front of it like -->
  519. <!-- "fork-" makes it work. -->
  520. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  521. <!-- Propagate scale parameters -->
  522. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  523. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  524. </systemPropertyVariables>
  525. <includes>
  526. <include>**/azurebfs/ITest*.java</include>
  527. <include>**/azurebfs/**/ITest*.java</include>
  528. </includes>
  529. <excludes>
  530. <exclude>**/azurebfs/contract/ITest*.java</exclude>
  531. <exclude>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</exclude>
  532. <exclude>**/azurebfs/ITestAbfsReadWriteAndSeek.java</exclude>
  533. <exclude>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</exclude>
  534. </excludes>
  535. </configuration>
  536. </execution>
  537. <execution>
  538. <id>integration-test-abfs-parallel-classes</id>
  539. <goals>
  540. <goal>integration-test</goal>
  541. <goal>verify</goal>
  542. </goals>
  543. <configuration>
  544. <forkCount>${testsThreadCount}</forkCount>
  545. <reuseForks>false</reuseForks>
  546. <!--NOTICE: hadoop contract tests methods can not be ran in parallel-->
  547. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  548. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  549. <trimStackTrace>false</trimStackTrace>
  550. <systemPropertyVariables>
  551. <!-- Tell tests that they are being executed in parallel -->
  552. <test.parallel.execution>true</test.parallel.execution>
  553. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  554. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  555. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  556. <!-- Due to a Maven quirk, setting this to just -->
  557. <!-- surefire.forkNumber won't do the parameter -->
  558. <!-- substitution. Putting a prefix in front of it like -->
  559. <!-- "fork-" makes it work. -->
  560. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  561. <!-- Propagate scale parameters -->
  562. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  563. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  564. </systemPropertyVariables>
  565. <includes>
  566. <include>**/azurebfs/contract/ITest*.java</include>
  567. <include>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</include>
  568. <include>**/azurebfs/ITestAbfsReadWriteAndSeek.java</include>
  569. <include>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</include>
  570. </includes>
  571. </configuration>
  572. </execution>
  573. </executions>
  574. </plugin>
  575. </plugins>
  576. </build>
  577. </profile>
  578. <profile>
  579. <id>parallel-tests</id>
  580. <activation>
  581. <property>
  582. <name>parallel-tests</name>
  583. <value>both</value>
  584. </property>
  585. </activation>
  586. <build>
  587. <plugins>
  588. <plugin>
  589. <artifactId>maven-antrun-plugin</artifactId>
  590. <executions>
  591. <execution>
  592. <id>create-parallel-tests-dirs</id>
  593. <phase>test-compile</phase>
  594. <configuration>
  595. <target>
  596. <script language="javascript"><![CDATA[
  597. var baseDirs = [
  598. project.getProperty("test.build.data"),
  599. project.getProperty("test.build.dir"),
  600. project.getProperty("hadoop.tmp.dir")
  601. ];
  602. for (var i in baseDirs) {
  603. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  604. var mkdir = project.createTask("mkdir");
  605. mkdir.setDir(new java.io.File(baseDirs[i], j));
  606. mkdir.perform();
  607. }
  608. }
  609. ]]></script>
  610. </target>
  611. </configuration>
  612. <goals>
  613. <goal>run</goal>
  614. </goals>
  615. </execution>
  616. </executions>
  617. </plugin>
  618. <plugin>
  619. <groupId>org.apache.maven.plugins</groupId>
  620. <artifactId>maven-surefire-plugin</artifactId>
  621. <executions>
  622. <execution>
  623. <id>default-test</id>
  624. <goals>
  625. <goal>test</goal>
  626. </goals>
  627. <configuration>
  628. <forkCount>1</forkCount>
  629. <forkCount>${testsThreadCount}</forkCount>
  630. <reuseForks>false</reuseForks>
  631. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  632. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  633. <systemPropertyVariables>
  634. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  635. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  636. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  637. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  638. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  639. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  640. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  641. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  642. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  643. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  644. </systemPropertyVariables>
  645. <includes>
  646. <include>**/Test*.java</include>
  647. </includes>
  648. <excludes>
  649. <exclude>**/TestRollingWindowAverage*.java</exclude>
  650. </excludes>
  651. </configuration>
  652. </execution>
  653. <execution>
  654. <id>serialized-test</id>
  655. <goals>
  656. <goal>test</goal>
  657. </goals>
  658. <configuration>
  659. <forkCount>1</forkCount>
  660. <reuseForks>false</reuseForks>
  661. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  662. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  663. <systemPropertyVariables>
  664. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  665. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  666. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  667. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  668. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  669. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  670. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  671. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  672. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  673. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  674. </systemPropertyVariables>
  675. <includes>
  676. <include>**/TestRollingWindowAverage*.java</include>
  677. </includes>
  678. </configuration>
  679. </execution>
  680. </executions>
  681. </plugin>
  682. <plugin>
  683. <groupId>org.apache.maven.plugins</groupId>
  684. <artifactId>maven-failsafe-plugin</artifactId>
  685. <executions>
  686. <execution>
  687. <id>default-integration-test</id>
  688. <goals>
  689. <goal>integration-test</goal>
  690. <goal>verify</goal>
  691. </goals>
  692. <configuration>
  693. <forkCount>${testsThreadCount}</forkCount>
  694. <reuseForks>false</reuseForks>
  695. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  696. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  697. <trimStackTrace>false</trimStackTrace>
  698. <systemPropertyVariables>
  699. <!-- Tell tests that they are being executed in parallel -->
  700. <test.parallel.execution>true</test.parallel.execution>
  701. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  702. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  703. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  704. <!-- Due to a Maven quirk, setting this to just -->
  705. <!-- surefire.forkNumber won't do the parameter -->
  706. <!-- substitution. Putting a prefix in front of it like -->
  707. <!-- "fork-" makes it work. -->
  708. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  709. <!-- Propagate scale parameters -->
  710. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  711. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  712. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  713. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  714. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  715. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  716. </systemPropertyVariables>
  717. <!-- Some tests cannot run in parallel. Tests that cover -->
  718. <!-- access to the root directory must run in isolation -->
  719. <!-- from anything else that could modify the bucket. -->
  720. <!-- azure tests that cover multi-part upload must run in -->
  721. <!-- isolation, because the file system is configured to -->
  722. <!-- purge existing multi-part upload data on -->
  723. <!-- initialization. MiniYARNCluster has not yet been -->
  724. <!-- changed to handle parallel test execution gracefully. -->
  725. <!-- Exclude all of these tests from parallel execution, -->
  726. <!-- and instead run them sequentially in a separate -->
  727. <!-- Surefire execution step later. -->
  728. <includes>
  729. <include>**/ITest*.java</include>
  730. </includes>
  731. <excludes>
  732. <exclude>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</exclude>
  733. <exclude>**/ITestFileSystemOperationsWithThreads.java</exclude>
  734. <exclude>**/ITestOutOfBandAzureBlobOperationsLive.java</exclude>
  735. <exclude>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</exclude>
  736. <exclude>**/ITestNativeAzureFileSystemConcurrencyLive.java</exclude>
  737. <exclude>**/ITestNativeAzureFileSystemLive.java</exclude>
  738. <exclude>**/ITestNativeAzureFSPageBlobLive.java</exclude>
  739. <exclude>**/ITestAzureBlobFileSystemRandomRead.java</exclude>
  740. <exclude>**/ITestWasbRemoteCallHelper.java</exclude>
  741. <exclude>**/ITestBlockBlobInputStream.java</exclude>
  742. <exclude>**/ITestWasbAbfsCompatibility.java</exclude>
  743. <exclude>**/ITestNativeFileSystemStatistics.java</exclude>
  744. </excludes>
  745. </configuration>
  746. </execution>
  747. <!-- Do a sequential run for tests that cannot handle -->
  748. <!-- parallel execution. -->
  749. <execution>
  750. <id>sequential-integration-tests</id>
  751. <goals>
  752. <goal>integration-test</goal>
  753. <goal>verify</goal>
  754. </goals>
  755. <configuration>
  756. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  757. <trimStackTrace>false</trimStackTrace>
  758. <systemPropertyVariables>
  759. <test.parallel.execution>false</test.parallel.execution>
  760. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  761. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  762. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  763. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  764. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  765. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  766. </systemPropertyVariables>
  767. <includes>
  768. <include>**/ITestWasbAbfsCompatibility.java</include>
  769. <include>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</include>
  770. <include>**/ITestFileSystemOperationsWithThreads.java</include>
  771. <include>**/ITestOutOfBandAzureBlobOperationsLive.java</include>
  772. <include>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</include>
  773. <include>**/ITestNativeAzureFileSystemConcurrencyLive.java</include>
  774. <include>**/ITestNativeAzureFileSystemLive.java</include>
  775. <include>**/ITestNativeAzureFSPageBlobLive.java</include>
  776. <include>**/ITestAzureBlobFileSystemRandomRead.java</include>
  777. <include>**/ITestWasbRemoteCallHelper.java</include>
  778. <include>**/ITestBlockBlobInputStream.java</include>
  779. <include>**/ITestNativeFileSystemStatistics.java</include>
  780. </includes>
  781. </configuration>
  782. </execution>
  783. </executions>
  784. </plugin>
  785. </plugins>
  786. </build>
  787. </profile>
  788. <profile>
  789. <id>sequential-tests</id>
  790. <activation>
  791. <property>
  792. <name>!parallel-tests</name>
  793. </property>
  794. </activation>
  795. <build>
  796. <plugins>
  797. <plugin>
  798. <groupId>org.apache.maven.plugins</groupId>
  799. <artifactId>maven-failsafe-plugin</artifactId>
  800. <executions>
  801. <execution>
  802. <goals>
  803. <goal>integration-test</goal>
  804. <goal>verify</goal>
  805. </goals>
  806. <configuration>
  807. <systemPropertyVariables>
  808. <!-- Propagate scale parameters -->
  809. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  810. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  811. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  812. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  813. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  814. </systemPropertyVariables>
  815. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  816. <trimStackTrace>false</trimStackTrace>
  817. </configuration>
  818. </execution>
  819. </executions>
  820. </plugin>
  821. </plugins>
  822. </build>
  823. </profile>
  824. <!-- Turn on scale tests-->
  825. <profile>
  826. <id>scale</id>
  827. <activation>
  828. <property>
  829. <name>scale</name>
  830. </property>
  831. </activation>
  832. <properties>
  833. <fs.azure.scale.test.enabled>true</fs.azure.scale.test.enabled>
  834. </properties>
  835. </profile>
  836. </profiles>
  837. </project>