WillDyson commented on issue #26807:
URL: https://github.com/apache/arrow/issues/26807#issuecomment-1573929040

   Here's the same example using libhdfs:
   
   ```
   #include <stdio.h>
   #include <stdlib.h>
   #include "hdfs.h"
   
   int main(int argc, char **argv) {
       printf("### Test with container name\n");
       hdfsConnect("abfs://[email protected]", 0);
       printf("### Test without container name\n");
       hdfsConnect("abfs://bogus.dfs.core.windows.net", 0);
   }
   ```
   
   ```
   ### Test with container name
   23/06/02 15:24:56 WARN util.NativeCodeLoader: Unable to load native-hadoop 
library for your platform... using builtin-java classes where applicable
   ### Test without container name
   23/06/02 15:24:57 WARN fs.FileSystem: Failed to initialize fileystem 
abfs://bogus.dfs.core.windows.net: abfs://bogus.dfs.core.windows.net has 
invalid authority.
   hdfsBuilderConnect(forceNewInstance=0, nn=abfs://bogus.dfs.core.windows.net, 
port=0, kerbTicketCachePath=(NULL), userName=(NULL)) error:
   InvalidUriAuthorityException: abfs://bogus.dfs.core.windows.net has invalid 
authority.abfs://bogus.dfs.core.windows.net has invalid authority.
           at 
org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.authorityParts(AzureBlobFileSystemStore.java:334)
           at 
org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.<init>(AzureBlobFileSystemStore.java:202)
           at 
org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.initialize(AzureBlobFileSystem.java:195)
           at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3452)
           at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:162)
           at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3557)
           at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3504)
           at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:522)
           at org.apache.hadoop.fs.FileSystem$1.run(FileSystem.java:260)
           at org.apache.hadoop.fs.FileSystem$1.run(FileSystem.java:257)
           at java.base/java.security.AccessController.doPrivileged(Native 
Method)
           at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
           at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
           at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:257)
   ```
   
   Similarly to the previous case, the behaviour is the same regardless of 
whether the ADLSgen2 storage account actually exists or not.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to