jinchengchenghh commented on PR #5447:
URL: 
https://github.com/apache/incubator-gluten/pull/5447#issuecomment-2099529883

   > We also need to add HDFS support for arrow dataset.
   > 
   > ```
   > caused by: java.lang.RuntimeException: Got HDFS URI but Arrow compiled 
without HDFS support                                                            
                                                                      
   >         at 
org.apache.arrow.dataset.file.JniWrapper.makeFileSystemDatasetFactory(Native 
Method)                                                                         
                                                     
   >         at 
org.apache.arrow.dataset.file.FileSystemDatasetFactory.createNative(FileSystemDatasetFactory.java:40)
                                                                                
                             
   >         at 
org.apache.arrow.dataset.file.FileSystemDatasetFactory.<init>(FileSystemDatasetFactory.java:31)
                                                                                
                                   
   >         at 
org.apache.gluten.utils.ArrowUtil$.makeArrowDiscovery(ArrowUtil.scala:149)      
                                                                                
                                                  
   >         at 
org.apache.gluten.datasource.ArrowCSVFileFormat.$anonfun$buildReaderWithPartitionValues$3(ArrowCSVFileFormat.scala:281)
                                                                                
           
   >         at 
org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.org$apache$spark$sql$execution$datasources$FileScanRDD$$anon$$readCurrentFile(FileScanRDD.scala:231)
                                               
   >         at 
org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.nextIterator(FileScanRDD.scala:293)
                                                                                
                                
   >         at 
org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:125)
   > ```
   > 
   > But even after enabling ARROW_HDFS, there are still issues when accessing 
csv in HDFS.
   > 
   > ```
   > [libprotobuf ERROR google/protobuf/descriptor_database.cc:642] File 
already exists in database: Security.proto                                      
                                                                         
   > [libprotobuf FATAL google/protobuf/descriptor.cc:1986] CHECK failed: 
GeneratedDatabase()->Add(encoded_file_descriptor, size):                        
                                                                        
   > terminate called after throwing an instance of 
'google::protobuf::FatalException'                                              
                                                                                
              
   >   what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, 
size):   
   > ```
   
   This may be in case of protobuf version, I will try to test CSV in HDFS


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to