[ 
https://issues.apache.org/jira/browse/ARROW-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16648780#comment-16648780
 ] 

Kouhei Sutou commented on ARROW-3485:
-------------------------------------

There were libparquet-dev package for apache/parquet-cpp at 
packages.red-data-tools.org. It uses 1.4.1 as its version.

Apache Arrow 0.11.0 starts including Apache Parquet C++ and libparquet-dev 
package uses Apache Parquet C++ in Apache Arrow. The libparquet-dev packages 
uses 0.11.0 as its version.

0.11.0 is less than 1.4.1. So libparquet-dev packages for apache/parquet-cpp 
was preferred.

I've removed all libparquet-dev packages for apache/parquet-cpp from 
packages.red-data-tools.org. Now, you can install libparquet-dev for Apache 
Parquet C++ in Apache Arrow 0.11.0 by default.

 

Workaround: You can force to install the specified version by {{sudo apt 
install -y -V libparquet-dev=0.11.0-1}}.

> [C++] Examples fail with Protobuf error
> ---------------------------------------
>
>                 Key: ARROW-3485
>                 URL: https://issues.apache.org/jira/browse/ARROW-3485
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.11.0
>         Environment: Ubuntu 18.04
> Debian GNU
>            Reporter: Yury Zhyshko
>            Priority: Critical
>
> I used fresh clean installation of Ubuntu 18.04 and Debian
>  1) Follow by instruction to install [https://arrow.apache.org/install/]
> 2) Download example from 
> [https://github.com/apache/arrow/tree/master/cpp/examples/parquet/parquet-arrow/src]
> 3) g++ -Wall -fexceptions -lparquet -larrow -O3 -Iinclude -c reader-writer.cc 
> -o reader-writer.o
> At the compile stage I see Errors: 
> {noformat}
> /usr/include/parquet/util/memory.h:44:33: error: template argument 1 is 
> invalid std::unique_ptr<::arrow::Codec> result;
> {noformat}
> I went and changed ::arrow::Codec to ::arrow::util::Codec in the header file 
> and it's been compiled with a warning:
> /usr/bin/ld: warning: libarrow.so.10, needed by 
> /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libparquet.so, may 
> conflict with libarrow.so.11
> 4) g++  -o parquet_test reader-writer.o  -s  -lparquet -larrow
> 5) Run it ./parquet_test
> {noformat}
> [libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already 
> exists in database: orc_proto.proto
> [libprotobuf FATAL google/protobuf/descriptor.cc:1164] CHECK failed: 
> generated_database_->Add(encoded_file_descriptor, size):
> terminate called after throwing an instance of 
> 'google::protobuf::FatalException'
>   what():  CHECK failed: generated_database_->Add(encoded_file_descriptor, 
> size):
> Aborted{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to