Skip to content

Commit

Permalink
ARROW-26: Add instructions for enabling Arrow C++ Parquet adapter build
Browse files Browse the repository at this point in the history
This patch documents the workflow for building the optional Arrow-Parquet C++ integration. I originally thought about adding an option to build it in Arrow's thirdparty, but it immediately results in a dependency-hell situation (Parquet requires Thrift, Boost, snappy, lz4, zlib)

Author: Wes McKinney <wesm@apache.org>

Closes #12 from wesm/ARROW-26 and squashes the following commits:

b28fd75 [Wes McKinney] Add instructions for enabling Arrow C++ Parquet adapter build
  • Loading branch information
wesm committed Mar 4, 2016
1 parent 0c95d3c commit 3b777c7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ endif()

# Top level cmake dir
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
option(ARROW_WITH_PARQUET
option(ARROW_PARQUET
"Build the Parquet adapter and link to libparquet"
OFF)

Expand Down Expand Up @@ -441,7 +441,7 @@ endif (UNIX)
#----------------------------------------------------------------------
# Parquet adapter

if(ARROW_WITH_PARQUET)
if(ARROW_PARQUET)
find_package(Parquet REQUIRED)
include_directories(SYSTEM ${PARQUET_INCLUDE_DIR})
ADD_THIRDPARTY_LIB(parquet
Expand Down
24 changes: 24 additions & 0 deletions cpp/doc/Parquet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Building Arrow-Parquet integration

To build the Arrow C++'s Parquet adapter library, you must first build [parquet-cpp][1]:

```bash
# Set this to your preferred install location
export PARQUET_HOME=$HOME/local

git clone https://github.com/apache/parquet-cpp.git
cd parquet-cpp
source setup_build_env.sh
cmake -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME
make -j4
make install
```

Make sure that `$PARQUET_HOME` is set to the installation location. Now, build
Arrow with the Parquet adapter enabled:

```bash
cmake -DARROW_PARQUET=ON
```

[1]: https://github.com/apache/parquet-cpp

0 comments on commit 3b777c7

Please sign in to comment.