On Jan 29, 2:02 am, Luke <[email protected]> wrote:
> On Thu, Jan 28, 2010 at 6:07 PM, Joao <[email protected]> wrote:
> > Thanks Luke and Sanjit,
>
> > 1. My bad. I was trying to run make from the binary package.
> > Successfully compiled on openSuSE 11.1 after this change ( without
> > side efects, I hope):
> > diff /usr/local/src/hypertable/src/hypertable/src/cc/Common/
> > Filesystem.h /usr/local/src/hypertable/src/hypertable/src/cc/Common/
> > Filesystem.h.joao
> > 49c49
> > < bool has_parent_path() const { return has_branch_path(); }
> > ---
> >> /* bool has_parent_path() const { return has_branch_path(); } */
>
> What's your boost version? error messages?
jmobile:/usr/local/src/hypertable/src/build # cmake -DBDB_LIBRARY=/usr/
local/BerkeleyDB.4.6/lib/libdb_cxx.a -DBDB_INCLUDE_DIR=/usr/local/
BerkeleyDB.4.6/include/ -DCMAKE_INSTALL_PREFIX=/usr/local/src/
hypertable/src/install/ -DCMAKE_BUILD_TYPE="Debug" -
DCMAKE_CXX_FLAGS:STRING=-lpthread ../hypertable/
-- The C compiler identification is
GNU
-- The CXX compiler identification is
GNU
-- Check for working C compiler: /usr/bin/
gcc
-- Check for working C compiler: /usr/bin/gcc --
works
-- Detecting C compiler ABI
info
-- Detecting C compiler ABI info -
done
-- Check for working CXX compiler: /usr/bin/c+
+
-- Check for working CXX compiler: /usr/bin/c++ --
works
-- Detecting CXX compiler ABI
info
-- Detecting CXX compiler ABI info -
done
-- Looking for include files
CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H -
found
-- Looking for pthread_create in
pthreads
-- Looking for pthread_create in pthreads - not
found
-- Looking for pthread_create in
pthread
-- Looking for pthread_create in pthread -
found
-- Found Threads:
TRUE
-- Use thread library: -
lpthread
-- Looking for required boost
libraries...
-- GCC version:
4.3.2
-- Boost version:
1_36
-- Boost include dir: /usr/
include
-- Boost thread lib: /usr/lib/libboost_thread-
mt.so
-- Boost program options lib: /usr/lib/libboost_program_options-
mt.so
-- Boost filesystem lib: /usr/lib/libboost_filesystem-
mt.so
-- Boost iostreams lib: /usr/lib/libboost_iostreams-
mt.so
-- Boost python lib: /usr/lib/libboost_python-
mt.so
-- Boost system lib: /usr/lib/libboost_system-
mt.so
-- Boost lib dir: /usr/
lib
-- Found BerkeleyDB: /usr/local/BerkeleyDB.4.6/lib/
libdb_cxx.a
-- Berkeley DB version:
4.6.18
-- Found EXPAT: /usr/lib/
libexpat.so
-- Found Log4cpp: /usr/local/lib/
liblog4cpp.so
-- Found Readline libraries: /usr/lib/libreadline.so;/usr/lib/
libncurses.so
-- Found SIGAR: /usr/local/lib/libsigar-x86-
linux.so;dl
-- Found ZLIB: /usr/lib/
libz.so
-- Found BZip2: /usr/lib/
libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/
libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so -
found
-- Looking for
doxygen...
-- Looking for doxygen... - NOT
found
-- Looking for dot
tool...
-- Looking for dot tool... - found /usr/bin/
dot
-- Not Found Tcmalloc: Tcmalloc_LIBRARY-
NOTFOUND
-- Did not find ceph
libraries
-- Found Ant: Apache Ant version 1.7.0 compiled on December 3
2008
-- Javac: javac
1.6.0_13
-- Found PythonLibs: /usr/lib/python2.6/config/
libpython2.6.a
-- libevent NOT
found.
-- libevent is required for thrift broker
support
-- Thrift compiler/libraries NOT found. Thrift support will be
disabled (127, Thrift_INCLUDE_DIR-NOTFOUND, Thrift_LIB-NOTFOUND,
Thrift_NB_LIB-NOTFOUND)
-- Thrift for ruby not found. ThriftBroker support for ruby will be
disabled
-- PHPTHRIFT_ROOT not found. ThriftBroker support for php will be
disabled
-- Thrift for perl not found. ThriftBroker support for perl will be
disabled
-- Thrift for python not found. ThriftBroker support for python will
be
disabled
-- Java headers found at: /usr/java/jdk1.6.0_11/
include
-- Please set HADOOP_INCLUDE_PATH variable for Legacy Hadoop
support
-- Please set HADOOP_LIB_PATH variable for Legacy Hadoop
support
-- Not building shared libraries. Legacy Hadoop support will be
disabled
-- Configuring
done
-- Generating
done
-- Build files have been written to: /usr/local/src/hypertable/src/
build
jmobile:/usr/local/src/hypertable/src/build #
make
Scanning dependencies of target
HypertableJavaComponents
Buildfile:
build.xml
prepare:
[mkdir] Created dir: /usr/local/src/hypertable/src/build/java/
classes
compile:
[javac] Compiling 11 source files to /usr/local/src/hypertable/src/
build/java/classes
[javac] Note: Some input files use unchecked or unsafe
operations.
[javac] Note: Recompile with -Xlint:unchecked for
details.
[javac] Compiling 2 source files to /usr/local/src/hypertable/src/
build/java/classes
[javac] Compiling 63 source files to /usr/local/src/hypertable/src/
build/java/classes
[javac] Compiling 2 source files to /usr/local/src/hypertable/src/
build/java/classes
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:13: warning:
[deprecation] org.apache.hadoop.mapred.FileInputFormat in
org.apache.hadoop.mapred has been
deprecated
[javac] import
org.apache.hadoop.mapred.FileInputFormat;
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:14: warning:
[deprecation] org.apache.hadoop.mapred.InputFormat in
org.apache.hadoop.mapred has been
deprecated
[javac] import
org.apache.hadoop.mapred.InputFormat;
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:15: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been
deprecated
[javac] import
org.apache.hadoop.mapred.InputSplit;
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:16: warning:
[deprecation] org.apache.hadoop.mapred.JobConf in
org.apache.hadoop.mapred has been
deprecated
[javac] import
org.apache.hadoop.mapred.JobConf;
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:17: warning:
[deprecation] org.apache.hadoop.mapred.JobConfigurable in
org.apache.hadoop.mapred has been
deprecated
[javac] import
org.apache.hadoop.mapred.JobConfigurable;
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:24: warning:
[deprecation] org.apache.hadoop.mapred.InputFormat in
org.apache.hadoop.mapred has been
deprecated
[javac] public class TableInputFormat implements InputFormat<Text,
MapWritable>,
JobConfigurable
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:24: warning:
[deprecation] org.apache.hadoop.mapred.JobConfigurable in
org.apache.hadoop.mapred has been
deprecated
[javac] public class TableInputFormat implements InputFormat<Text,
MapWritable>,
JobConfigurable
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:34: warning:
[deprecation] org.apache.hadoop.mapred.JobConf in
org.apache.hadoop.mapred has been
deprecated
[javac] public void configure(JobConf
job)
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:50: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been
deprecated
[javac] public RecordReader<Text, MapWritable> getRecordReader
(InputSplit split, JobConf job, Reporter
reporter)
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:50: warning:
[deprecation] org.apache.hadoop.mapred.JobConf in
org.apache.hadoop.mapred has been
deprecated
[javac] public RecordReader<Text, MapWritable> getRecordReader
(InputSplit split, JobConf job, Reporter
reporter)
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:55: warning:
[deprecation] org.apache.hadoop.mapred.JobConf in
org.apache.hadoop.mapred has been
deprecated
[javac] public InputSplit[] getSplits(JobConf job, int
numSplits) throws IOException
{
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:55: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been
deprecated
[javac] public InputSplit[] getSplits(JobConf job, int
numSplits) throws IOException
{
[javac]
^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:76: warning:
[deprecation] org.apache.hadoop.mapred.JobConf in
org.apache.hadoop.mapred has been
deprecated
[javac] public void validateInput(JobConf job) {
[javac] ^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableSplit.java:8: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been deprecated
[javac] import org.apache.hadoop.mapred.InputSplit;
[javac] ^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableSplit.java:10: warning:
[deprecation] org.apache.hadoop.mapred.InputSplitin
org.apache.hadoop.mapred has been deprecated
[javac] public class TableSplit implements InputSplit {
[javac] ^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:36: warning:
[deprecation] org.apache.hadoop.mapred.FileInputFormat in
org.apache.hadoop.mapred has been deprecated
[javac] Path[] tableNames = FileInputFormat.getInputPaths
(job);
[javac] ^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:61: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been deprecated
[javac] InputSplit[] splits = new InputSplit
[rangeVector.length/3];
[javac] ^
[javac] /usr/local/src/hypertable/src/hypertable/contrib/java/
MapReduce/org/hypertable/mapreduce/TableInputFormat.java:61: warning:
[deprecation] org.apache.hadoop.mapred.InputSplit in
org.apache.hadoop.mapred has been deprecated
[javac] InputSplit[] splits = new InputSplit
[rangeVector.length/3];
[javac] ^
[javac] 18 warnings
jar:
[jar] Building jar: /usr/local/src/hypertable/src/build/java/
hypertable-0.9.2.7.jar
BUILD SUCCESSFUL
Total time: 7 seconds
[ 0%] Built target HypertableJavaComponents
Scanning dependencies of target HyperCommon
[ 0%] Building CXX object src/cc/Common/CMakeFiles/HyperCommon.dir/
Abi.cc.o
[ 0%] Building CXX object src/cc/Common/CMakeFiles/HyperCommon.dir/
Checksum.cc.o
[ 1%] Building CXX object src/cc/Common/CMakeFiles/HyperCommon.dir/
Config.cc.o
In file included from /usr/local/src/hypertable/src/hypertable/src/cc/
Common/Config.cc:26:
/usr/local/src/hypertable/src/hypertable/src/cc/Common/Filesystem.h:
In member function ‘bool Hypertable::Path::has_parent_path() const’:
/usr/local/src/hypertable/src/hypertable/src/cc/Common/Filesystem.h:
49: error: ‘has_branch_path’ was not declared in this scope
make[2]: *** [src/cc/Common/CMakeFiles/HyperCommon.dir/Config.cc.o]
Error 1
make[1]: *** [src/cc/Common/CMakeFiles/HyperCommon.dir/all] Error 2
make: *** [all] Error 2
>
> > 2. Onhttp://code.google.com/p/hypertable/wiki/HowToInstall, HOW TO
> > RUN REGRESSION TESTS, item 2, i think it should be "bin/stop-
> > servers.sh" instead of "bin/kill-servers.sh"
>
> That wiki page doesn't seem to have the item. You only need to do make
> alltests to run regression tests.
>
I insist. This is not a compilation problem, just a imperceptive
documentation fault.
> > 3. I have verified the existence of LogDb table, but something appears
> > (not investigated yet) to be wrong inserting data:
>
> > ./apache_log_load access.log
> > Hypertable::Exception: getting config values - CONFIG failed to get
> > config value
> > at Hyperspace::Session::Session(Hypertable::Comm*,
> > Hypertable::PropertiesPtr&, Hyperspace::SessionCallback*) (/usr/local/
> > src/hypertable/src/hypertable/src/cc/Hyperspace/Session.cc:59)
> > at T Hypertable::Properties::get(const Hypertable::String&)
> > const [with T = std::basic_string<char, std::char_traits<char>,
> > std::allocator<char> >] (/usr/local/src/hypertable/src/hypertable/src/
> > cc/Common/Properties.h:243): getting value of
> > 'Hyperspace.Master.Host': boost::bad_any_cast: failed conversion using
> > boost::any_cast
>
> The README.txt in the directory needs some update. Current workaround:
> ln -s $installdir/conf .
Ok.
>
> > On Jan 28, 12:44 am, Sanjit Jhala <[email protected]> wrote:
> >> Hi Joao,
>
> >> You shouldn't have to run make in that directory at all.
> >> You can follow the build directions
> >> athttp://code.google.com/p/hypertable/wiki/HowToInstallif you're building
> >> from the source. If you do this then under your build directory there
> >> should
> >> a directory "examples/apache_log_load" with the binary for this example.
> >> This will be in your build directory not in your install directory (which
> >> is
> >> where you are trying to run make).
>
> >> -Sanjit
>
> >> On Wed, Jan 27, 2010 at 11:38 AM, Joao <[email protected]> wrote:
> >> > Hi guys,
>
> >> > I am a little confused compiling the apache_log example. I hope you
> >> > can buy me some time, far now I could reach here:
>
> >> > node1:/usr/local/src/hypertable-0.9.2.7-linux-i386/opt/hypertable/
> >> > 0.9.2.7/examples/apache_log # make
> >> > g++ -o apache_log_load apache_log_load.o -L/usr/local/src/
> >> > hypertable-0.9.2.7-linux-i386/opt/hypertable/0.9.2.7/lib -L/usr/lib -L/
> >> > usr/local/lib -L/usr/local/src/hyperic-sigar-1.6.3/sigar-bin/lib -
> >> > lsigar-x86-linux -lHypertable -lHyperComm -lHyperCommon -lHyperTools -
> >> > llog4cpp -lexpat -lboost_thread-mt -lboost_iostreams-mt -
> >> > lboost_program_options-mt -lboost_system-mt -lHyperspace -lz -lncurses
> >> > /usr/local/src/hypertable-0.9.2.7-linux-i386/opt/hypertable/0.9.2.7/
> >> > lib/libHyperspace.a(HsCommandInterpreter.cc.o)<http://0.9.2.7/%0Alib/libHyperspace.a%28HsCommandInterpreter.cc.o%29>:
> >> > In function
> >> > `Hyperspace::HsCommandInterpreter::HsCommandInterpreter
> >> > (Hyperspace::Session*)':
> >> > HsCommandInterpreter.cc:(.text+0x3e): undefined reference to
> >> > `Hypertable::CommandInterpreter::CommandInterpreter()'
> >> > /usr/local/src/hypertable-0.9.2.7-linux-i386/opt/hypertable/0.9.2.7/
> >> > lib/libHyperspace.a(HsCommandInterpreter.cc.o)<http://0.9.2.7/%0Alib/libHyperspace.a%28HsCommandInterpreter.cc.o%29>:
> >> > In function
> >> > `Hyperspace::HsCommandInterpreter::HsCommandInterpreter
> >> > (Hyperspace::Session*)':
> >> > HsCommandInterpreter.cc:(.text+0x6e): undefined reference to
> >> > `Hypertable::CommandInterpreter::CommandInterpreter()'
> >> > collect2: ld returned 1 exit status
> >> > make: *** [apache_log_load] Error 1
>
> >> > --
> >> > You received this message because you are subscribed to the Google Groups
> >> > "Hypertable Development" group.
> >> > To post to this group, send email to [email protected].
> >> > To unsubscribe from this group, send email to
> >> > [email protected]<hypertable-dev%[email protected]>
> >> > .
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/hypertable-dev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hypertable Development" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group
> > athttp://groups.google.com/group/hypertable-dev?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hypertable-dev?hl=en.