From c55195588f5853b16d34cb6389cc6f84acc3edea Mon Sep 17 00:00:00 2001 From: Chris Douglas Date: Thu, 23 Mar 2017 12:17:27 -0700 Subject: [PATCH] HADOOP-14197. Fix ADLS doc for credential provider. Contributed by John Zhuge --- .../src/site/markdown/index.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 3c4c70e980..de8fda25d1 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