tylerkovacs-hypertable-thriftclient 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CMakeLists.txt +197 -0
- metadata +65 -0
data/CMakeLists.txt
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright (C) 2008 Doug Judd (Zvents, Inc.)
|
|
3
|
+
#
|
|
4
|
+
# This program is free software; you can redistribute it and/or
|
|
5
|
+
# modify it under the terms of the GNU General Public License
|
|
6
|
+
# as published by the Free Software Foundation; either version 2
|
|
7
|
+
# of the License, or any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program; if not, write to the Free Software
|
|
16
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
17
|
+
# 02110-1301, USA.
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
project(HYPERTABLE)
|
|
21
|
+
|
|
22
|
+
# Hypertable version components
|
|
23
|
+
set(VERSION_MAJOR "0")
|
|
24
|
+
set(VERSION_MINOR "9")
|
|
25
|
+
set(VERSION_MICRO "2")
|
|
26
|
+
set(VERSION_PATCH "1")
|
|
27
|
+
|
|
28
|
+
# cmake behavior compatibility
|
|
29
|
+
cmake_minimum_required(VERSION 2.4.6)
|
|
30
|
+
mark_as_advanced(CMAKE_BACKWARDS_COMPATIBILITY)
|
|
31
|
+
|
|
32
|
+
# saner control structure syntax
|
|
33
|
+
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|
34
|
+
|
|
35
|
+
if (COMMAND cmake_policy)
|
|
36
|
+
# we prefer the more strict behavior, to find out more:
|
|
37
|
+
# cmake --help-policy CMP0003
|
|
38
|
+
cmake_policy(SET CMP0003 NEW)
|
|
39
|
+
endif ()
|
|
40
|
+
|
|
41
|
+
# Something nice for GUI like ccmake
|
|
42
|
+
if (NOT CMAKE_BUILD_TYPE)
|
|
43
|
+
set(CMAKE_BUILD_TYPE Debug CACHE STRING
|
|
44
|
+
"Options: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
|
45
|
+
endif ()
|
|
46
|
+
|
|
47
|
+
# install directory prefix
|
|
48
|
+
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
49
|
+
set(CMAKE_INSTALL_PREFIX "/opt/hypertable"
|
|
50
|
+
CACHE PATH "installation directory prefix" FORCE)
|
|
51
|
+
endif ()
|
|
52
|
+
|
|
53
|
+
# Enable testing
|
|
54
|
+
enable_testing()
|
|
55
|
+
|
|
56
|
+
# A simple test helper
|
|
57
|
+
set(TEST_DIFF ${HYPERTABLE_SOURCE_DIR}/bin/src-utils/testdiff)
|
|
58
|
+
|
|
59
|
+
# gcc warning settings
|
|
60
|
+
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
|
61
|
+
add_definitions(-Wall -pedantic -Wno-long-long)
|
|
62
|
+
endif ()
|
|
63
|
+
|
|
64
|
+
add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT)
|
|
65
|
+
|
|
66
|
+
# Uncomment the following to build dynamic libraries
|
|
67
|
+
# set (BUILD_SHARED_LIBS ON)
|
|
68
|
+
|
|
69
|
+
# Locate required packages
|
|
70
|
+
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|
71
|
+
|
|
72
|
+
# A more informative hypertable version string
|
|
73
|
+
include(VersionHelper)
|
|
74
|
+
|
|
75
|
+
# Install directory
|
|
76
|
+
set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${VERSION})
|
|
77
|
+
|
|
78
|
+
find_package(Threads REQUIRED)
|
|
79
|
+
message(STATUS "Use thread library: ${CMAKE_THREAD_LIBS_INIT}")
|
|
80
|
+
find_package(Boost REQUIRED)
|
|
81
|
+
find_package(BerkeleyDB REQUIRED)
|
|
82
|
+
find_package(EXPAT REQUIRED)
|
|
83
|
+
find_package(Log4cpp REQUIRED)
|
|
84
|
+
find_package(Readline REQUIRED)
|
|
85
|
+
find_package(SIGAR REQUIRED)
|
|
86
|
+
find_package(ZLIB REQUIRED)
|
|
87
|
+
find_package(Doxygen)
|
|
88
|
+
find_package(Tcmalloc)
|
|
89
|
+
find_package(Kfs)
|
|
90
|
+
find_package(Ant)
|
|
91
|
+
find_package(JNI)
|
|
92
|
+
find_package(PythonLibs)
|
|
93
|
+
find_package(LibEvent)
|
|
94
|
+
find_package(Thrift)
|
|
95
|
+
find_package(RubyThrift)
|
|
96
|
+
find_package(PHP5Thrift)
|
|
97
|
+
find_package(PerlThrift)
|
|
98
|
+
find_package(PythonThrift)
|
|
99
|
+
find_package(JavaThrift)
|
|
100
|
+
|
|
101
|
+
if (PYTHON_LIBS_FOUND)
|
|
102
|
+
message (STATUS "Python libraries found at : ${PYTHON_LIBS_FOUND}")
|
|
103
|
+
endif ()
|
|
104
|
+
|
|
105
|
+
if (JAVA_INCLUDE_PATH)
|
|
106
|
+
message(STATUS "Java headers found at: ${JAVA_INCLUDE_PATH}")
|
|
107
|
+
if (HADOOP_INCLUDE_PATH)
|
|
108
|
+
message(STATUS "Hadoop includes located at: ${HADOOP_INCLUDE_PATH}")
|
|
109
|
+
else ()
|
|
110
|
+
message(STATUS "Please set HADOOP_INCLUDE_PATH variable for Hadoop support")
|
|
111
|
+
endif(HADOOP_INCLUDE_PATH)
|
|
112
|
+
|
|
113
|
+
if (HADOOP_LIB_PATH)
|
|
114
|
+
message(STATUS "Hadoop libraries located at: ${HADOOP_LIB_PATH}")
|
|
115
|
+
else ()
|
|
116
|
+
message(STATUS "Please set HADOOP_LIB_PATH variable for Hadoop support")
|
|
117
|
+
endif ()
|
|
118
|
+
|
|
119
|
+
if (NOT BUILD_SHARED_LIBS)
|
|
120
|
+
message(STATUS "Not building shared libraries. "
|
|
121
|
+
"Hadoop map-reduce support will be disabled")
|
|
122
|
+
endif ()
|
|
123
|
+
else ()
|
|
124
|
+
message(STATUS "Java JNI not found. Hadoop support will be disabled.")
|
|
125
|
+
endif(JAVA_INCLUDE_PATH)
|
|
126
|
+
|
|
127
|
+
# set malloc library except in Debug mode, as tcmalloc makes program startup
|
|
128
|
+
# extremely slow, which slows down debug cycles.
|
|
129
|
+
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
130
|
+
set(MALLOC_LIBRARY ${Tcmalloc_LIBRARIES})
|
|
131
|
+
endif ()
|
|
132
|
+
|
|
133
|
+
# include directories
|
|
134
|
+
include_directories(src/cc ${HYPERTABLE_BINARY_DIR}/src/cc
|
|
135
|
+
${ZLIB_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${Log4cpp_INCLUDE_DIR}
|
|
136
|
+
${EXPAT_INCLUDE_DIRS} ${BDB_INCLUDE_DIR} ${READLINE_INCLUDE_DIR}
|
|
137
|
+
${SIGAR_INCLUDE_DIR})
|
|
138
|
+
|
|
139
|
+
if (Thrift_FOUND)
|
|
140
|
+
include_directories(${LibEvent_INCLUDE_DIR} ${Thrift_INCLUDE_DIR})
|
|
141
|
+
add_definitions(-DHT_WITH_THRIFT)
|
|
142
|
+
set(ThriftBroker_IDL_DIR ${HYPERTABLE_SOURCE_DIR}/src/cc/ThriftBroker)
|
|
143
|
+
endif ()
|
|
144
|
+
|
|
145
|
+
if (BOOST_VERSION MATCHES "1_34")
|
|
146
|
+
message(STATUS "Got boost 1.34.x, prepend fix directory")
|
|
147
|
+
include_directories(BEFORE src/cc/boost-1_34-fix)
|
|
148
|
+
endif ()
|
|
149
|
+
|
|
150
|
+
if (GCC_VERSION MATCHES "^([4-9]|[1-9][0-9]+)\\.")
|
|
151
|
+
add_definitions(-Wno-variadic-macros)
|
|
152
|
+
# turn off deprecated feature warnings for gcc 4.3+
|
|
153
|
+
if (GCC_VERSION MATCHES "^([4-9]|[1-9][0-9]+)\\.([3-9]|[1-9][0-9]+)")
|
|
154
|
+
add_definitions(-Wno-deprecated)
|
|
155
|
+
endif ()
|
|
156
|
+
elseif (GCC_VERSION MATCHES "^([4-9]|[1-9][0-9]+)\\.")
|
|
157
|
+
message(STATUS "Ancient gcc detected, hope it finishes despite warnings...")
|
|
158
|
+
endif ()
|
|
159
|
+
|
|
160
|
+
include(TestHelper)
|
|
161
|
+
include(DocHelper)
|
|
162
|
+
|
|
163
|
+
# sub-project directories
|
|
164
|
+
add_subdirectory(src)
|
|
165
|
+
add_subdirectory(examples)
|
|
166
|
+
add_subdirectory(contrib)
|
|
167
|
+
add_subdirectory(tests/integration)
|
|
168
|
+
|
|
169
|
+
# Java stuff
|
|
170
|
+
if (ANT_FOUND)
|
|
171
|
+
include(JavaHelper)
|
|
172
|
+
endif ()
|
|
173
|
+
|
|
174
|
+
install(FILES demo/metadata-test.xml DESTINATION ${VERSION}/demo)
|
|
175
|
+
install(FILES demo/testdata.txt.bz2 DESTINATION ${VERSION}/demo)
|
|
176
|
+
install(FILES demo/Test.xml DESTINATION ${VERSION}/demo)
|
|
177
|
+
install(FILES demo/Test-schema.xml DESTINATION ${VERSION}/demo)
|
|
178
|
+
install(FILES conf/hypertable.cfg DESTINATION ${VERSION}/conf)
|
|
179
|
+
install(FILES conf/METADATA.xml DESTINATION ${VERSION}/conf)
|
|
180
|
+
install(FILES lib/commons-logging-1.0.4.jar DESTINATION ${VERSION}/java/lib)
|
|
181
|
+
install(FILES lib/hadoop-0.19.0-core.jar DESTINATION ${VERSION}/java/lib)
|
|
182
|
+
install(FILES lib/junit-4.3.1.jar DESTINATION ${VERSION}/java/lib)
|
|
183
|
+
install(FILES lib/log4j-1.2.13.jar DESTINATION ${VERSION}/java/lib)
|
|
184
|
+
install(FILES lib/hypertable-${VERSION}.jar DESTINATION ${VERSION}/java/lib)
|
|
185
|
+
install(FILES ${HYPERTABLE_BINARY_DIR}/java/hypertable-${VERSION}.jar
|
|
186
|
+
DESTINATION ${VERSION}/java/lib OPTIONAL)
|
|
187
|
+
install(PROGRAMS bin/jrun bin/clean-database.sh bin/start-dfsbroker.sh
|
|
188
|
+
bin/start-master.sh bin/start-hyperspace.sh
|
|
189
|
+
bin/start-rangeserver.sh bin/start-all-servers.sh
|
|
190
|
+
bin/stop-servers.sh bin/start-thriftbroker.sh
|
|
191
|
+
DESTINATION ${VERSION}/bin)
|
|
192
|
+
install(DIRECTORY examples/apache_log DESTINATION ${VERSION}/examples
|
|
193
|
+
USE_SOURCE_PERMISSIONS)
|
|
194
|
+
install(DIRECTORY examples/hql_tutorial DESTINATION ${VERSION}/examples
|
|
195
|
+
USE_SOURCE_PERMISSIONS)
|
|
196
|
+
install(DIRECTORY examples/freebase DESTINATION ${VERSION}/examples
|
|
197
|
+
USE_SOURCE_PERMISSIONS)
|
metadata
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tylerkovacs-hypertable-thriftclient
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- tylerkovacs
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-01-23 00:00:00 -08:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: TODO
|
|
17
|
+
email: tyler.kovacs@gmail.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
24
|
+
files:
|
|
25
|
+
- CMakeLists.txt
|
|
26
|
+
- VERSION.yml
|
|
27
|
+
- lib/thriftclient.rb
|
|
28
|
+
- lib/gen-rb
|
|
29
|
+
- lib/gen-rb/ClientService.rb
|
|
30
|
+
- lib/gen-rb/Hql_constants.rb
|
|
31
|
+
- lib/gen-rb/Hql_types.rb
|
|
32
|
+
- lib/gen-rb/HqlService.rb
|
|
33
|
+
- lib/gen-rb/Client_constants.rb
|
|
34
|
+
- lib/gen-rb/Client_types.rb
|
|
35
|
+
- test/thriftclient_test.rb
|
|
36
|
+
- test/test_helper.rb
|
|
37
|
+
has_rdoc: true
|
|
38
|
+
homepage: http://github.com/tylerkovacs/hypertable
|
|
39
|
+
post_install_message:
|
|
40
|
+
rdoc_options:
|
|
41
|
+
- --inline-source
|
|
42
|
+
- --charset=UTF-8
|
|
43
|
+
require_paths:
|
|
44
|
+
- lib
|
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: "0"
|
|
50
|
+
version:
|
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: "0"
|
|
56
|
+
version:
|
|
57
|
+
requirements: []
|
|
58
|
+
|
|
59
|
+
rubyforge_project:
|
|
60
|
+
rubygems_version: 1.2.0
|
|
61
|
+
signing_key:
|
|
62
|
+
specification_version: 2
|
|
63
|
+
summary: A Ruby Thrift Client for Hypertable
|
|
64
|
+
test_files: []
|
|
65
|
+
|