Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3485

[C++] Examples fail with Protobuf error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • C++
    • None
    • Ubuntu 18.04
      Debian GNU

    Description

      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: 

      /usr/include/parquet/util/memory.h:44:33: error: template argument 1 is invalid std::unique_ptr<::arrow::Codec> result;
      

      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

      [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

      Attachments

        Activity

          People

            kou Kouhei Sutou
            yzhishko Yury Zhyshko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: