hkeebler commented on issue #1084: Tests failing running against standalone 
instance
URL: https://github.com/apache/accumulo/issues/1084#issuecomment-488713688
 
 
   Assessment of "file not found" problem (but no fix yet):
   
   In the test class , the below code returns a hdfs filesystem
   `FileSystem fs = cluster.getFileSystem();`
   When the testing action is executed like the below code
   
`c.tableOperations().importDirectory(testDir.toString()).to(tableName).load();`
   it gets the filesystem from something like:
   ```
   FileSystem fs =
           VolumeConfiguration.getVolume(dir, context.getHadoopConf(), 
conf).getFileSystem();
   ```
   The HadoopConf in the former includes the local path files:  
   _<your hadoop install>etc/hadoop/core-site.xml, <your hadoop 
install>etc/hadoop/hdfs-site.xml_
   The HadoopConf in the latter does NOT and therefore doesn't seem to resolve 
"fs.defaultFS" to the hdfs path and returns a local path file:///
   
   Its like the context is slightly different from the test class and the 
underlying code that being executed.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to