To connect a cluster to ADLS with OAuth, you must configure the Hadoop CredentialProvider or core-site.xml directly. Although configuring the core-site.xml is convenient, it is insecure, because the contents of core-site.xml configuration file are not encrypted. For this reason, Cloudera recommends using a credential provider. For more information, see Configuring OAuth in CDH .

You can also pass the credentials by providing them on the Sqoop command line as part of the import command.

sqoop import

For example:

sqoop import$TENANT_ID/oauth2/token$CLIENT_ID$CLIENT_SECRET