osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-3485) Examples fail with Protobuf error


Yury Zhyshko created ARROW-3485:
-----------------------------------

             Summary: 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


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)