index.html 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!--
  3. | Generated by Apache Maven Doxia at 2025-05-04
  4. | Rendered using Apache Maven Stylus Skin 1.5
  5. -->
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <title>Apache Hadoop Azure support &#x2013; Hadoop Azure Support: ABFS - Azure Data Lake Storage Gen2</title>
  9. <style type="text/css" media="all">
  10. @import url("./css/maven-base.css");
  11. @import url("./css/maven-theme.css");
  12. @import url("./css/site.css");
  13. </style>
  14. <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
  15. <meta name="Date-Revision-yyyymmdd" content="20250504" />
  16. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  17. </head>
  18. <body class="composite">
  19. <div id="banner">
  20. <a href="http://hadoop.apache.org/" id="bannerLeft">
  21. <img src="http://hadoop.apache.org/images/hadoop-logo.jpg" alt="" />
  22. </a>
  23. <a href="http://www.apache.org/" id="bannerRight">
  24. <img src="http://www.apache.org/images/asf_logo_wide.png" alt="" />
  25. </a>
  26. <div class="clear">
  27. <hr/>
  28. </div>
  29. </div>
  30. <div id="breadcrumbs">
  31. <div class="xright"> <a href="http://wiki.apache.org/hadoop" class="externalLink">Wiki</a>
  32. |
  33. <a href="https://gitbox.apache.org/repos/asf/hadoop.git" class="externalLink">git</a>
  34. &nbsp;| Last Published: 2025-05-04
  35. &nbsp;| Version: 3.5.0-SNAPSHOT
  36. </div>
  37. <div class="clear">
  38. <hr/>
  39. </div>
  40. </div>
  41. <div id="leftColumn">
  42. <div id="navcolumn">
  43. <h5>General</h5>
  44. <ul>
  45. <li class="none">
  46. <a href="../index.html">Overview</a>
  47. </li>
  48. <li class="none">
  49. <a href="../hadoop-project-dist/hadoop-common/SingleCluster.html">Single Node Setup</a>
  50. </li>
  51. <li class="none">
  52. <a href="../hadoop-project-dist/hadoop-common/ClusterSetup.html">Cluster Setup</a>
  53. </li>
  54. <li class="none">
  55. <a href="../hadoop-project-dist/hadoop-common/CommandsManual.html">Commands Reference</a>
  56. </li>
  57. <li class="none">
  58. <a href="../hadoop-project-dist/hadoop-common/FileSystemShell.html">FileSystem Shell</a>
  59. </li>
  60. <li class="none">
  61. <a href="../hadoop-project-dist/hadoop-common/Compatibility.html">Compatibility Specification</a>
  62. </li>
  63. <li class="none">
  64. <a href="../hadoop-project-dist/hadoop-common/DownstreamDev.html">Downstream Developer's Guide</a>
  65. </li>
  66. <li class="none">
  67. <a href="../hadoop-project-dist/hadoop-common/AdminCompatibilityGuide.html">Admin Compatibility Guide</a>
  68. </li>
  69. <li class="none">
  70. <a href="../hadoop-project-dist/hadoop-common/InterfaceClassification.html">Interface Classification</a>
  71. </li>
  72. <li class="none">
  73. <a href="../hadoop-project-dist/hadoop-common/filesystem/index.html">FileSystem Specification</a>
  74. </li>
  75. </ul>
  76. <h5>Common</h5>
  77. <ul>
  78. <li class="none">
  79. <a href="../hadoop-project-dist/hadoop-common/CLIMiniCluster.html">CLI Mini Cluster</a>
  80. </li>
  81. <li class="none">
  82. <a href="../hadoop-project-dist/hadoop-common/FairCallQueue.html">Fair Call Queue</a>
  83. </li>
  84. <li class="none">
  85. <a href="../hadoop-project-dist/hadoop-common/NativeLibraries.html">Native Libraries</a>
  86. </li>
  87. <li class="none">
  88. <a href="../hadoop-project-dist/hadoop-common/Superusers.html">Proxy User</a>
  89. </li>
  90. <li class="none">
  91. <a href="../hadoop-project-dist/hadoop-common/RackAwareness.html">Rack Awareness</a>
  92. </li>
  93. <li class="none">
  94. <a href="../hadoop-project-dist/hadoop-common/SecureMode.html">Secure Mode</a>
  95. </li>
  96. <li class="none">
  97. <a href="../hadoop-project-dist/hadoop-common/ServiceLevelAuth.html">Service Level Authorization</a>
  98. </li>
  99. <li class="none">
  100. <a href="../hadoop-project-dist/hadoop-common/HttpAuthentication.html">HTTP Authentication</a>
  101. </li>
  102. <li class="none">
  103. <a href="../hadoop-project-dist/hadoop-common/CredentialProviderAPI.html">Credential Provider API</a>
  104. </li>
  105. <li class="none">
  106. <a href="../hadoop-kms/index.html">Hadoop KMS</a>
  107. </li>
  108. <li class="none">
  109. <a href="../hadoop-project-dist/hadoop-common/Tracing.html">Tracing</a>
  110. </li>
  111. <li class="none">
  112. <a href="../hadoop-project-dist/hadoop-common/UnixShellGuide.html">Unix Shell Guide</a>
  113. </li>
  114. <li class="none">
  115. <a href="../hadoop-project-dist/hadoop-common/registry/index.html">Registry</a>
  116. </li>
  117. <li class="none">
  118. <a href="../hadoop-project-dist/hadoop-common/AsyncProfilerServlet.html">Async Profiler</a>
  119. </li>
  120. </ul>
  121. <h5>HDFS</h5>
  122. <ul>
  123. <li class="none">
  124. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsDesign.html">Architecture</a>
  125. </li>
  126. <li class="none">
  127. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html">User Guide</a>
  128. </li>
  129. <li class="none">
  130. <a href="../hadoop-project-dist/hadoop-hdfs/HDFSCommands.html">Commands Reference</a>
  131. </li>
  132. <li class="none">
  133. <a href="../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html">NameNode HA With QJM</a>
  134. </li>
  135. <li class="none">
  136. <a href="../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html">NameNode HA With NFS</a>
  137. </li>
  138. <li class="none">
  139. <a href="../hadoop-project-dist/hadoop-hdfs/ObserverNameNode.html">Observer NameNode</a>
  140. </li>
  141. <li class="none">
  142. <a href="../hadoop-project-dist/hadoop-hdfs/Federation.html">Federation</a>
  143. </li>
  144. <li class="none">
  145. <a href="../hadoop-project-dist/hadoop-hdfs/ViewFs.html">ViewFs</a>
  146. </li>
  147. <li class="none">
  148. <a href="../hadoop-project-dist/hadoop-hdfs/ViewFsOverloadScheme.html">ViewFsOverloadScheme</a>
  149. </li>
  150. <li class="none">
  151. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html">Snapshots</a>
  152. </li>
  153. <li class="none">
  154. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsEditsViewer.html">Edits Viewer</a>
  155. </li>
  156. <li class="none">
  157. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html">Image Viewer</a>
  158. </li>
  159. <li class="none">
  160. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html">Permissions and HDFS</a>
  161. </li>
  162. <li class="none">
  163. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html">Quotas and HDFS</a>
  164. </li>
  165. <li class="none">
  166. <a href="../hadoop-project-dist/hadoop-hdfs/LibHdfs.html">libhdfs (C API)</a>
  167. </li>
  168. <li class="none">
  169. <a href="../hadoop-project-dist/hadoop-hdfs/WebHDFS.html">WebHDFS (REST API)</a>
  170. </li>
  171. <li class="none">
  172. <a href="../hadoop-hdfs-httpfs/index.html">HttpFS</a>
  173. </li>
  174. <li class="none">
  175. <a href="../hadoop-project-dist/hadoop-hdfs/ShortCircuitLocalReads.html">Short Circuit Local Reads</a>
  176. </li>
  177. <li class="none">
  178. <a href="../hadoop-project-dist/hadoop-hdfs/CentralizedCacheManagement.html">Centralized Cache Management</a>
  179. </li>
  180. <li class="none">
  181. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsNfsGateway.html">NFS Gateway</a>
  182. </li>
  183. <li class="none">
  184. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html">Rolling Upgrade</a>
  185. </li>
  186. <li class="none">
  187. <a href="../hadoop-project-dist/hadoop-hdfs/ExtendedAttributes.html">Extended Attributes</a>
  188. </li>
  189. <li class="none">
  190. <a href="../hadoop-project-dist/hadoop-hdfs/TransparentEncryption.html">Transparent Encryption</a>
  191. </li>
  192. <li class="none">
  193. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsMultihoming.html">Multihoming</a>
  194. </li>
  195. <li class="none">
  196. <a href="../hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html">Storage Policies</a>
  197. </li>
  198. <li class="none">
  199. <a href="../hadoop-project-dist/hadoop-hdfs/MemoryStorage.html">Memory Storage Support</a>
  200. </li>
  201. <li class="none">
  202. <a href="../hadoop-project-dist/hadoop-hdfs/SLGUserGuide.html">Synthetic Load Generator</a>
  203. </li>
  204. <li class="none">
  205. <a href="../hadoop-project-dist/hadoop-hdfs/HDFSErasureCoding.html">Erasure Coding</a>
  206. </li>
  207. <li class="none">
  208. <a href="../hadoop-project-dist/hadoop-hdfs/HDFSDiskbalancer.html">Disk Balancer</a>
  209. </li>
  210. <li class="none">
  211. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsUpgradeDomain.html">Upgrade Domain</a>
  212. </li>
  213. <li class="none">
  214. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsDataNodeAdminGuide.html">DataNode Admin</a>
  215. </li>
  216. <li class="none">
  217. <a href="../hadoop-project-dist/hadoop-hdfs-rbf/HDFSRouterFederation.html">Router Federation</a>
  218. </li>
  219. <li class="none">
  220. <a href="../hadoop-project-dist/hadoop-hdfs/HdfsProvidedStorage.html">Provided Storage</a>
  221. </li>
  222. </ul>
  223. <h5>MapReduce</h5>
  224. <ul>
  225. <li class="none">
  226. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html">Tutorial</a>
  227. </li>
  228. <li class="none">
  229. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredCommands.html">Commands Reference</a>
  230. </li>
  231. <li class="none">
  232. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduce_Compatibility_Hadoop1_Hadoop2.html">Compatibility with 1.x</a>
  233. </li>
  234. <li class="none">
  235. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/EncryptedShuffle.html">Encrypted Shuffle</a>
  236. </li>
  237. <li class="none">
  238. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/PluggableShuffleAndPluggableSort.html">Pluggable Shuffle/Sort</a>
  239. </li>
  240. <li class="none">
  241. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/DistributedCacheDeploy.html">Distributed Cache Deploy</a>
  242. </li>
  243. <li class="none">
  244. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/SharedCacheSupport.html">Support for YARN Shared Cache</a>
  245. </li>
  246. </ul>
  247. <h5>MapReduce REST APIs</h5>
  248. <ul>
  249. <li class="none">
  250. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredAppMasterRest.html">MR Application Master</a>
  251. </li>
  252. <li class="none">
  253. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-hs/HistoryServerRest.html">MR History Server</a>
  254. </li>
  255. </ul>
  256. <h5>YARN</h5>
  257. <ul>
  258. <li class="none">
  259. <a href="../hadoop-yarn/hadoop-yarn-site/YARN.html">Architecture</a>
  260. </li>
  261. <li class="none">
  262. <a href="../hadoop-yarn/hadoop-yarn-site/YarnCommands.html">Commands Reference</a>
  263. </li>
  264. <li class="none">
  265. <a href="../hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html">Capacity Scheduler</a>
  266. </li>
  267. <li class="none">
  268. <a href="../hadoop-yarn/hadoop-yarn-site/FairScheduler.html">Fair Scheduler</a>
  269. </li>
  270. <li class="none">
  271. <a href="../hadoop-yarn/hadoop-yarn-site/ResourceManagerRestart.html">ResourceManager Restart</a>
  272. </li>
  273. <li class="none">
  274. <a href="../hadoop-yarn/hadoop-yarn-site/ResourceManagerHA.html">ResourceManager HA</a>
  275. </li>
  276. <li class="none">
  277. <a href="../hadoop-yarn/hadoop-yarn-site/ResourceModel.html">Resource Model</a>
  278. </li>
  279. <li class="none">
  280. <a href="../hadoop-yarn/hadoop-yarn-site/NodeLabel.html">Node Labels</a>
  281. </li>
  282. <li class="none">
  283. <a href="../hadoop-yarn/hadoop-yarn-site/NodeAttributes.html">Node Attributes</a>
  284. </li>
  285. <li class="none">
  286. <a href="../hadoop-yarn/hadoop-yarn-site/WebApplicationProxy.html">Web Application Proxy</a>
  287. </li>
  288. <li class="none">
  289. <a href="../hadoop-yarn/hadoop-yarn-site/TimelineServer.html">Timeline Server</a>
  290. </li>
  291. <li class="none">
  292. <a href="../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html">Timeline Service V.2</a>
  293. </li>
  294. <li class="none">
  295. <a href="../hadoop-yarn/hadoop-yarn-site/WritingYarnApplications.html">Writing YARN Applications</a>
  296. </li>
  297. <li class="none">
  298. <a href="../hadoop-yarn/hadoop-yarn-site/YarnApplicationSecurity.html">YARN Application Security</a>
  299. </li>
  300. <li class="none">
  301. <a href="../hadoop-yarn/hadoop-yarn-site/NodeManager.html">NodeManager</a>
  302. </li>
  303. <li class="none">
  304. <a href="../hadoop-yarn/hadoop-yarn-site/DockerContainers.html">Running Applications in Docker Containers</a>
  305. </li>
  306. <li class="none">
  307. <a href="../hadoop-yarn/hadoop-yarn-site/RuncContainers.html">Running Applications in runC Containers</a>
  308. </li>
  309. <li class="none">
  310. <a href="../hadoop-yarn/hadoop-yarn-site/NodeManagerCgroups.html">Using CGroups</a>
  311. </li>
  312. <li class="none">
  313. <a href="../hadoop-yarn/hadoop-yarn-site/SecureContainer.html">Secure Containers</a>
  314. </li>
  315. <li class="none">
  316. <a href="../hadoop-yarn/hadoop-yarn-site/ReservationSystem.html">Reservation System</a>
  317. </li>
  318. <li class="none">
  319. <a href="../hadoop-yarn/hadoop-yarn-site/GracefulDecommission.html">Graceful Decommission</a>
  320. </li>
  321. <li class="none">
  322. <a href="../hadoop-yarn/hadoop-yarn-site/OpportunisticContainers.html">Opportunistic Containers</a>
  323. </li>
  324. <li class="none">
  325. <a href="../hadoop-yarn/hadoop-yarn-site/Federation.html">YARN Federation</a>
  326. </li>
  327. <li class="none">
  328. <a href="../hadoop-yarn/hadoop-yarn-site/SharedCache.html">Shared Cache</a>
  329. </li>
  330. <li class="none">
  331. <a href="../hadoop-yarn/hadoop-yarn-site/UsingGpus.html">Using GPU</a>
  332. </li>
  333. <li class="none">
  334. <a href="../hadoop-yarn/hadoop-yarn-site/UsingFPGA.html">Using FPGA</a>
  335. </li>
  336. <li class="none">
  337. <a href="../hadoop-yarn/hadoop-yarn-site/PlacementConstraints.html">Placement Constraints</a>
  338. </li>
  339. <li class="none">
  340. <a href="../hadoop-yarn/hadoop-yarn-site/YarnUI2.html">YARN UI2</a>
  341. </li>
  342. </ul>
  343. <h5>YARN REST APIs</h5>
  344. <ul>
  345. <li class="none">
  346. <a href="../hadoop-yarn/hadoop-yarn-site/WebServicesIntro.html">Introduction</a>
  347. </li>
  348. <li class="none">
  349. <a href="../hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html">Resource Manager</a>
  350. </li>
  351. <li class="none">
  352. <a href="../hadoop-yarn/hadoop-yarn-site/NodeManagerRest.html">Node Manager</a>
  353. </li>
  354. <li class="none">
  355. <a href="../hadoop-yarn/hadoop-yarn-site/TimelineServer.html#Timeline_Server_REST_API_v1">Timeline Server</a>
  356. </li>
  357. <li class="none">
  358. <a href="../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html#Timeline_Service_v.2_REST_API">Timeline Service V.2</a>
  359. </li>
  360. </ul>
  361. <h5>YARN Service</h5>
  362. <ul>
  363. <li class="none">
  364. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/Overview.html">Overview</a>
  365. </li>
  366. <li class="none">
  367. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html">QuickStart</a>
  368. </li>
  369. <li class="none">
  370. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/Concepts.html">Concepts</a>
  371. </li>
  372. <li class="none">
  373. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/YarnServiceAPI.html">Yarn Service API</a>
  374. </li>
  375. <li class="none">
  376. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html">Service Discovery</a>
  377. </li>
  378. <li class="none">
  379. <a href="../hadoop-yarn/hadoop-yarn-site/yarn-service/SystemServices.html">System Services</a>
  380. </li>
  381. </ul>
  382. <h5>Hadoop Compatible File Systems</h5>
  383. <ul>
  384. <li class="none">
  385. <a href="../hadoop-aliyun/tools/hadoop-aliyun/index.html">Aliyun OSS</a>
  386. </li>
  387. <li class="none">
  388. <a href="../hadoop-aws/tools/hadoop-aws/index.html">Amazon S3</a>
  389. </li>
  390. <li class="none">
  391. <a href="../hadoop-azure/index.html">Azure Blob Storage</a>
  392. </li>
  393. <li class="none">
  394. <a href="../hadoop-azure-datalake/index.html">Azure Data Lake Storage</a>
  395. </li>
  396. <li class="none">
  397. <a href="../hadoop-cos/cloud-storage/index.html">Tencent COS</a>
  398. </li>
  399. <li class="none">
  400. <a href="../hadoop-huaweicloud/index.html">Huaweicloud OBS</a>
  401. </li>
  402. <li class="none">
  403. <a href="../hadoop-tos/cloud-storage/index.html">VolcanoEngine TOS</a>
  404. </li>
  405. </ul>
  406. <h5>Auth</h5>
  407. <ul>
  408. <li class="none">
  409. <a href="../hadoop-auth/index.html">Overview</a>
  410. </li>
  411. <li class="none">
  412. <a href="../hadoop-auth/Examples.html">Examples</a>
  413. </li>
  414. <li class="none">
  415. <a href="../hadoop-auth/Configuration.html">Configuration</a>
  416. </li>
  417. <li class="none">
  418. <a href="../hadoop-auth/BuildingIt.html">Building</a>
  419. </li>
  420. </ul>
  421. <h5>Tools</h5>
  422. <ul>
  423. <li class="none">
  424. <a href="../hadoop-streaming/HadoopStreaming.html">Hadoop Streaming</a>
  425. </li>
  426. <li class="none">
  427. <a href="../hadoop-archives/HadoopArchives.html">Hadoop Archives</a>
  428. </li>
  429. <li class="none">
  430. <a href="../hadoop-archive-logs/HadoopArchiveLogs.html">Hadoop Archive Logs</a>
  431. </li>
  432. <li class="none">
  433. <a href="../hadoop-distcp/DistCp.html">DistCp</a>
  434. </li>
  435. <li class="none">
  436. <a href="../hadoop-federation-balance/HDFSFederationBalance.html">HDFS Federation Balance</a>
  437. </li>
  438. <li class="none">
  439. <a href="../hadoop-gridmix/GridMix.html">GridMix</a>
  440. </li>
  441. <li class="none">
  442. <a href="../hadoop-rumen/Rumen.html">Rumen</a>
  443. </li>
  444. <li class="none">
  445. <a href="../hadoop-resourceestimator/ResourceEstimator.html">Resource Estimator Service</a>
  446. </li>
  447. <li class="none">
  448. <a href="../hadoop-sls/SchedulerLoadSimulator.html">Scheduler Load Simulator</a>
  449. </li>
  450. <li class="none">
  451. <a href="../hadoop-project-dist/hadoop-common/Benchmarking.html">Hadoop Benchmarking</a>
  452. </li>
  453. <li class="none">
  454. <a href="../hadoop-dynamometer/Dynamometer.html">Dynamometer</a>
  455. </li>
  456. </ul>
  457. <h5>Reference</h5>
  458. <ul>
  459. <li class="none">
  460. <a href="../hadoop-project-dist/hadoop-common/release/">Changelog and Release Notes</a>
  461. </li>
  462. <li class="none">
  463. <a href="../api/index.html">Java API docs</a>
  464. </li>
  465. <li class="none">
  466. <a href="../hadoop-project-dist/hadoop-common/UnixShellAPI.html">Unix Shell API</a>
  467. </li>
  468. <li class="none">
  469. <a href="../hadoop-project-dist/hadoop-common/Metrics.html">Metrics</a>
  470. </li>
  471. </ul>
  472. <h5>Configuration</h5>
  473. <ul>
  474. <li class="none">
  475. <a href="../hadoop-project-dist/hadoop-common/core-default.xml">core-default.xml</a>
  476. </li>
  477. <li class="none">
  478. <a href="../hadoop-project-dist/hadoop-hdfs/hdfs-default.xml">hdfs-default.xml</a>
  479. </li>
  480. <li class="none">
  481. <a href="../hadoop-project-dist/hadoop-hdfs-rbf/hdfs-rbf-default.xml">hdfs-rbf-default.xml</a>
  482. </li>
  483. <li class="none">
  484. <a href="../hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml">mapred-default.xml</a>
  485. </li>
  486. <li class="none">
  487. <a href="../hadoop-yarn/hadoop-yarn-common/yarn-default.xml">yarn-default.xml</a>
  488. </li>
  489. <li class="none">
  490. <a href="../hadoop-kms/kms-default.html">kms-default.xml</a>
  491. </li>
  492. <li class="none">
  493. <a href="../hadoop-hdfs-httpfs/httpfs-default.html">httpfs-default.xml</a>
  494. </li>
  495. <li class="none">
  496. <a href="../hadoop-project-dist/hadoop-common/DeprecatedProperties.html">Deprecated Properties</a>
  497. </li>
  498. </ul>
  499. <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
  500. <img alt="Built by Maven" src="./images/logos/maven-feather.png"/>
  501. </a>
  502. </div>
  503. </div>
  504. <div id="bodyColumn">
  505. <div id="contentBox">
  506. <!---
  507. Licensed under the Apache License, Version 2.0 (the "License");
  508. you may not use this file except in compliance with the License.
  509. You may obtain a copy of the License at
  510. http://www.apache.org/licenses/LICENSE-2.0
  511. Unless required by applicable law or agreed to in writing, software
  512. distributed under the License is distributed on an "AS IS" BASIS,
  513. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  514. See the License for the specific language governing permissions and
  515. limitations under the License. See accompanying LICENSE file.
  516. -->
  517. <h1>Hadoop Azure Support: ABFS - Azure Data Lake Storage Gen2</h1>
  518. <ul>
  519. <li><a href="#Introduction"> Introduction</a></li>
  520. <li><a href="#Features_of_the_ABFS_connector."> Features of the ABFS connector.</a></li>
  521. <li><a href="#Getting_started">Getting started</a>
  522. <ul>
  523. <li><a href="#Concepts">Concepts</a></li></ul></li>
  524. <li><a href="#Hierarchical_Namespaces_.28and_WASB_Compatibility.29"> Hierarchical Namespaces (and WASB Compatibility)</a>
  525. <ul>
  526. <li><a href="#Creating_an_Azure_Storage_Account"> Creating an Azure Storage Account</a>
  527. <ul>
  528. <li><a href="#Creation_through_the_Azure_Portal">Creation through the Azure Portal</a></li></ul></li>
  529. <li><a href="#Creating_a_new_container"> Creating a new container</a></li>
  530. <li><a href="#Listing_and_examining_containers_of_a_Storage_Account.">Listing and examining containers of a Storage Account.</a></li></ul></li>
  531. <li><a href="#Configuring_ABFS"> Configuring ABFS</a></li>
  532. <li><a href="#Authentication"> Authentication</a>
  533. <ul>
  534. <li><a href="#AAD_Token_fetch_retries"> AAD Token fetch retries</a></li>
  535. <li><a href="#Default:_Shared_Key"> Default: Shared Key</a></li>
  536. <li><a href="#OAuth_2.0_Client_Credentials"> OAuth 2.0 Client Credentials</a></li>
  537. <li><a href="#OAuth_2.0:_Username_and_Password"> OAuth 2.0: Username and Password</a></li>
  538. <li><a href="#OAuth_2.0:_Refresh_Token"> OAuth 2.0: Refresh Token</a></li>
  539. <li><a href="#Azure_Managed_Identity"> Azure Managed Identity</a></li>
  540. <li><a href="#Azure_Workload_Identity"> Azure Workload Identity</a></li>
  541. <li><a href="#Custom_OAuth_2.0_Token_Provider">Custom OAuth 2.0 Token Provider</a></li>
  542. <li><a href="#Delegation_Token_Provider"> Delegation Token Provider</a></li>
  543. <li><a href="#Shared_Access_Signature_.28SAS.29_Token_Provider">Shared Access Signature (SAS) Token Provider</a>
  544. <ul>
  545. <li><a href="#Known_Issues_With_SAS">Known Issues With SAS</a></li>
  546. <li><a href="#Using_User_Delegation_SAS_with_ABFS">Using User Delegation SAS with ABFS</a></li>
  547. <li><a href="#Using_Account.2FService_SAS_with_ABFS">Using Account/Service SAS with ABFS</a></li></ul></li></ul></li>
  548. <li><a href="#Technical_notes"> Technical notes</a>
  549. <ul>
  550. <li><a href="#Proxy_setup"> Proxy setup</a></li>
  551. <li><a href="#Security"> Security</a></li>
  552. <li><a href="#Limitations_of_the_ABFS_connector"> Limitations of the ABFS connector</a></li>
  553. <li><a href="#Consistency_and_Concurrency"> Consistency and Concurrency</a></li>
  554. <li><a href="#Performance_and_Scalability"> Performance and Scalability</a></li>
  555. <li><a href="#Extensibility"> Extensibility</a></li>
  556. <li><a href="#Networking_Layer:">Networking Layer:</a>
  557. <ul>
  558. <li><a href="#ApacheHttpClient_networking_layer_configuration_Options:">ApacheHttpClient networking layer configuration Options:</a></li>
  559. <li><a href="#ApacheHttpClient_classpath_requirements:"> ApacheHttpClient classpath requirements:</a></li></ul></li></ul></li>
  560. <li><a href="#Other_configuration_options"> Other configuration options</a>
  561. <ul>
  562. <li><a href="#Client_Correlation_Options"> Client Correlation Options</a>
  563. <ul>
  564. <li><a href="#a1._Client_CorrelationId_Option"> 1. Client CorrelationId Option</a></li>
  565. <li><a href="#a1._Correlation_IDs_Display_Options"> 1. Correlation IDs Display Options</a></li></ul></li>
  566. <li><a href="#Flush_Options"> Flush Options</a>
  567. <ul>
  568. <li><a href="#a1._Azure_Blob_File_System_Flush_Options"> 1. Azure Blob File System Flush Options</a></li>
  569. <li><a href="#a2._OutputStream_Flush_Options"> 2. OutputStream Flush Options</a></li></ul></li>
  570. <li><a href="#Hundred_Continue_Options"> Hundred Continue Options</a></li>
  571. <li><a href="#Account_level_throttling_Options"> Account level throttling Options</a></li>
  572. <li><a href="#HNS_Check_Options"> HNS Check Options</a></li>
  573. <li><a href="#Access_Options"> Access Options</a></li>
  574. <li><a href="#Operation_Idempotency"> Operation Idempotency</a></li>
  575. <li><a href="#Primary_User_Group_Options"> Primary User Group Options</a></li>
  576. <li><a href="#IO_Options"> IO Options</a></li>
  577. <li><a href="#Security_Options"> Security Options</a></li>
  578. <li><a href="#Encryption_Options"> Encryption Options</a>
  579. <ul>
  580. <li><a href="#Customer-Provided_Global_Key"> Customer-Provided Global Key</a></li>
  581. <li><a href="#Encryption_Context_Provider"> Encryption Context Provider</a></li></ul></li>
  582. <li><a href="#Server_Options"> Server Options</a></li>
  583. <li><a href="#Throttling_Options"> Throttling Options</a></li>
  584. <li><a href="#Rename_Options"> Rename Options</a></li>
  585. <li><a href="#Infinite_Lease_Options"> Infinite Lease Options</a></li>
  586. <li><a href="#Perf_Options"> Perf Options</a>
  587. <ul>
  588. <li><a href="#a1._HTTP_Request_Tracking_Options"> 1. HTTP Request Tracking Options</a></li></ul></li>
  589. <li><a href="#Driver_Metric_Options"> Driver Metric Options</a></li></ul></li>
  590. <li><a href="#Troubleshooting"> Troubleshooting</a>
  591. <ul>
  592. <li><a href="#ClassNotFoundException:_org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem">ClassNotFoundException: org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem</a></li>
  593. <li><a href="#ClassNotFoundException:_com.microsoft.azure.storage.StorageErrorCode">ClassNotFoundException: com.microsoft.azure.storage.StorageErrorCode</a></li>
  594. <li><a href="#Server_failed_to_authenticate_the_request">Server failed to authenticate the request</a></li>
  595. <li><a href="#Configuration_property__something_.dfs.core.windows.net_not_found">Configuration property _something_.dfs.core.windows.net not found</a></li>
  596. <li><a href="#No_such_file_or_directory_when_trying_to_list_a_container">No such file or directory when trying to list a container</a></li>
  597. <li><a href="#a.E2.80.9CHTTP_connection_to_https:.2F.2Flogin.microsoftonline.com.2Fsomething_failed_for_getting_token_from_AzureAD._Http_response:_200_OK.E2.80.9D">&#x201c;HTTP connection to https://login.microsoftonline.com/something failed for getting token from AzureAD. Http response: 200 OK&#x201d;</a></li>
  598. <li><a href="#java.io.IOException:_The_ownership_on_the_staging_directory_.2Ftmp.2Fhadoop-yarn.2Fstaging.2Fuser1.2F.staging_is_not_as_expected._It_is_owned_by_.3Cprincipal_id.3E._The_directory_must_be_owned_by_the_submitter_user1_or_user1">java.io.IOException: The ownership on the staging directory /tmp/hadoop-yarn/staging/user1/.staging is not as expected. It is owned by &lt;principal_id&gt;. The directory must be owned by the submitter user1 or user1</a></li></ul></li>
  599. <li><a href="#Known_Issues"> Known Issues</a></li>
  600. <li><a href="#Testing_ABFS"> Testing ABFS</a></li></ul>
  601. <section>
  602. <h2><a name="Introduction"></a><a name="introduction"></a> Introduction</h2>
  603. <p>The <code>hadoop-azure</code> module provides support for the Azure Data Lake Storage Gen2 storage layer through the &#x201c;abfs&#x201d; connector</p>
  604. <p>To make it part of Apache Hadoop&#x2019;s default classpath, make sure that <code>HADOOP_OPTIONAL_TOOLS</code> environment variable has <code>hadoop-azure</code> in the list, <i>on every machine in the cluster</i></p>
  605. <div class="source">
  606. <div class="source">
  607. <pre>export HADOOP_OPTIONAL_TOOLS=hadoop-azure
  608. </pre></div></div>
  609. <p>You can set this locally in your <code>.profile</code>/<code>.bashrc</code>, but note it won&#x2019;t propagate to jobs running in-cluster.</p>
  610. <p>See also: * <a href="./fns_blob.html">FNS (non-HNS)</a> * <a href="./wasb.html">Legacy-Deprecated-WASB</a> * <a href="./testing_azure.html">Testing</a> * <a href="./wasbToAbfsMigration.html">WASB Migration Config Support</a></p></section><section>
  611. <h2><a name="Features_of_the_ABFS_connector."></a><a name="features"></a> Features of the ABFS connector.</h2>
  612. <ul>
  613. <li>Supports reading and writing data stored in an Azure Blob Storage account.</li>
  614. <li><i>Fully Consistent</i> view of the storage across all clients.</li>
  615. <li>Can read data written through the <code>deprecated wasb:</code> connector.</li>
  616. <li>Presents a hierarchical file system view by implementing the standard Hadoop <a href="../api/org/apache/hadoop/fs/FileSystem.html"><code>FileSystem</code></a> interface.</li>
  617. <li>Supports configuration of multiple Azure Blob Storage accounts.</li>
  618. <li>Can act as a source or destination of data in Hadoop MapReduce, Apache Hive, Apache Spark.</li>
  619. <li>Tested at scale on both Linux and Windows by Microsoft themselves.</li>
  620. <li>Can be used as a replacement for HDFS on Hadoop clusters deployed in Azure infrastructure.</li>
  621. </ul>
  622. <p>For details on ABFS, consult the following documents:</p>
  623. <ul>
  624. <li><a class="externalLink" href="https://azure.microsoft.com/en-gb/blog/a-closer-look-at-azure-data-lake-storage-gen2/">A closer look at Azure Data Lake Storage Gen2</a>; MSDN Article from June 28, 2018.</li>
  625. <li><a class="externalLink" href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers">Storage Tiers</a></li>
  626. </ul></section><section>
  627. <h2><a name="Getting_started"></a>Getting started</h2><section>
  628. <h3><a name="Concepts"></a>Concepts</h3>
  629. <p>The Azure Storage data model presents 3 core concepts:</p>
  630. <ul>
  631. <li><b>Storage Account</b>: All access is done through a storage account.</li>
  632. <li><b>Container</b>: A container is a grouping of multiple blobs. A storage account may have multiple containers. In Hadoop, an entire file system hierarchy is stored in a single container.</li>
  633. <li><b>Blob</b>: A file of any type and size. In Hadoop, files are stored in blobs. The internal implementation also uses blobs to persist the file system hierarchy and other metadata.</li>
  634. </ul>
  635. <p>The ABFS connector connects to classic containers, or those created with Hierarchical Namespaces.</p></section></section><section>
  636. <h2><a name="Hierarchical_Namespaces_.28and_WASB_Compatibility.29"></a><a name="namespaces"></a> Hierarchical Namespaces (and WASB Compatibility)</h2>
  637. <p>A key aspect of ADLS Gen 2 is its support for <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-namespace">hierarchical namespaces</a> These are effectively directories and offer high performance rename and delete operations &#x2014; something which makes a significant improvement in performance in query engines writing data to, including MapReduce, Spark, Hive, as well as DistCp.</p>
  638. <p>This feature is only available if the container was created with &#x201c;namespace&#x201d; support.</p>
  639. <p>You enable namespace support when creating a new Storage Account, by checking the &#x201c;Hierarchical Namespace&#x201d; option in the Portal UI, or, when creating through the command line, using the option <code>--hierarchical-namespace true</code></p>
  640. <p><i>You cannot enable Hierarchical Namespaces on an existing storage account</i></p>
  641. <p><i><b>Containers in a storage account with Hierarchical Namespaces are not (currently) readable through the <code>deprecated wasb:</code> connector.</b></i></p>
  642. <p>Some of the <code>az storage</code> command line commands fail too, for example:</p>
  643. <div class="source">
  644. <div class="source">
  645. <pre>$ az storage container list --account-name abfswales1
  646. </pre></div></div>
  647. <p>Output:</p>
  648. <div class="source">
  649. <div class="source">
  650. <pre>Blob API is not yet supported for hierarchical namespace accounts. ErrorCode: BlobApiNotYetSupportedForHierarchicalNamespaceAccounts
  651. </pre></div></div>
  652. <section>
  653. <h3><a name="Creating_an_Azure_Storage_Account"></a><a name="creating"></a> Creating an Azure Storage Account</h3>
  654. <p>The best documentation on getting started with Azure Datalake Gen2 with the abfs connector is <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-use-hdi-cluster">Using Azure Data Lake Storage Gen2 with Azure HDInsight clusters</a></p>
  655. <p>It includes instructions to create it from <a class="externalLink" href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest">the Azure command line tool</a>, which can be installed on Windows, MacOS (via Homebrew) and Linux (apt or yum).</p>
  656. <p>The <a class="externalLink" href="https://docs.microsoft.com/en-us/cli/azure/storage?view=azure-cli-latest">az storage</a> subcommand handles all storage commands, <a class="externalLink" href="https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-create">az storage account create</a> does the creation.</p>
  657. <p>Until the ADLS gen2 API support is finalized, you need to add an extension to the ADLS command.</p>
  658. <div class="source">
  659. <div class="source">
  660. <pre>az extension add --name storage-preview
  661. </pre></div></div>
  662. <p>Check that all is well by verifying that the usage command includes <code>--hierarchical-namespace</code>:</p>
  663. <div class="source">
  664. <div class="source">
  665. <pre>$ az storage account
  666. </pre></div></div>
  667. <p>Output:</p>
  668. <div class="source">
  669. <div class="source">
  670. <pre>usage: az storage account create [-h] [--verbose] [--debug]
  671. [--output {json,jsonc,table,tsv,yaml,none}]
  672. [--query JMESPATH] --resource-group
  673. RESOURCE_GROUP_NAME --name ACCOUNT_NAME
  674. [--sku {Standard_LRS,Standard_GRS,Standard_RAGRS,Standard_ZRS,Premium_LRS,Premium_ZRS}]
  675. [--location LOCATION]
  676. [--kind {Storage,StorageV2,BlobStorage,FileStorage,BlockBlobStorage}]
  677. [--tags [TAGS [TAGS ...]]]
  678. [--custom-domain CUSTOM_DOMAIN]
  679. [--encryption-services {blob,file,table,queue} [{blob,file,table,queue} ...]]
  680. [--access-tier {Hot,Cool}]
  681. [--https-only [{true,false}]]
  682. [--file-aad [{true,false}]]
  683. **[--hierarchical-namespace [{true,false}]]**
  684. [--bypass {None,Logging,Metrics,AzureServices} [{None,Logging,Metrics,AzureServices} ...]]
  685. [--default-action {Allow,Deny}]
  686. [--assign-identity]
  687. [--subscription _SUBSCRIPTION]
  688. </pre></div></div>
  689. <p>You can list locations from <code>az account list-locations</code>, which lists the name to refer to in the <code>--location</code> argument:</p>
  690. <div class="source">
  691. <div class="source">
  692. <pre>$ az account list-locations -o table
  693. </pre></div></div>
  694. <p>It would list locations in a table format.</p>
  695. <p>Sample output:</p>
  696. <div class="source">
  697. <div class="source">
  698. <pre>DisplayName Latitude Longitude Name
  699. ------------------- ---------- ----------- ------------------
  700. East Asia 22.267 114.188 eastasia
  701. Southeast Asia 1.283 103.833 southeastasia
  702. .... .... ...... .......
  703. </pre></div></div>
  704. <p>Once a location has been chosen, create the account</p>
  705. <div class="source">
  706. <div class="source">
  707. <pre>az storage account create --verbose \
  708. --name abfswales1 \
  709. --resource-group devteam2 \
  710. --kind StorageV2 \
  711. --hierarchical-namespace true \
  712. --location ukwest \
  713. --sku Standard_LRS \
  714. --https-only true \
  715. --encryption-services blob \
  716. --access-tier Hot \
  717. --tags owner=engineering \
  718. --assign-identity \
  719. --output jsonc
  720. </pre></div></div>
  721. <p>The output of the command is a JSON file, whose <code>primaryEndpoints</code> command includes the name of the store endpoint:</p>
  722. <div class="source">
  723. <div class="source">
  724. <pre>{
  725. &quot;primaryEndpoints&quot;: {
  726. &quot;blob&quot;: &quot;https://abfswales1.blob.core.windows.net/&quot;,
  727. &quot;dfs&quot;: &quot;https://abfswales1.dfs.core.windows.net/&quot;,
  728. &quot;file&quot;: &quot;https://abfswales1.file.core.windows.net/&quot;,
  729. &quot;queue&quot;: &quot;https://abfswales1.queue.core.windows.net/&quot;,
  730. &quot;table&quot;: &quot;https://abfswales1.table.core.windows.net/&quot;,
  731. &quot;web&quot;: &quot;https://abfswales1.z35.web.core.windows.net/&quot;
  732. }
  733. }
  734. </pre></div></div>
  735. <p>The <code>abfswales1.dfs.core.windows.net</code> account is the name by which the storage account will be referred to.</p>
  736. <p>Now ask for the connection string to the store, which contains the account key</p>
  737. <div class="source">
  738. <div class="source">
  739. <pre>az storage account show-connection-string --name abfswales1
  740. {
  741. &quot;connectionString&quot;: &quot;DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=abfswales1;AccountKey=ACCOUNT_KEY_VALUE&quot;
  742. }
  743. </pre></div></div>
  744. <p>You then need to add the access key to your <code>core-site.xml</code>, JCEKs file or use your cluster management tool to set it the option <code>fs.azure.account.key.STORAGE-ACCOUNT</code> to this value.</p>
  745. <div class="source">
  746. <div class="source">
  747. <pre>&lt;property&gt;
  748. &lt;name&gt;fs.azure.account.key.abfswales1.dfs.core.windows.net&lt;/name&gt;
  749. &lt;value&gt;ACCOUNT_KEY_VALUE&lt;/value&gt;
  750. &lt;/property&gt;
  751. </pre></div></div>
  752. <section>
  753. <h4><a name="Creation_through_the_Azure_Portal"></a>Creation through the Azure Portal</h4>
  754. <p>Creation through the portal is covered in <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-quickstart-create-account">Quickstart: Create an Azure Data Lake Storage Gen2 storage account</a></p>
  755. <p><b>Key Steps</b></p>
  756. <ol style="list-style-type: decimal">
  757. <li>Create a new Storage Account in a location which suits you.</li>
  758. <li>&#x201c;Basics&#x201d; Tab: select &#x201c;StorageV2&#x201d;.</li>
  759. <li>&#x201c;Advanced&#x201d; Tab: enable &#x201c;Hierarchical Namespace&#x201d;.</li>
  760. </ol>
  761. <p>You have now created your storage account. Next, get the key for &#x201c;Shared Key&#x201d; authentication (default authentication type).</p>
  762. <ol style="list-style-type: decimal">
  763. <li>Go to the Azure Portal.</li>
  764. <li>Select &#x201c;Storage Accounts&#x201d;</li>
  765. <li>Select the newly created storage account.</li>
  766. <li>In the list of settings, locate &#x201c;Access Keys&#x201d; and select that.</li>
  767. <li>Copy one of the access keys to the clipboard, add to the XML option, set in cluster management tools, Hadoop JCEKS file or KMS store.</li>
  768. </ol></section></section><section>
  769. <h3><a name="Creating_a_new_container"></a><a name="new_container"></a> Creating a new container</h3>
  770. <p>An Azure storage account can have multiple containers, each with the container name as the userinfo field of the URI used to reference it.</p>
  771. <p>For example, the container &#x201c;container1&#x201d; in the storage account just created will have the URL <code>abfs://container1@abfswales1.dfs.core.windows.net/</code></p>
  772. <p>You can create a new container through the ABFS connector, by setting the option <code>fs.azure.createRemoteFileSystemDuringInitialization</code> to <code>true</code>. Though the same is not supported when AuthType is SAS.</p>
  773. <p>If the container does not exist, an attempt to list it with <code>hadoop fs -ls</code> will fail</p>
  774. <div class="source">
  775. <div class="source">
  776. <pre>$ hadoop fs -ls abfs://container1@abfswales1.dfs.core.windows.net/
  777. ls: `abfs://container1@abfswales1.dfs.core.windows.net/': No such file or directory
  778. </pre></div></div>
  779. <p>Enable remote FS creation and the second attempt succeeds, creating the container as it does so:</p>
  780. <div class="source">
  781. <div class="source">
  782. <pre>$ hadoop fs -D fs.azure.createRemoteFileSystemDuringInitialization=true \
  783. -ls abfs://container1@abfswales1.dfs.core.windows.net/
  784. </pre></div></div>
  785. <p>This is useful for creating accounts on the command line, especially before the <code>az storage</code> command supports hierarchical namespaces completely.</p></section><section>
  786. <h3><a name="Listing_and_examining_containers_of_a_Storage_Account."></a>Listing and examining containers of a Storage Account.</h3>
  787. <p>You can use the <a class="externalLink" href="https://azure.microsoft.com/en-us/features/storage-explorer/">Azure Storage Explorer</a></p></section></section><section>
  788. <h2><a name="Configuring_ABFS"></a><a name="configuring"></a> Configuring ABFS</h2>
  789. <p>Any configuration can be specified generally (or as the default when accessing all accounts) or can be tied to a specific account. For example, an OAuth identity can be configured for use regardless of which account is accessed with the property <code>fs.azure.account.oauth2.client.id</code> or you can configure an identity to be used only for a specific storage account with <code>fs.azure.account.oauth2.client.id.&lt;account_name&gt;.dfs.core.windows.net</code>.</p>
  790. <p>This is shown in the Authentication section.</p></section><section>
  791. <h2><a name="Authentication"></a><a name="authentication"></a> Authentication</h2>
  792. <p>Authentication for ABFS is ultimately granted by <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-scenarios">Azure Active Directory</a>.</p>
  793. <p>The concepts covered there are beyond the scope of this document to cover; developers are expected to have read and understood the concepts therein to take advantage of the different authentication mechanisms.</p>
  794. <p>What is covered here, briefly, is how to configure the ABFS client to authenticate in different deployment situations.</p>
  795. <p>The ABFS client can be deployed in different ways, with its authentication needs driven by them.</p>
  796. <ol style="list-style-type: decimal">
  797. <li>With the storage account&#x2019;s authentication secret in the configuration: &#x201c;Shared Key&#x201d;.</li>
  798. <li>Using OAuth 2.0 tokens of one form or another.</li>
  799. <li>Deployed in-Azure with the Azure VMs providing OAuth 2.0 tokens to the application, &#x201c;Managed Instance&#x201d;.</li>
  800. <li>Using Shared Access Signature (SAS) tokens provided by a custom implementation of the SASTokenProvider interface.</li>
  801. <li>By directly configuring a fixed Shared Access Signature (SAS) token in the account configuration settings files.</li>
  802. </ol>
  803. <p>Note: SAS Based Authentication should be used only with HNS Enabled accounts.</p>
  804. <p>What can be changed is what secrets/credentials are used to authenticate the caller.</p>
  805. <p>The authentication mechanism is set in <code>fs.azure.account.auth.type</code> (or the account specific variant). The possible values are SharedKey, OAuth, Custom and SAS. For the various OAuth options use the config <code>fs.azure.account.oauth.provider.type</code>. Following are the implementations supported ClientCredsTokenProvider, UserPasswordTokenProvider, MsiTokenProvider, RefreshTokenBasedTokenProvider and WorkloadIdentityTokenProvider. An IllegalArgumentException is thrown if the specified provider type is not one of the supported.</p>
  806. <p>All secrets can be stored in JCEKS files. These are encrypted and password protected &#x2014;use them or a compatible Hadoop Key Management Store wherever possible</p><section>
  807. <h3><a name="AAD_Token_fetch_retries"></a><a name="aad-token-fetch-retry-logic"></a> AAD Token fetch retries</h3>
  808. <p>The exponential retry policy used for the AAD token fetch retries can be tuned with the following configurations. * <code>fs.azure.oauth.token.fetch.retry.max.retries</code>: Sets the maximum number of retries. Default value is 5. * <code>fs.azure.oauth.token.fetch.retry.min.backoff.interval</code>: Minimum back-off interval. Added to the retry interval computed from delta backoff. By default this is set as 0. Set the interval in milli seconds. * <code>fs.azure.oauth.token.fetch.retry.max.backoff.interval</code>: Maximum back-off interval. Default value is 60000 (sixty seconds). Set the interval in milli seconds. * <code>fs.azure.oauth.token.fetch.retry.delta.backoff</code>: Back-off interval between retries. Multiples of this timespan are used for subsequent retry attempts . The default value is 2.</p></section><section>
  809. <h3><a name="Default:_Shared_Key"></a><a name="shared-key-auth"></a> Default: Shared Key</h3>
  810. <p>This is the simplest authentication mechanism of account + password.</p>
  811. <p>The account name is inferred from the URL; the password, &#x201c;key&#x201d;, retrieved from the XML/JCECKs configuration files.</p>
  812. <div class="source">
  813. <div class="source">
  814. <pre>&lt;property&gt;
  815. &lt;name&gt;fs.azure.account.auth.type.ACCOUNT_NAME.dfs.core.windows.net&lt;/name&gt;
  816. &lt;value&gt;SharedKey&lt;/value&gt;
  817. &lt;description&gt;
  818. &lt;/description&gt;
  819. &lt;/property&gt;
  820. &lt;property&gt;
  821. &lt;name&gt;fs.azure.account.key.ACCOUNT_NAME.dfs.core.windows.net&lt;/name&gt;
  822. &lt;value&gt;ACCOUNT_KEY&lt;/value&gt;
  823. &lt;description&gt;
  824. The secret password. Never share these.
  825. &lt;/description&gt;
  826. &lt;/property&gt;
  827. </pre></div></div>
  828. <p><i>Note</i>: The source of the account key can be changed through a custom key provider; one needs to execute a shell script to retrieve it.</p>
  829. <p>A custom key provider class can be provided with the config <code>fs.azure.account.keyprovider</code>. If a key provider class is specified the same will be used to get account key. Otherwise the Simple key provider will be used which will use the key specified for the config <code>fs.azure.account.key</code>.</p>
  830. <p>To retrieve using shell script, specify the path to the script for the config <code>fs.azure.shellkeyprovider.script</code>. ShellDecryptionKeyProvider class use the script specified to retrieve the key.</p></section><section>
  831. <h3><a name="OAuth_2.0_Client_Credentials"></a><a name="oauth-client-credentials"></a> OAuth 2.0 Client Credentials</h3>
  832. <p>OAuth 2.0 credentials of (client id, client secret, endpoint) are provided in the configuration/JCEKS file.</p>
  833. <p>The specifics of this process is covered in <a href="../hadoop-azure-datalake/index.html#Configuring_Credentials_and_FileSystem">hadoop-azure-datalake</a>; the key names are slightly different here.</p>
  834. <div class="source">
  835. <div class="source">
  836. <pre>&lt;property&gt;
  837. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  838. &lt;value&gt;OAuth&lt;/value&gt;
  839. &lt;description&gt;
  840. Use OAuth authentication
  841. &lt;/description&gt;
  842. &lt;/property&gt;
  843. &lt;property&gt;
  844. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  845. &lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider&lt;/value&gt;
  846. &lt;description&gt;
  847. Use client credentials
  848. &lt;/description&gt;
  849. &lt;/property&gt;
  850. &lt;property&gt;
  851. &lt;name&gt;fs.azure.account.oauth2.client.endpoint&lt;/name&gt;
  852. &lt;value&gt;TOKEN_ENDPOINT&lt;/value&gt;
  853. &lt;description&gt;
  854. URL of OAuth endpoint
  855. &lt;/description&gt;
  856. &lt;/property&gt;
  857. &lt;property&gt;
  858. &lt;name&gt;fs.azure.account.oauth2.client.id&lt;/name&gt;
  859. &lt;value&gt;CLIENT_ID&lt;/value&gt;
  860. &lt;description&gt;
  861. Client ID
  862. &lt;/description&gt;
  863. &lt;/property&gt;
  864. &lt;property&gt;
  865. &lt;name&gt;fs.azure.account.oauth2.client.secret&lt;/name&gt;
  866. &lt;value&gt;CLIENT_SECRET&lt;/value&gt;
  867. &lt;description&gt;
  868. Secret
  869. &lt;/description&gt;
  870. &lt;/property&gt;
  871. </pre></div></div>
  872. </section><section>
  873. <h3><a name="OAuth_2.0:_Username_and_Password"></a><a name="oauth-user-and-passwd"></a> OAuth 2.0: Username and Password</h3>
  874. <p>An OAuth 2.0 endpoint, username and password are provided in the configuration/JCEKS file.</p>
  875. <div class="source">
  876. <div class="source">
  877. <pre>&lt;property&gt;
  878. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  879. &lt;value&gt;OAuth&lt;/value&gt;
  880. &lt;description&gt;
  881. Use OAuth authentication
  882. &lt;/description&gt;
  883. &lt;/property&gt;
  884. &lt;property&gt;
  885. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  886. &lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.UserPasswordTokenProvider&lt;/value&gt;
  887. &lt;description&gt;
  888. Use user and password
  889. &lt;/description&gt;
  890. &lt;/property&gt;
  891. &lt;property&gt;
  892. &lt;name&gt;fs.azure.account.oauth2.client.endpoint&lt;/name&gt;
  893. &lt;value&gt;TOKEN_ENDPOINT&lt;/value&gt;
  894. &lt;description&gt;
  895. URL of OAuth 2.0 endpoint
  896. &lt;/description&gt;
  897. &lt;/property&gt;
  898. &lt;property&gt;
  899. &lt;name&gt;fs.azure.account.oauth2.user.name&lt;/name&gt;
  900. &lt;value&gt;USERNAME_VALUE&lt;/value&gt;
  901. &lt;description&gt;
  902. username
  903. &lt;/description&gt;
  904. &lt;/property&gt;
  905. &lt;property&gt;
  906. &lt;name&gt;fs.azure.account.oauth2.user.password&lt;/name&gt;
  907. &lt;value&gt;USER_PASSWORD&lt;/value&gt;
  908. &lt;description&gt;
  909. password for account
  910. &lt;/description&gt;
  911. &lt;/property&gt;
  912. </pre></div></div>
  913. </section><section>
  914. <h3><a name="OAuth_2.0:_Refresh_Token"></a><a name="oauth-refresh-token"></a> OAuth 2.0: Refresh Token</h3>
  915. <p>With an existing Oauth 2.0 token, make a request to the Active Directory endpoint <code>https://login.microsoftonline.com/Common/oauth2/token</code> for this token to be refreshed.</p>
  916. <div class="source">
  917. <div class="source">
  918. <pre>&lt;property&gt;
  919. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  920. &lt;value&gt;OAuth&lt;/value&gt;
  921. &lt;description&gt;
  922. Use OAuth 2.0 authentication
  923. &lt;/description&gt;
  924. &lt;/property&gt;
  925. &lt;property&gt;
  926. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  927. &lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.RefreshTokenBasedTokenProvider&lt;/value&gt;
  928. &lt;description&gt;
  929. Use the Refresh Token Provider
  930. &lt;/description&gt;
  931. &lt;/property&gt;
  932. &lt;property&gt;
  933. &lt;name&gt;fs.azure.account.oauth2.refresh.token&lt;/name&gt;
  934. &lt;value&gt;REFRESH_TOKEN&lt;/value&gt;
  935. &lt;description&gt;
  936. Refresh token
  937. &lt;/description&gt;
  938. &lt;/property&gt;
  939. &lt;property&gt;
  940. &lt;name&gt;fs.azure.account.oauth2.refresh.endpoint&lt;/name&gt;
  941. &lt;value&gt;REFRESH_ENDPOINT&lt;/value&gt;
  942. &lt;description&gt;
  943. Refresh token endpoint
  944. &lt;/description&gt;
  945. &lt;/property&gt;
  946. &lt;property&gt;
  947. &lt;name&gt;fs.azure.account.oauth2.client.id&lt;/name&gt;
  948. &lt;value&gt;CLIENT_ID&lt;/value&gt;
  949. &lt;description&gt;
  950. Optional Client ID
  951. &lt;/description&gt;
  952. &lt;/property&gt;
  953. </pre></div></div>
  954. </section><section>
  955. <h3><a name="Azure_Managed_Identity"></a><a name="managed-identity"></a> Azure Managed Identity</h3>
  956. <p><a class="externalLink" href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview">Azure Managed Identities</a>, formerly &#x201c;Managed Service Identities&#x201d;.</p>
  957. <p>OAuth 2.0 tokens are issued by a special endpoint only accessible from the executing VM (<code>http://169.254.169.254/metadata/identity/oauth2/token</code>). The issued credentials can be used to authenticate.</p>
  958. <p>The Azure Portal/CLI is used to create the service identity.</p>
  959. <div class="source">
  960. <div class="source">
  961. <pre>&lt;property&gt;
  962. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  963. &lt;value&gt;OAuth&lt;/value&gt;
  964. &lt;description&gt;
  965. Use OAuth authentication
  966. &lt;/description&gt;
  967. &lt;/property&gt;
  968. &lt;property&gt;
  969. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  970. &lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.MsiTokenProvider&lt;/value&gt;
  971. &lt;description&gt;
  972. Use MSI for issuing OAuth tokens
  973. &lt;/description&gt;
  974. &lt;/property&gt;
  975. &lt;property&gt;
  976. &lt;name&gt;fs.azure.account.oauth2.msi.tenant&lt;/name&gt;
  977. &lt;value&gt;MSI_TENANT_VALUE&lt;/value&gt;
  978. &lt;description&gt;
  979. Optional MSI Tenant ID
  980. &lt;/description&gt;
  981. &lt;/property&gt;
  982. &lt;property&gt;
  983. &lt;name&gt;fs.azure.account.oauth2.msi.endpoint&lt;/name&gt;
  984. &lt;value&gt;TOKEN_ENDPOINT&lt;/value&gt;
  985. &lt;description&gt;
  986. MSI endpoint
  987. &lt;/description&gt;
  988. &lt;/property&gt;
  989. &lt;property&gt;
  990. &lt;name&gt;fs.azure.account.oauth2.client.id&lt;/name&gt;
  991. &lt;value&gt;CLIENT_ID&lt;/value&gt;
  992. &lt;description&gt;
  993. Optional Client ID
  994. &lt;/description&gt;
  995. &lt;/property&gt;
  996. </pre></div></div>
  997. </section><section>
  998. <h3><a name="Azure_Workload_Identity"></a><a name="workload-identity"></a> Azure Workload Identity</h3>
  999. <p><a class="externalLink" href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview">Azure Workload Identities</a>, formerly &#x201c;Azure AD pod identity&#x201d;.</p>
  1000. <p>OAuth 2.0 tokens are written to a file that is only accessible from the executing pod (<code>/var/run/secrets/azure/tokens/azure-identity-token</code>). The issued credentials can be used to authenticate.</p>
  1001. <p>The Azure Portal/CLI is used to create the service identity.</p>
  1002. <div class="source">
  1003. <div class="source">
  1004. <pre>&lt;property&gt;
  1005. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  1006. &lt;value&gt;OAuth&lt;/value&gt;
  1007. &lt;description&gt;
  1008. Use OAuth authentication
  1009. &lt;/description&gt;
  1010. &lt;/property&gt;
  1011. &lt;property&gt;
  1012. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  1013. &lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.WorkloadIdentityTokenProvider&lt;/value&gt;
  1014. &lt;description&gt;
  1015. Use Workload Identity for issuing OAuth tokens
  1016. &lt;/description&gt;
  1017. &lt;/property&gt;
  1018. &lt;property&gt;
  1019. &lt;name&gt;fs.azure.account.oauth2.msi.tenant&lt;/name&gt;
  1020. &lt;value&gt;${env.AZURE_TENANT_ID}&lt;/value&gt;
  1021. &lt;description&gt;
  1022. Optional MSI Tenant ID
  1023. &lt;/description&gt;
  1024. &lt;/property&gt;
  1025. &lt;property&gt;
  1026. &lt;name&gt;fs.azure.account.oauth2.client.id&lt;/name&gt;
  1027. &lt;value&gt;${env.AZURE_CLIENT_ID}&lt;/value&gt;
  1028. &lt;description&gt;
  1029. Optional Client ID
  1030. &lt;/description&gt;
  1031. &lt;/property&gt;
  1032. &lt;property&gt;
  1033. &lt;name&gt;fs.azure.account.oauth2.token.file&lt;/name&gt;
  1034. &lt;value&gt;${env.AZURE_FEDERATED_TOKEN_FILE}&lt;/value&gt;
  1035. &lt;description&gt;
  1036. Token file path
  1037. &lt;/description&gt;
  1038. &lt;/property&gt;
  1039. </pre></div></div>
  1040. </section><section>
  1041. <h3><a name="Custom_OAuth_2.0_Token_Provider"></a>Custom OAuth 2.0 Token Provider</h3>
  1042. <p>A Custom OAuth 2.0 token provider supplies the ABFS connector with an OAuth 2.0 token when its <code>getAccessToken()</code> method is invoked.</p>
  1043. <div class="source">
  1044. <div class="source">
  1045. <pre>&lt;property&gt;
  1046. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  1047. &lt;value&gt;Custom&lt;/value&gt;
  1048. &lt;description&gt;
  1049. Custom Authentication
  1050. &lt;/description&gt;
  1051. &lt;/property&gt;
  1052. &lt;property&gt;
  1053. &lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
  1054. &lt;value&gt;PROVIDER_TYPE&lt;/value&gt;
  1055. &lt;description&gt;
  1056. classname of Custom Authentication Provider
  1057. &lt;/description&gt;
  1058. &lt;/property&gt;
  1059. </pre></div></div>
  1060. <p>The declared class must implement <code>org.apache.hadoop.fs.azurebfs.extensions.CustomTokenProviderAdaptee</code> and optionally <code>org.apache.hadoop.fs.azurebfs.extensions.BoundDTExtension</code>.</p>
  1061. <p>The declared class also holds responsibility to implement retry logic while fetching access tokens.</p></section><section>
  1062. <h3><a name="Delegation_Token_Provider"></a><a name="delegationtokensupportconfigoptions"></a> Delegation Token Provider</h3>
  1063. <p>A delegation token provider supplies the ABFS connector with delegation tokens, helps renew and cancel the tokens by implementing the CustomDelegationTokenManager interface.</p>
  1064. <div class="source">
  1065. <div class="source">
  1066. <pre>&lt;property&gt;
  1067. &lt;name&gt;fs.azure.enable.delegation.token&lt;/name&gt;
  1068. &lt;value&gt;true&lt;/value&gt;
  1069. &lt;description&gt;Make this true to use delegation token provider&lt;/description&gt;
  1070. &lt;/property&gt;
  1071. &lt;property&gt;
  1072. &lt;name&gt;fs.azure.delegation.token.provider.type&lt;/name&gt;
  1073. &lt;value&gt;{fully-qualified-class-name-for-implementation-of-CustomDelegationTokenManager-interface}&lt;/value&gt;
  1074. &lt;/property&gt;
  1075. </pre></div></div>
  1076. <p>In case delegation token is enabled, and the config <code>fs.azure.delegation.token .provider.type</code> is not provided then an IlleagalArgumentException is thrown.</p></section><section>
  1077. <h3><a name="Shared_Access_Signature_.28SAS.29_Token_Provider"></a>Shared Access Signature (SAS) Token Provider</h3>
  1078. <p>A shared access signature (SAS) provides secure delegated access to resources in your storage account. With a SAS, you have granular control over how a client can access your data. To know more about how SAS Authentication works refer to <a class="externalLink" href="https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview">Grant limited access to Azure Storage resources using shared access signatures (SAS)</a></p>
  1079. <p>There are three types of SAS supported by Azure Storage: - <a class="externalLink" href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas">User Delegation SAS</a>: SAS-based authentication works with HNS-enabled ADLS Gen2 accounts (recommended for use with ABFS) and is also supported with non-HNS (FNS) Blob accounts. However, it is <b>NOT SUPPORTED</b> with FNS-DFS accounts. - <a class="externalLink" href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-service-sas">Service SAS</a>: Global and works at container level. - <a class="externalLink" href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas">Account SAS</a>: Global and works at account level.</p><section>
  1080. <h4><a name="Known_Issues_With_SAS"></a>Known Issues With SAS</h4>
  1081. <ul>
  1082. <li>SAS Based Authentication works with HNS Enabled ADLS Gen2 Accounts (which is a recommended account type to be used with ABFS). It is also supported with non-HNS (FNS) Blob accounts. It is <b>NOT SUPPORTED</b> with FNS-DFS accounts.</li>
  1083. <li>Certain root level operations are known to fail with SAS Based Authentication.</li>
  1084. </ul></section><section>
  1085. <h4><a name="Using_User_Delegation_SAS_with_ABFS"></a>Using User Delegation SAS with ABFS</h4>
  1086. <ul>
  1087. <li>
  1088. <p><b>Description</b>: ABFS allows you to implement your custom SAS Token Provider that uses your identity to create a user delegation key which then can be used to create SAS instead of storage account key. The declared class must implement <code>org.apache.hadoop.fs.azurebfs.extensions.SASTokenProvider</code>.</p>
  1089. </li>
  1090. <li>
  1091. <p><b>Configuration</b>: To use this method with ABFS Driver, specify the following properties in your <code>core-site.xml</code> file:</p>
  1092. <ol style="list-style-type: decimal">
  1093. <li>
  1094. <p>Authentication Type:</p>
  1095. <div class="source">
  1096. <div class="source">
  1097. <pre>&lt;property&gt;
  1098. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  1099. &lt;value&gt;SAS&lt;/value&gt;
  1100. &lt;/property&gt;
  1101. </pre></div></div>
  1102. </li>
  1103. <li>
  1104. <p>Custom SAS Token Provider Class:</p>
  1105. <div class="source">
  1106. <div class="source">
  1107. <pre>&lt;property&gt;
  1108. &lt;name&gt;fs.azure.sas.token.provider.type&lt;/name&gt;
  1109. &lt;value&gt;CUSTOM_SAS_TOKEN_PROVIDER_CLASS&lt;/value&gt;
  1110. &lt;/property&gt;
  1111. </pre></div></div>
  1112. </li>
  1113. </ol>
  1114. <p>Replace <code>CUSTOM_SAS_TOKEN_PROVIDER_CLASS</code> with fully qualified class name of your custom token provider implementation. Depending upon the implementation you might need to specify additional configurations that are required by your custom implementation.</p>
  1115. </li>
  1116. <li>
  1117. <p><b>Example</b>: ABFS Hadoop Driver provides a <a class="externalLink" href="https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/extensions/MockDelegationSASTokenProvider.java">MockDelegationSASTokenProvider</a> implementation that can be used as an example on how to implement your own custom SASTokenProvider. This requires the Application credentials to be specifed using the following configurations apart from above two:</p>
  1118. <ol style="list-style-type: decimal">
  1119. <li>App Service Principle Tenant Id:
  1120. <div class="source">
  1121. <div class="source">
  1122. <pre>&lt;property&gt;
  1123. &lt;name&gt;fs.azure.test.app.service.principal.tenant.id&lt;/name&gt;
  1124. &lt;value&gt;TENANT_ID&lt;/value&gt;
  1125. &lt;/property&gt;
  1126. </pre></div></div>
  1127. </li>
  1128. <li>App Service Principle Object Id:
  1129. <div class="source">
  1130. <div class="source">
  1131. <pre>&lt;property&gt;
  1132. &lt;name&gt;fs.azure.test.app.service.principal.object.id&lt;/name&gt;
  1133. &lt;value&gt;OBJECT_ID&lt;/value&gt;
  1134. &lt;/property&gt;
  1135. </pre></div></div>
  1136. </li>
  1137. <li>App Id:
  1138. <div class="source">
  1139. <div class="source">
  1140. <pre>&lt;property&gt;
  1141. &lt;name&gt;fs.azure.test.app.id&lt;/name&gt;
  1142. &lt;value&gt;APPLICATION_ID&lt;/value&gt;
  1143. &lt;/property&gt;
  1144. </pre></div></div>
  1145. </li>
  1146. <li>App Secret:
  1147. <div class="source">
  1148. <div class="source">
  1149. <pre>&lt;property&gt;
  1150. &lt;name&gt;fs.azure.test.app.secret&lt;/name&gt;
  1151. &lt;value&gt;APPLICATION_SECRET&lt;/value&gt;
  1152. &lt;/property&gt;
  1153. </pre></div></div>
  1154. </li>
  1155. </ol>
  1156. </li>
  1157. <li>
  1158. <p><b>Security</b>: More secure than Shared Key and allows granting limited access to data without exposing the access key. Recommended to be used only with HNS Enabled, ADLS Gen 2 storage accounts.</p>
  1159. </li>
  1160. </ul></section><section>
  1161. <h4><a name="Using_Account.2FService_SAS_with_ABFS"></a>Using Account/Service SAS with ABFS</h4>
  1162. <ul>
  1163. <li>
  1164. <p><b>Description</b>: ABFS allows user to use Account/Service SAS for authenticating requests. User can specify them as fixed SAS Token to be used across all the requests.</p>
  1165. </li>
  1166. <li>
  1167. <p><b>Configuration</b>: To use this method with ABFS Driver, specify the following properties in your <code>core-site.xml</code> file:</p>
  1168. <ol style="list-style-type: decimal">
  1169. <li>Authentication Type:
  1170. <div class="source">
  1171. <div class="source">
  1172. <pre>&lt;property&gt;
  1173. &lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  1174. &lt;value&gt;SAS&lt;/value&gt;
  1175. &lt;/property&gt;
  1176. </pre></div></div>
  1177. </li>
  1178. </ol>
  1179. </li>
  1180. </ul>
  1181. <ol style="list-style-type: decimal">
  1182. <li>Account SAS (Fixed SAS Token at Account Level): <code>xml &lt;property&gt; &lt;name&gt;fs.azure.sas.fixed.token.ACCOUNT_NAME&lt;/name&gt; &lt;value&gt;FIXED_ACCOUNT_SAS_TOKEN&lt;/value&gt; &lt;/property&gt;</code>
  1183. <ul>
  1184. <li>Replace <code>FIXED_ACCOUNT_SAS_TOKEN</code> with fixed Account/Service SAS. You can also generate SAS from Azure portal. Account -&gt; Security + Networking -&gt; Shared Access Signature</li>
  1185. </ul>
  1186. <ol style="list-style-type: decimal">
  1187. <li>Service SAS (Fixed SAS Token at Container Level):
  1188. <div class="source">
  1189. <div class="source">
  1190. <pre> &lt;property&gt;
  1191. &lt;name&gt;fs.azure.sas.fixed.token.CONTAINER_NAME.ACCOUNT_NAME&lt;/name&gt;
  1192. &lt;value&gt;FIXED_SAS_TOKEN&lt;/value&gt;
  1193. &lt;/property&gt;
  1194. </pre></div></div>
  1195. </li>
  1196. </ol>
  1197. <ul>
  1198. <li>Replace <code>FIXED_SERVICE_SAS_TOKEN</code> with fixed Service SAS. You can also generate SAS from Azure portal. Account -&gt; Data storage -&gt; Containers -&gt; right click on your container and select generate SAS -&gt; Give valid permissions and expiry time -&gt; Click on generate SAS and copy the SAS token.</li>
  1199. </ul>
  1200. </li>
  1201. </ol>
  1202. <ul>
  1203. <li><b>Security</b>: Account/Service SAS requires account keys to be used which makes them less secure. There is no scope of having delegated access to different users.</li>
  1204. </ul>
  1205. <p><i>Note:</i> - Preference order for SAS will be: - fs.azure.sas.token.provider.type - fs.azure.sas.fixed.token.CONTAINER_NAME.ACCOUNT_NAME - fs.azure.sas.fixed.token.ACCOUNT_NAME - fs.azure.sas.fixed.token</p></section></section></section><section>
  1206. <h2><a name="Technical_notes"></a><a name="technical"></a> Technical notes</h2><section>
  1207. <h3><a name="Proxy_setup"></a><a name="proxy"></a> Proxy setup</h3>
  1208. <p>The connector uses the JVM proxy settings to control its proxy setup.</p>
  1209. <p>See The <a class="externalLink" href="https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html">Oracle Java documentation</a> for the options to set.</p>
  1210. <p>As the connector uses HTTPS by default, the <code>https.proxyHost</code> and <code>https.proxyPort</code> options are those which must be configured.</p>
  1211. <p>In MapReduce jobs, including distcp, the proxy options must be set in both the <code>mapreduce.map.java.opts</code> and <code>mapreduce.reduce.java.opts</code>.</p>
  1212. <div class="source">
  1213. <div class="source">
  1214. <pre># this variable is only here to avoid typing the same values twice.
  1215. # It's name is not important.
  1216. export DISTCP_PROXY_OPTS=&quot;-Dhttps.proxyHost=web-proxy.example.com -Dhttps.proxyPort=80&quot;
  1217. hadoop distcp \
  1218. -D mapreduce.map.java.opts=&quot;$DISTCP_PROXY_OPTS&quot; \
  1219. -D mapreduce.reduce.java.opts=&quot;$DISTCP_PROXY_OPTS&quot; \
  1220. -update -skipcrccheck -numListstatusThreads 40 \
  1221. hdfs://namenode:8020/users/alice abfs://backups@account.dfs.core.windows.net/users/alice
  1222. </pre></div></div>
  1223. <p>Without these settings, even though access to ADLS may work from the command line, <code>distcp</code> access can fail with network errors.</p></section><section>
  1224. <h3><a name="Security"></a><a name="security"></a> Security</h3>
  1225. <p>As with other object stores, login secrets are valuable pieces of information. Organizations should have a process for safely sharing them.</p></section><section>
  1226. <h3><a name="Limitations_of_the_ABFS_connector"></a><a name="limitations"></a> Limitations of the ABFS connector</h3>
  1227. <ul>
  1228. <li>File last access time is not tracked.</li>
  1229. <li>Extended attributes are not supported.</li>
  1230. <li>File Checksums are not supported.</li>
  1231. <li>The <code>Syncable</code> interfaces <code>hsync()</code> and <code>hflush()</code> operations are supported if <code>fs.azure.enable.flush</code> is set to true (default=true). With the Wasb connector, this limited the number of times either call could be made to 50,000 <a class="externalLink" href="https://issues.apache.org/jira/browse/HADOOP-15478">HADOOP-15478</a>. If abfs has the a similar limit, then excessive use of sync/flush may cause problems.</li>
  1232. </ul></section><section>
  1233. <h3><a name="Consistency_and_Concurrency"></a><a name="consistency"></a> Consistency and Concurrency</h3>
  1234. <p>As with all Azure storage services, the Azure Datalake Gen 2 store offers a fully consistent view of the store, with complete Create, Read, Update, and Delete consistency for data and metadata.</p></section><section>
  1235. <h3><a name="Performance_and_Scalability"></a><a name="performance"></a> Performance and Scalability</h3>
  1236. <p>For containers with hierarchical namespaces, the scalability numbers are, in Big-O-notation, as follows:</p>
  1237. <table border="0" class="bodyTable">
  1238. <thead>
  1239. <tr class="a">
  1240. <th> Operation </th>
  1241. <th> Scalability </th></tr>
  1242. </thead><tbody>
  1243. <tr class="b">
  1244. <td> File Rename </td>
  1245. <td> <code>O(1)</code> </td></tr>
  1246. <tr class="a">
  1247. <td> File Delete </td>
  1248. <td> <code>O(1)</code> </td></tr>
  1249. <tr class="b">
  1250. <td> Directory Rename:</td>
  1251. <td> <code>O(1)</code> </td></tr>
  1252. <tr class="a">
  1253. <td> Directory Delete </td>
  1254. <td> <code>O(1)</code> </td></tr>
  1255. </tbody>
  1256. </table>
  1257. <p>For non-namespace stores, the scalability becomes:</p>
  1258. <table border="0" class="bodyTable">
  1259. <thead>
  1260. <tr class="a">
  1261. <th> Operation </th>
  1262. <th> Scalability </th></tr>
  1263. </thead><tbody>
  1264. <tr class="b">
  1265. <td> File Rename </td>
  1266. <td> <code>O(1)</code> </td></tr>
  1267. <tr class="a">
  1268. <td> File Delete </td>
  1269. <td> <code>O(1)</code> </td></tr>
  1270. <tr class="b">
  1271. <td> Directory Rename:</td>
  1272. <td> <code>O(files)</code> </td></tr>
  1273. <tr class="a">
  1274. <td> Directory Delete </td>
  1275. <td> <code>O(files)</code> </td></tr>
  1276. </tbody>
  1277. </table>
  1278. <p>That is: the more files there are, the slower directory operations get.</p>
  1279. <p>Further reading: <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/storage/common/storage-scalability-targets?toc=%2fazure%2fstorage%2fqueues%2ftoc.json">Azure Storage Scalability Targets</a></p></section><section>
  1280. <h3><a name="Extensibility"></a><a name="extensibility"></a> Extensibility</h3>
  1281. <p>The ABFS connector supports a number of limited-private/unstable extension points for third-parties to integrate their authentication and authorization services into the ABFS client.</p>
  1282. <ul>
  1283. <li><code>CustomDelegationTokenManager</code> : adds ability to issue Hadoop Delegation Tokens.</li>
  1284. <li><code>SASTokenProvider</code>: allows for custom provision of Azure Storage Shared Access Signature (SAS) tokens.</li>
  1285. <li><code>CustomTokenProviderAdaptee</code>: allows for custom provision of Azure OAuth tokens.</li>
  1286. <li><code>KeyProvider</code>.</li>
  1287. </ul>
  1288. <p>Consult the source in <code>org.apache.hadoop.fs.azurebfs.extensions</code> and all associated tests to see how to make use of these extension points.</p>
  1289. <p><i>Warning</i> These extension points are unstable.</p></section><section>
  1290. <h3><a name="Networking_Layer:"></a><a href="networking"></a>Networking Layer:</h3>
  1291. <p>ABFS Driver can use the following networking libraries: - ApacheHttpClient: - <a class="externalLink" href="https://hc.apache.org/httpcomponents-client-4.5.x/index.html">Library Documentation</a>. - JDK networking library: - <a class="externalLink" href="https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html">Library documentation</a>. - Default networking library.</p>
  1292. <p>The networking library can be configured using the configuration <code>fs.azure.networking.library</code> while initializing the filesystem. Following are the supported values: - <code>JDK_HTTP_URL_CONNECTION</code> : Use JDK networking library [Default] - <code>APACHE_HTTP_CLIENT</code> : Use Apache HttpClient</p><section>
  1293. <h4><a name="ApacheHttpClient_networking_layer_configuration_Options:"></a><a href="ahc_networking_conf"></a>ApacheHttpClient networking layer configuration Options:</h4>
  1294. <p>Following are the configuration options for ApacheHttpClient networking layer that can be provided at the initialization of the filesystem: 1. <code>fs.azure.apache.http.client.idle.connection.ttl</code>: 1. Maximum idle time in milliseconds for a connection to be kept alive in the connection pool. If the connection is not reused within the time limit, the connection shall be closed. 2. Default value: 5000 milliseconds. 2. <code>fs.azure.apache.http.client.max.cache.connection.size</code>: 1. Maximum number of connections that can be cached in the connection pool for a filesystem instance. Total number of concurrent connections has no limit. 2. Default value: 5. 3. <code>fs.azure.apache.http.client.max.io.exception.retries</code>: 1. Maximum number of times the client will retry on IOExceptions for a single request with ApacheHttpClient networking-layer. Breach of this limit would turn off the future uses of the ApacheHttpClient library in the current JVM instance. 2. Default value: 3.</p></section><section>
  1295. <h4><a name="ApacheHttpClient_classpath_requirements:"></a><a href="ahc_classpath"></a> ApacheHttpClient classpath requirements:</h4>
  1296. <p>ApacheHttpClient is a <code>compile</code> maven dependency in hadoop-azure and would be included in the hadoop-azure jar. For using hadoop-azure with ApacheHttpClient no additional information is required in the classpath.</p></section></section></section><section>
  1297. <h2><a name="Other_configuration_options"></a><a href="options"></a> Other configuration options</h2>
  1298. <p>Consult the javadocs for <code>org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys</code>, <code>org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations</code> and <code>org.apache.hadoop.fs.azurebfs.AbfsConfiguration</code> for the full list of configuration options and their default values.</p><section>
  1299. <h3><a name="Client_Correlation_Options"></a><a name="clientcorrelationoptions"></a> Client Correlation Options</h3><section>
  1300. <h4><a name="a1._Client_CorrelationId_Option"></a><a name="clientcorrelationid"></a> 1. Client CorrelationId Option</h4>
  1301. <p>Config <code>fs.azure.client.correlationid</code> provides an option to correlate client requests using this client-provided identifier. This Id will be visible in Azure Storage Analytics logs in the <code>request-id-header</code> field. Reference: <a class="externalLink" href="https://docs.microsoft.com/en-us/rest/api/storageservices/storage-analytics-log-format">Storage Analytics log format</a></p>
  1302. <p>This config accepts a string which can be maximum of 72 characters and should contain alphanumeric characters and/or hyphens only. Defaults to empty string if input is invalid.</p></section><section>
  1303. <h4><a name="a1._Correlation_IDs_Display_Options"></a><a name="tracingcontextformat"></a> 1. Correlation IDs Display Options</h4>
  1304. <p>Config <code>fs.azure.tracingcontext.format</code> provides an option to select the format of IDs included in the <code>request-id-header</code>. This config accepts a String value corresponding to the following enum options. <code>SINGLE_ID_FORMAT</code> : clientRequestId <code>ALL_ID_FORMAT</code> : all IDs (default) <code>TWO_ID_FORMAT</code> : clientCorrelationId:clientRequestId</p></section></section><section>
  1305. <h3><a name="Flush_Options"></a><a name="flushconfigoptions"></a> Flush Options</h3><section>
  1306. <h4><a name="a1._Azure_Blob_File_System_Flush_Options"></a><a name="abfsflushconfigoptions"></a> 1. Azure Blob File System Flush Options</h4>
  1307. <p>Config <code>fs.azure.enable.flush</code> provides an option to render ABFS flush APIs - HFlush() and HSync() to be no-op. By default, this config will be set to true.</p>
  1308. <p>Both the APIs will ensure that data is persisted.</p></section><section>
  1309. <h4><a name="a2._OutputStream_Flush_Options"></a><a name="outputstreamflushconfigoptions"></a> 2. OutputStream Flush Options</h4>
  1310. <p>Config <code>fs.azure.disable.outputstream.flush</code> provides an option to render OutputStream Flush() API to be a no-op in AbfsOutputStream. By default, this config will be set to true.</p>
  1311. <p>Hflush() being the only documented API that can provide persistent data transfer, Flush() also attempting to persist buffered data will lead to performance issues.</p></section></section><section>
  1312. <h3><a name="Hundred_Continue_Options"></a><a name="a100continueconfigoptions"></a> Hundred Continue Options</h3>
  1313. <p><code>fs.azure.account.expect.header.enabled</code>: This configuration parameter is used to specify whether you wish to send a expect 100 continue header with each append request or not. It is configured to true by default. This flag configures the client to check with the Azure store before uploading a block of data from an output stream. This allows the client to throttle back gracefully -before actually attempting to upload the block. In experiments this provides significant throughput improvements under heavy load. For more information : - <a class="externalLink" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect</a></p></section><section>
  1314. <h3><a name="Account_level_throttling_Options"></a><a name="accountlevelthrottlingoptions"></a> Account level throttling Options</h3>
  1315. <p><code>fs.azure.account.operation.idle.timeout</code>: This value specifies the time after which the timer for the analyzer (read or write) should be paused until no new request is made again. The default value for the same is 60 seconds.</p></section><section>
  1316. <h3><a name="HNS_Check_Options"></a><a name="hnscheckconfigoptions"></a> HNS Check Options</h3>
  1317. <p>Config <code>fs.azure.account.hns.enabled</code> provides an option to specify whether the storage account is HNS enabled or not. In case the config is not provided, a server call is made to check the same.</p></section><section>
  1318. <h3><a name="Access_Options"></a><a name="flushconfigoptions"></a> Access Options</h3>
  1319. <p>Config <code>fs.azure.enable.check.access</code> needs to be set true to enable the AzureBlobFileSystem.access().</p></section><section>
  1320. <h3><a name="Operation_Idempotency"></a><a name="idempotency"></a> Operation Idempotency</h3>
  1321. <p>Requests failing due to server timeouts and network failures will be retried. PUT/POST operations are idempotent and need no specific handling.</p>
  1322. <p>Delete is considered to be idempotent by default if the target does not exist on retry.</p></section><section>
  1323. <h3><a name="Primary_User_Group_Options"></a><a name="featureconfigoptions"></a> Primary User Group Options</h3>
  1324. <p>The group name which is part of FileStatus and AclStatus will be set the same as the username if the following config is set to true <code>fs.azure.skipUserGroupMetadataDuringInitialization</code>.</p></section><section>
  1325. <h3><a name="IO_Options"></a><a name="ioconfigoptions"></a> IO Options</h3>
  1326. <p>The following configs are related to read and write operations.</p>
  1327. <p><code>fs.azure.io.retry.max.retries</code>: Sets the number of retries for IO operations. Currently this is used only for the server call retry logic. Used within <code>AbfsClient</code> class as part of the ExponentialRetryPolicy. The value should be greater than or equal to 0.</p>
  1328. <p><code>fs.azure.io.retry.min.backoff.interval</code>: Sets the minimum backoff interval for retries of IO operations. Currently this is used only for the server call retry logic. Used within <code>AbfsClient</code> class as part of the ExponentialRetryPolicy. This value indicates the smallest interval (in milliseconds) to wait before retrying an IO operation. The default value is 500 milliseconds.</p>
  1329. <p><code>fs.azure.io.retry.max.backoff.interval</code>: Sets the maximum backoff interval for retries of IO operations. Currently this is used only for the server call retry logic. Used within <code>AbfsClient</code> class as part of the ExponentialRetryPolicy. This value indicates the largest interval (in milliseconds) to wait before retrying an IO operation. The default value is 25000 (25 seconds).</p>
  1330. <p><code>fs.azure.io.retry.backoff.interval</code>: Sets the default backoff interval for retries of IO operations. Currently this is used only for the server call retry logic. Used within <code>AbfsClient</code> class as part of the ExponentialRetryPolicy. This value is used to compute a random delta between 80% and 120% of the specified value. This random delta is then multiplied by an exponent of the current IO retry number (i.e., the default is multiplied by <code>2^(retryNum - 1)</code>) and then contstrained within the range of [<code>fs.azure.io.retry.min.backoff.interval</code>, <code>fs.azure.io.retry.max.backoff.interval</code>] to determine the amount of time to wait before the next IO retry attempt. The default value is 500 milliseconds.</p>
  1331. <p><code>fs.azure.write.request.size</code>: To set the write buffer size. Specify the value in bytes. The value should be between 16384 to 104857600 both inclusive (16 KB to 100 MB). The default value will be 8388608 (8 MB).</p>
  1332. <p><code>fs.azure.read.request.size</code>: To set the read buffer size.Specify the value in bytes. The value should be between 16384 to 104857600 both inclusive (16 KB to 100 MB). The default value will be 4194304 (4 MB).</p>
  1333. <p><code>fs.azure.read.alwaysReadBufferSize</code>: Read request size configured by <code>fs.azure.read.request.size</code> will be honoured only when the reads done are in sequential pattern. When the read pattern is detected to be random, read size will be same as the buffer length provided by the calling process. This config when set to true will force random reads to also read in same request sizes as sequential reads. This is a means to have same read patterns as of ADLS Gen1, as it does not differentiate read patterns and always reads by the configured read request size. The default value for this config will be false, where reads for the provided buffer length is done when random read pattern is detected.</p>
  1334. <p><code>fs.azure.readaheadqueue.depth</code>: Sets the readahead queue depth in AbfsInputStream. In case the set value is negative the read ahead queue depth will be set as Runtime.getRuntime().availableProcessors(). By default the value will be 2. To disable readaheads, set this value to 0. If your workload is doing only random reads (non-sequential) or you are seeing throttling, you may try setting this value to 0.</p>
  1335. <p><code>fs.azure.read.readahead.blocksize</code>: To set the read buffer size for the read aheads. Specify the value in bytes. The value should be between 16384 to 104857600 both inclusive (16 KB to 100 MB). The default value will be 4194304 (4 MB).</p>
  1336. <p><code>fs.azure.buffered.pread.disable</code>: By default the positional read API will do a seek and read on input stream. This read will fill the buffer cache in AbfsInputStream and update the cursor positions. If this optimization is true it will skip usage of buffer and do a lock free REST call for reading from blob. This optimization is very much helpful for HBase kind of short random read over a shared AbfsInputStream instance. Note: This is not a config which can be set at cluster level. It can be used as an option on FutureDataInputStreamBuilder. See FileSystem#openFile(Path path)</p>
  1337. <p>To run under limited memory situations configure the following. Especially when there are too many writes from the same process.</p>
  1338. <p><code>fs.azure.write.max.concurrent.requests</code>: To set the maximum concurrent write requests from an AbfsOutputStream instance to server at any point of time. Effectively this will be the threadpool size within the AbfsOutputStream instance. Set the value in between 1 to 8 both inclusive.</p>
  1339. <p><code>fs.azure.write.max.requests.to.queue</code>: To set the maximum write requests that can be queued. Memory consumption of AbfsOutputStream instance can be tuned with this config considering each queued request holds a buffer. Set the value 3 or 4 times the value set for s.azure.write.max.concurrent.requests.</p>
  1340. <p><code>fs.azure.analysis.period</code>: The time after which sleep duration is recomputed after analyzing metrics. The default value for the same is 10 seconds.</p></section><section>
  1341. <h3><a name="Security_Options"></a><a name="securityconfigoptions"></a> Security Options</h3>
  1342. <p><code>fs.azure.always.use.https</code>: Enforces to use HTTPS instead of HTTP when the flag is made true. Irrespective of the flag, <code>AbfsClient</code> will use HTTPS if the secure scheme (ABFSS) is used or OAuth is used for authentication. By default this will be set to true.</p>
  1343. <p><code>fs.azure.ssl.channel.mode</code>: Initializing DelegatingSSLSocketFactory with the specified SSL channel mode. Value should be of the enum DelegatingSSLSocketFactory.SSLChannelMode. The default value will be DelegatingSSLSocketFactory.SSLChannelMode.Default.</p></section><section>
  1344. <h3><a name="Encryption_Options"></a><a name="encryptionconfigoptions"></a> Encryption Options</h3>
  1345. <p>Only one of the following two options can be configured. If config values of both types are set, ABFS driver will throw an exception. If using the global key type, ensure both pre-computed values are provided.</p><section>
  1346. <h4><a name="Customer-Provided_Global_Key"></a><a name="globalcpkconfigoptions"></a> Customer-Provided Global Key</h4>
  1347. <p>A global encryption key can be configured by providing the following pre-computed values. The key will be applied to any new files created post setting the configuration, and will be required in the requests to read ro modify the contents of the files.</p>
  1348. <p><code>fs.azure.encryption.encoded.client-provided-key</code>: The Base64 encoded version of the 256-bit encryption key.</p>
  1349. <p><code>fs.azure.encryption.encoded.client-provided-key-sha</code>: The Base64 encoded version of the SHA256 has of the 256-bit encryption key.</p></section><section>
  1350. <h4><a name="Encryption_Context_Provider"></a><a name="encryptioncontextconfigoptions"></a> Encryption Context Provider</h4>
  1351. <p>ABFS driver supports an interface called <code>EncryptionContextProvider</code> that can be used as a plugin for clients to provide custom implementations for the encryption framework. This framework allows for an <code>encryptionContext</code> and an <code>encryptionKey</code> to be generated by the EncryptionContextProvider for a file to be created. The server keeps track of the encryptionContext for each file. To perform subsequent operations such as read on the encrypted file, ABFS driver will fetch the corresponding encryption key from the EncryptionContextProvider implementation by providing the encryptionContext string retrieved from a GetFileStatus request to the server.</p>
  1352. <p><code>fs.azure.encryption.context.provider.type</code>: The canonical name of the class implementing EncryptionContextProvider.</p></section></section><section>
  1353. <h3><a name="Server_Options"></a><a name="serverconfigoptions"></a> Server Options</h3>
  1354. <p><code>fs.azure.io.read.tolerate.concurrent.append</code>: When the config is made true, the If-Match header sent to the server for read calls will be set as * otherwise the same will be set with ETag. This is basically a mechanism in place to handle the reads with optimistic concurrency. Please refer the following links for further information. 1. <a class="externalLink" href="https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read">https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read</a> 2. <a class="externalLink" href="https://azure.microsoft.com/de-de/blog/managing-concurrency-in-microsoft-azure-storage-2/">https://azure.microsoft.com/de-de/blog/managing-concurrency-in-microsoft-azure-storage-2/</a></p>
  1355. <p><code>fs.azure.list.max.results</code>: listStatus API fetches the FileStatus information from server in a page by page manner. The config is used to set the maxResults URI param which sets the page size(maximum results per call). The value should be &gt; 0. By default, this will be 5000. Server has a maximum value for this parameter as 5000. So even if the config is above 5000 the response will only contain 5000 entries. Please refer the following link for further information. <a class="externalLink" href="https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list">https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list</a></p>
  1356. <p><code>fs.azure.enable.checksum.validation</code>: When the config is set to true, Content-MD5 headers are sent to the server for read and append calls. This provides a way to verify the integrity of data during transport. This will have performance impact due to MD5 Hash re-computation on Client and Server side. Please refer to the Azure documentation for <a class="externalLink" href="https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read">Read</a> and <a class="externalLink" href="https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update">Append</a> APIs for more details</p></section><section>
  1357. <h3><a name="Throttling_Options"></a><a name="throttlingconfigoptions"></a> Throttling Options</h3>
  1358. <p>ABFS driver has the capability to throttle read and write operations to achieve maximum throughput by minimizing errors. The errors occur when the account ingress or egress limits are exceeded and, the server-side throttles requests. Server-side throttling causes the retry policy to be used, but the retry policy sleeps for long periods of time causing the total ingress or egress throughput to be as much as 35% lower than optimal. The retry policy is also after the fact, in that it applies after a request fails. On the other hand, the client-side throttling implemented here happens before requests are made and sleeps just enough to minimize errors, allowing optimal ingress and/or egress throughput. By default the throttling mechanism is enabled in the driver. The same can be disabled by setting the config <code>fs.azure.enable.autothrottling</code> to false.</p></section><section>
  1359. <h3><a name="Rename_Options"></a><a name="renameconfigoptions"></a> Rename Options</h3>
  1360. <p><code>fs.azure.atomic.rename.key</code>: Directories for atomic rename support can be specified comma separated in this config. The driver prints the following warning log if the source of the rename belongs to one of the configured directories. &#x201c;The atomic rename feature is not supported by the ABFS scheme ; however, rename, create and delete operations are atomic if Namespace is enabled for your Azure Storage account.&#x201d; The directories can be specified as comma separated values. By default the value is &#x201c;/hbase&#x201d;</p></section><section>
  1361. <h3><a name="Infinite_Lease_Options"></a><a name="infiniteleaseoptions"></a> Infinite Lease Options</h3>
  1362. <p><code>fs.azure.infinite-lease.directories</code>: Directories for infinite lease support can be specified comma separated in this config. By default, multiple clients will be able to write to the same file simultaneously. When writing to files contained within the directories specified in this config, the client will obtain a lease on the file that will prevent any other clients from writing to the file. When the output stream is closed, the lease will be released. To revoke a client&#x2019;s write access for a file, the AzureBlobFilesystem breakLease method may be called. If the client dies before the file can be closed and the lease released, breakLease will need to be called before another client will be able to write to the file.</p>
  1363. <p><code>fs.azure.lease.threads</code>: This is the size of the thread pool that will be used for lease operations for infinite lease directories. By default the value is 0, so it must be set to at least 1 to support infinite lease directories.</p></section><section>
  1364. <h3><a name="Perf_Options"></a><a name="perfoptions"></a> Perf Options</h3><section>
  1365. <h4><a name="a1._HTTP_Request_Tracking_Options"></a><a name="abfstracklatencyoptions"></a> 1. HTTP Request Tracking Options</h4>
  1366. <p>If you set <code>fs.azure.abfs.latency.track</code> to <code>true</code>, the module starts tracking the performance metrics of ABFS HTTP traffic. To obtain these numbers on your machine or cluster, you will also need to enable debug logging for the <code>AbfsPerfTracker</code> class in your <code>log4j</code> config. A typical perf log line appears like:</p>
  1367. <div class="source">
  1368. <div class="source">
  1369. <pre>h=KARMA t=2019-10-25T20:21:14.518Z a=abfstest01.dfs.core.windows.net
  1370. c=abfs-testcontainer-84828169-6488-4a62-a875-1e674275a29f cr=delete ce=deletePath
  1371. r=Succeeded l=32 ls=32 lc=1 s=200 e= ci=95121dae-70a8-4187-b067-614091034558
  1372. ri=97effdcf-201f-0097-2d71-8bae00000000 ct=0 st=0 rt=0 bs=0 br=0 m=DELETE
  1373. u=https%3A%2F%2Fabfstest01.dfs.core.windows.net%2Ftestcontainer%2Ftest%3Ftimeout%3D90%26recursive%3Dtrue
  1374. </pre></div></div>
  1375. <p>The fields have the following definitions:</p>
  1376. <p><code>h</code>: host name <code>t</code>: time when this request was logged <code>a</code>: Azure storage account name <code>c</code>: container name <code>cr</code>: name of the caller method <code>ce</code>: name of the callee method <code>r</code>: result (Succeeded/Failed) <code>l</code>: latency (time spent in callee) <code>ls</code>: latency sum (aggregate time spent in caller; logged when there are multiple callees; logged with the last callee) <code>lc</code>: latency count (number of callees; logged when there are multiple callees; logged with the last callee) <code>s</code>: HTTP Status code <code>e</code>: Error code <code>ci</code>: client request ID <code>ri</code>: server request ID <code>ct</code>: connection time in milliseconds <code>st</code>: sending time in milliseconds <code>rt</code>: receiving time in milliseconds <code>bs</code>: bytes sent <code>br</code>: bytes received <code>m</code>: HTTP method (GET, PUT etc) <code>u</code>: Encoded HTTP URL</p>
  1377. <p>Note that these performance numbers are also sent back to the ADLS Gen 2 API endpoints in the <code>x-ms-abfs-client-latency</code> HTTP headers in subsequent requests. Azure uses these settings to track their end-to-end latency.</p></section></section><section>
  1378. <h3><a name="Driver_Metric_Options"></a><a name="drivermetricoptions"></a> Driver Metric Options</h3>
  1379. <p>Config <code>fs.azure.metric.format</code> provides an option to select the format of IDs included in the <code>header</code> for metrics. This config accepts a String value corresponding to the following enum options. <code>INTERNAL_METRIC_FORMAT</code> : backoff + footer metrics <code>INTERNAL_BACKOFF_METRIC_FORMAT</code> : backoff metrics <code>INTERNAL_FOOTER_METRIC_FORMAT</code> : footer metrics <code>EMPTY</code> : default</p>
  1380. <p><code>fs.azure.metric.account.name</code>: This configuration parameter is used to specify the name of the account which will be used to push the metrics to the backend. We can configure a separate account to push metrics to the store or use the same for as the existing account on which other requests are made.</p>
  1381. <div class="source">
  1382. <div class="source">
  1383. <pre>&lt;property&gt;
  1384. &lt;name&gt;fs.azure.metric.account.name&lt;/name&gt;
  1385. &lt;value&gt;METRICACCOUNTNAME.dfs.core.windows.net&lt;/value&gt;
  1386. &lt;/property&gt;
  1387. </pre></div></div>
  1388. <p><code>fs.azure.metric.account.key</code>: This is the access key for the storage account used for pushing metrics to the store.</p>
  1389. <div class="source">
  1390. <div class="source">
  1391. <pre>&lt;property&gt;
  1392. &lt;name&gt;fs.azure.metric.account.key&lt;/name&gt;
  1393. &lt;value&gt;ACCOUNTKEY&lt;/value&gt;
  1394. &lt;/property&gt;
  1395. </pre></div></div>
  1396. <p><code>fs.azure.metric.uri</code>: This configuration provides the uri in the format of &#x2018;<a class="externalLink" href="https://">https://</a><code>&lt;accountname&gt;</code> .dfs.core.windows.net/<code>&lt;containername&gt;</code>&#x2019;. This should be a part of the config in order to prevent extra calls to create the filesystem. We use an existing filsystem to push the metrics.</p>
  1397. <div class="source">
  1398. <div class="source">
  1399. <pre>&lt;property&gt;
  1400. &lt;name&gt;fs.azure.metric.uri&lt;/name&gt;
  1401. &lt;value&gt;https://METRICACCOUNTNAME.dfs.core.windows.net/CONTAINERNAME&lt;/value&gt;
  1402. &lt;/property&gt;
  1403. </pre></div></div>
  1404. </section></section><section>
  1405. <h2><a name="Troubleshooting"></a><a name="troubleshooting"></a> Troubleshooting</h2>
  1406. <p>The problems associated with the connector usually come down to, in order</p>
  1407. <ol style="list-style-type: decimal">
  1408. <li>Classpath.</li>
  1409. <li>Network setup (proxy etc.).</li>
  1410. <li>Authentication and Authorization.</li>
  1411. <li>Anything else.</li>
  1412. </ol>
  1413. <p>If you log <code>org.apache.hadoop.fs.azurebfs.services</code> at <code>DEBUG</code> then you will see more details about any request which is failing.</p>
  1414. <p>One useful tool for debugging connectivity is the <a class="externalLink" href="https://github.com/steveloughran/cloudstore/releases">cloudstore storediag utility</a>.</p>
  1415. <p>This validates the classpath, the settings, then tries to work with the filesystem.</p>
  1416. <div class="source">
  1417. <div class="source">
  1418. <pre>bin/hadoop jar cloudstore-0.1-SNAPSHOT.jar storediag abfs://container@account.dfs.core.windows.net/
  1419. </pre></div></div>
  1420. <ol style="list-style-type: decimal">
  1421. <li>If the <code>storediag</code> command cannot work with an abfs store, nothing else is likely to.</li>
  1422. <li>If the <code>storediag</code> store does successfully work, that does not guarantee that the classpath or configuration on the rest of the cluster is also going to work, especially in distributed applications. But it is at least a start.</li>
  1423. </ol><section>
  1424. <h3><a name="ClassNotFoundException:_org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem"></a><code>ClassNotFoundException: org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem</code></h3>
  1425. <p>The <code>hadoop-azure</code> JAR is not on the classpah.</p>
  1426. <div class="source">
  1427. <div class="source">
  1428. <pre>java.lang.RuntimeException: java.lang.ClassNotFoundException:
  1429. Class org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem not found
  1430. at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2625)
  1431. at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3290)
  1432. at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3322)
  1433. at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:136)
  1434. at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3373)
  1435. at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3341)
  1436. at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:491)
  1437. at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361)
  1438. Caused by: java.lang.ClassNotFoundException:
  1439. Class org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem not found
  1440. at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2529)
  1441. at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2623)
  1442. ... 16 more
  1443. </pre></div></div>
  1444. <p>Tip: if this is happening on the command line, you can turn on debug logging of the hadoop scripts:</p>
  1445. <div class="source">
  1446. <div class="source">
  1447. <pre>export HADOOP_SHELL_SCRIPT_DEBUG=true
  1448. </pre></div></div>
  1449. <p>If this is happening on an application running within the cluster, it means the cluster (somehow) needs to be configured so that the <code>hadoop-azure</code> module and dependencies are on the classpath of deployed applications.</p></section><section>
  1450. <h3><a name="ClassNotFoundException:_com.microsoft.azure.storage.StorageErrorCode"></a><code>ClassNotFoundException: com.microsoft.azure.storage.StorageErrorCode</code></h3>
  1451. <p>The <code>azure-storage</code> JAR is not on the classpath.</p></section><section>
  1452. <h3><a name="Server_failed_to_authenticate_the_request"></a><code>Server failed to authenticate the request</code></h3>
  1453. <p>The request wasn&#x2019;t authenticated while using the default shared-key authentication mechanism.</p>
  1454. <div class="source">
  1455. <div class="source">
  1456. <pre>Operation failed: &quot;Server failed to authenticate the request.
  1457. Make sure the value of Authorization header is formed correctly including the signature.&quot;,
  1458. 403, HEAD, https://account.dfs.core.windows.net/container2?resource=filesystem&amp;timeout=90
  1459. at org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.execute(AbfsRestOperation.java:135)
  1460. at org.apache.hadoop.fs.azurebfs.services.AbfsClient.getFilesystemProperties(AbfsClient.java:209)
  1461. at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.getFilesystemProperties(AzureBlobFileSystemStore.java:259)
  1462. at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.fileSystemExists(AzureBlobFileSystem.java:859)
  1463. at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.initialize(AzureBlobFileSystem.java:110)
  1464. </pre></div></div>
  1465. <p>Causes include:</p>
  1466. <ul>
  1467. <li>Your credentials are incorrect.</li>
  1468. <li>Your shared secret has expired. in Azure, this happens automatically</li>
  1469. <li>Your shared secret has been revoked.</li>
  1470. <li>host/VM clock drift means that your client&#x2019;s clock is out of sync with the Azure servers &#x2014;the call is being rejected as it is either out of date (considered a replay) or from the future. Fix: Check your clocks, etc.</li>
  1471. </ul></section><section>
  1472. <h3><a name="Configuration_property__something_.dfs.core.windows.net_not_found"></a><code>Configuration property _something_.dfs.core.windows.net not found</code></h3>
  1473. <p>There&#x2019;s no <code>fs.azure.account.key.</code> entry in your cluster configuration declaring the access key for the specific account, or you are using the wrong URL</p>
  1474. <div class="source">
  1475. <div class="source">
  1476. <pre>$ hadoop fs -ls abfs://container@abfswales2.dfs.core.windows.net/
  1477. ls: Configuration property abfswales2.dfs.core.windows.net not found.
  1478. </pre></div></div>
  1479. <ul>
  1480. <li>Make sure that the URL is correct</li>
  1481. <li>Add the missing account key.</li>
  1482. </ul></section><section>
  1483. <h3><a name="No_such_file_or_directory_when_trying_to_list_a_container"></a><code>No such file or directory when trying to list a container</code></h3>
  1484. <p>There is no container of the given name. Either it has been mistyped or the container needs to be created.</p>
  1485. <div class="source">
  1486. <div class="source">
  1487. <pre>$ hadoop fs -ls abfs://container@abfswales1.dfs.core.windows.net/
  1488. ls: `abfs://container@abfswales1.dfs.core.windows.net/': No such file or directory
  1489. </pre></div></div>
  1490. <ul>
  1491. <li>Make sure that the URL is correct</li>
  1492. <li>Create the container if needed</li>
  1493. </ul></section><section>
  1494. <h3><a name="a.E2.80.9CHTTP_connection_to_https:.2F.2Flogin.microsoftonline.com.2Fsomething_failed_for_getting_token_from_AzureAD._Http_response:_200_OK.E2.80.9D"></a>&#x201c;HTTP connection to <a class="externalLink" href="https://login.microsoftonline.com/">https://login.microsoftonline.com/</a><i>something</i> failed for getting token from AzureAD. Http response: 200 OK&#x201d;</h3>
  1495. <ul>
  1496. <li>it has a content-type <code>text/html</code>, <code>text/plain</code>, <code>application/xml</code></li>
  1497. </ul>
  1498. <p>The OAuth authentication page didn&#x2019;t fail with an HTTP error code, but it didn&#x2019;t return JSON either</p>
  1499. <div class="source">
  1500. <div class="source">
  1501. <pre>$ bin/hadoop fs -ls abfs://container@abfswales1.dfs.core.windows.net/
  1502. ...
  1503. ls: HTTP Error 200;
  1504. url='https://login.microsoftonline.com/02a07549-0a5f-4c91-9d76-53d172a638a2/oauth2/authorize'
  1505. AADToken: HTTP connection to
  1506. https://login.microsoftonline.com/02a07549-0a5f-4c91-9d76-53d172a638a2/oauth2/authorize
  1507. failed for getting token from AzureAD.
  1508. Unexpected response.
  1509. Check configuration, URLs and proxy settings.
  1510. proxies=none;
  1511. requestId='dd9d526c-8b3d-4b3f-a193-0cf021938600';
  1512. contentType='text/html; charset=utf-8';
  1513. </pre></div></div>
  1514. <p>Likely causes are configuration and networking:</p>
  1515. <ol style="list-style-type: decimal">
  1516. <li>Authentication is failing, the caller is being served up the Azure Active Directory signon page for humans, even though it is a machine calling.</li>
  1517. <li>The URL is wrong &#x2014;it is pointing at a web page unrelated to OAuth2.0</li>
  1518. <li>There&#x2019;s a proxy server in the way trying to return helpful instructions.</li>
  1519. </ol></section><section>
  1520. <h3><a name="java.io.IOException:_The_ownership_on_the_staging_directory_.2Ftmp.2Fhadoop-yarn.2Fstaging.2Fuser1.2F.staging_is_not_as_expected._It_is_owned_by_.3Cprincipal_id.3E._The_directory_must_be_owned_by_the_submitter_user1_or_user1"></a><code>java.io.IOException: The ownership on the staging directory /tmp/hadoop-yarn/staging/user1/.staging is not as expected. It is owned by &lt;principal_id&gt;. The directory must be owned by the submitter user1 or user1</code></h3>
  1521. <p>When using <a class="externalLink" href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview">Azure Managed Identities</a>, the files/directories in ADLS Gen2 by default will be owned by the service principal object id i.e. principal ID &amp; submitting jobs as the local OS user &#x2018;user1&#x2019; results in the above exception.</p>
  1522. <p>The fix is to mimic the ownership to the local OS user, by adding the below properties to<code>core-site.xml</code>.</p>
  1523. <div class="source">
  1524. <div class="source">
  1525. <pre>&lt;property&gt;
  1526. &lt;name&gt;fs.azure.identity.transformer.service.principal.id&lt;/name&gt;
  1527. &lt;value&gt;service principal object id&lt;/value&gt;
  1528. &lt;description&gt;
  1529. An Azure Active Directory object ID (oid) used as the replacement for names contained
  1530. in the list specified by &#x201c;fs.azure.identity.transformer.service.principal.substitution.list&#x201d;.
  1531. Notice that instead of setting oid, you can also set $superuser here.
  1532. &lt;/description&gt;
  1533. &lt;/property&gt;
  1534. &lt;property&gt;
  1535. &lt;name&gt;fs.azure.identity.transformer.service.principal.substitution.list&lt;/name&gt;
  1536. &lt;value&gt;user1&lt;/value&gt;
  1537. &lt;description&gt;
  1538. A comma separated list of names to be replaced with the service principal ID specified by
  1539. &#x201c;fs.azure.identity.transformer.service.principal.id&#x201d;. This substitution occurs
  1540. when setOwner, setAcl, modifyAclEntries, or removeAclEntries are invoked with identities
  1541. contained in the substitution list. Notice that when in non-secure cluster, asterisk symbol *
  1542. can be used to match all user/group.
  1543. &lt;/description&gt;
  1544. &lt;/property&gt;
  1545. </pre></div></div>
  1546. <p>Once the above properties are configured, <code>hdfs dfs -ls abfs://container1@abfswales1.dfs.core.windows.net/</code> shows the ADLS Gen2 files/directories are now owned by &#x2018;user1&#x2019;.</p></section></section><section>
  1547. <h2><a name="Known_Issues"></a><a name="KnownIssues"></a> Known Issues</h2>
  1548. <p>Following failures are known and expected to fail as of now. 1. AzureBlobFileSystem.setXAttr() and AzureBlobFileSystem.getXAttr() will fail when attempted on root (&#x201c;/&#x201d;) path with <code>Operation failed: &quot;The request URI is invalid.&quot;, HTTP 400 Bad Request</code> 2. If you&#x2019;re using user-delegation SAS authentication: - Listing operation for HNS accounts (on DFS endpoint) works with SAS token supporting either blob or directory scopes (Signed Resource Type as Blob or Directory), though it is intended to work only at the directory scope. It is a known bug. - AzureBlobFileSystem.getFileStatus() is expected to fail at root (&#x201c;/&#x201d;) path with <code>Operation failed: &quot;Server failed to authenticate the request.&quot;, HTTP 401 Unauthorized Error</code></p></section><section>
  1549. <h2><a name="Testing_ABFS"></a><a name="testing"></a> Testing ABFS</h2>
  1550. <p>See the relevant section in <a href="testing_azure.html">Testing Azure</a>.</p></section>
  1551. </div>
  1552. </div>
  1553. <div class="clear">
  1554. <hr/>
  1555. </div>
  1556. <div id="footer">
  1557. <div class="xright">
  1558. &#169; 2008-2025
  1559. Apache Software Foundation
  1560. - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
  1561. Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
  1562. </div>
  1563. <div class="clear">
  1564. <hr/>
  1565. </div>
  1566. </div>
  1567. </body>
  1568. </html>