【发布时间】:2019-11-01 10:52:14
【问题描述】:
以下是在 datalake 中创建文件的一段代码。在 client.createfile 行抛出 ADLException。检查用户是否具有读、写和执行权限。有人可以帮助如何处理这个问题。
试试{
OutputStream stream = client.createFile("/Raw/TEST/"+FuFileName, IfExists.OVERWRITE);
PrintStream out = new PrintStream(stream);
for (int i = 1; i <= 10; i++) {
out.println("This is line #" + i);
out.format("This is the same line (%d), but using formatted output. %n", i);
}
out.close();
} catch (ADLException ex) {
printExceptionDetails(ex);
} catch (Exception ex) {
System.out.format(" Exception: %s%n Message: %s%n", ex.getClass().getName(), ex.getMessage());
}
【问题讨论】:
-
请不要提供代码图片。请查看How to Ask a Question,让您更好地了解如何以更有可能得到答案的方式组织问题。
-
@sql 您还有其他顾虑吗?
标签: java web-applications azure-active-directory azure-data-lake