场景:对于 Azure HDInsight ESP 群集中超过 20 个字符的用户名,Sqoop import/export 命令失败Scenario: Sqoop import/export command fails for usernames greater than 20 characters in Azure HDInsight ESP clusters

本文介绍了将启用 Azure HDInsight ESP(企业安全包)的群集与 ADLS Gen2 (ABFS) 存储帐户一起使用时的已知问题和解决方法。This article describes a known issue and workaround when using Azure HDInsight ESP (Enterprise Security Pack) enabled clusters using ADLS Gen2 (ABFS) storage account.

问题Issue

对于某些用户,运行 sqoop import/export 命令时失败,并显示以下错误:When running sqoop import/export command, it fails with the error below for some users:

ERROR tool.ImportTool: Import failed: java.io.IOException:
The ownership on the staging directory /user/yourlongdomainuserna/.staging is not as expected. 
It is owned by yourlongdomainusername.
The directory must be owned by the submitter yourlongdomainuserna or yourlongdomainuserna@AADDS.CONTOSO.COM

在上面的示例中,对于用户名 yourlongdomainusername/user/yourlongdomainuserna/.staging 显示被截断为 20 个字符的用户名。In the example above, /user/yourlongdomainuserna/.staging displays the truncated 20 character username for the username yourlongdomainusername.

原因Cause

用户名长度超过 20 个字符。The length of the username exceeds 20 characters in length.

请参阅如何在 Azure Active Directory 域服务托管域中同步对象和凭据,了解详细信息。Refer to How objects and credentials are synchronized in an Azure Active Directory Domain Services managed domain for further details.

解决方法Workaround

使用小于或等于 20 个字符的用户名。Use a username less than or equals to 20 characters.

后续步骤Next steps

如果你的问题未在本文中列出,或者无法解决问题,请访问以下渠道以获取更多支持:If you didn't see your problem or are unable to solve your issue, visit the following channel for more support: