diff --git a/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md b/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md index 3c4c70e9803..de8fda25d17 100644 --- a/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md +++ b/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md @@ -166,15 +166,19 @@ For additional reading on the credential provider API, see ##### Provisioning ```bash -hadoop credential create dfs.adls.oauth2.refresh.token -value 123 +hadoop credential create dfs.adls.oauth2.client.id -value 123 -provider localjceks://file/home/foo/adls.jceks -hadoop credential create dfs.adls.oauth2.credential -value 123 +hadoop credential create dfs.adls.oauth2.refresh.token -value 123 -provider localjceks://file/home/foo/adls.jceks ``` ##### Configuring core-site.xml or command line property ```xml + + dfs.adls.oauth2.access.token.provider.type + RefreshToken + hadoop.security.credential.provider.path localjceks://file/home/foo/adls.jceks @@ -186,9 +190,10 @@ hadoop credential create dfs.adls.oauth2.credential -value 123 ```bash hadoop distcp - [-D hadoop.security.credential.provider.path=localjceks://file/home/user/adls.jceks] - hdfs://:9001/user/foo/007020615 - adl://.azuredatalakestore.net/testDir/ + [-D dfs.adls.oauth2.access.token.provider.type=RefreshToken + -D hadoop.security.credential.provider.path=localjceks://file/home/user/adls.jceks] + hdfs://:9001/user/foo/srcDir + adl://.azuredatalakestore.net/tgtDir/ ``` NOTE: You may optionally add the provider path property to the `distcp` command