arvindshmicrosoft commented on a change in pull request #304: Add optional
support for Azure ADLS Gen2
URL: https://github.com/apache/fluo-muchos/pull/304#discussion_r363522193
##########
File path: ansible/roles/hadoop/templates/core-site.xml
##########
@@ -36,4 +36,34 @@
<name>dfs.domain.socket.path</name>
<value>/var/lib/hadoop-hdfs/dn_socket</value>
</property>
+{% if use_adlsg2 == True %}
+ <property>
+ <name>fs.azure.account.auth.type</name>
+ <value>OAuth</value>
+ </property>
+ <property>
+ <name>fs.azure.account.oauth.provider.type</name>
+ <value>org.apache.hadoop.fs.azurebfs.oauth2.MsiTokenProvider</value>
+ </property>
+ <property>
+ <name>fs.azure.account.oauth2.msi.tenant</name>
+ <value>{{ azure_tenant_id}}</value>
+ </property>
+ <property>
+ <name>fs.azure.account.oauth2.client.id</name>
+ <value>{{ azure_client_id }}</value>
+ </property>
+ <property>
+ <name>fs.azure.use.upn</name>
+ <value>true</value>
+ </property>
+ <property>
+
<name>fs.azure.identity.transformer.service.principal.substitution.list</name>
+ <value>*</value>
Review comment:
This enables auto-translation from Azure's Object IDs (OIDs) to the Linux
username. Failure to do this causes problems with running mapred jobs (bulk
ingest) using ADLS Gen 2 as the storage for the RFiles. In parallel
@karthick-rn has a [PR](https://github.com/apache/hadoop/pull/1785) on the
Hadoop repo to document this setting.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services