You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/10 19:13:49 UTC

[GitHub] [arrow] davisusanibar commented on issue #12376: Error loading native libraries: java.io.FileNotFoundException: libarrow_dataset_jni.dylib

davisusanibar commented on issue #12376:
URL: https://github.com/apache/arrow/issues/12376#issuecomment-1035366519


   Hi @soma-cepel could you help us to share the error log message to we could review that.
   
   For our testing I see this error but when configure arrow-dataset:7.0.0-SNAPSHOT:
   Caused by: java.lang.IllegalStateException: error loading native libraries: java.io.FileNotFoundException: libarrow_dataset_jni.dylib
   
   For arrow-dataset:7.0.0 I did not see errors. The jar contains *.dylib and *.so
   
   ```
   (base) ➜  otool otool -L libarrow_dataset_jni.dylib
   libarrow_dataset_jni.dylib:
   	@rpath/libarrow_dataset_jni.700.dylib (compatibility version 700.0.0, current version 700.0.0)
   	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
   	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1200.3.0)
   	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
   ```
   
   Testing:
   
   ```
   .. testcode::
   
       import org.apache.arrow.dataset.file.FileFormat;
       import org.apache.arrow.dataset.file.FileSystemDatasetFactory;
       import org.apache.arrow.dataset.jni.NativeMemoryPool;
       import org.apache.arrow.dataset.source.DatasetFactory;
       import org.apache.arrow.memory.RootAllocator;
       import org.apache.arrow.vector.types.pojo.Schema;
       import org.apache.arrow.util.AutoCloseables;
   
       String uri = "file:" + System.getProperty("user.dir") + "/thirdpartydeps/parquetfiles/data1.parquet";
       RootAllocator rootAllocator = new RootAllocator(Long.MAX_VALUE);
       DatasetFactory datasetFactory = new FileSystemDatasetFactory(rootAllocator, NativeMemoryPool.getDefault(), FileFormat.PARQUET, uri);
       Schema schema = datasetFactory.inspect();
       AutoCloseables.close(datasetFactory);
   
       System.out.println(schema);
   
   .. testoutput::
   
       Schema<id: Int(32, true), name: Utf8>(metadata: {parquet.avro.schema={"type":"record","name":"User","namespace":"org.apache.arrow.dataset","fields":[{"name":"id","type":["int","null"]},{"name":"name","type":["string","null"]}]}, writer.model.name=avro})
   ```
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org