FAQ
Ishaan,

I got the following error when using the following command

sudo yum install boost-test boost-program-options libevent-devel automake
libtool flex bison gcc-c++ openssl-devel \
make cmake doxygen.x86_64 glib-devel boost-devel python-devel bzip2-devel
svn libevent-devel cyrus-sasl-devel \
wget git unzip

Error:

Resolving Dependencies
--> Running transaction check
---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
--> Processing Dependency: libevent = 1.4.13-1 for package:
libevent-devel-1.4.13-1.x86_64
--> Running transaction check
---> Package libevent.i386 0:1.4.13-1 will be installed
--> Finished Dependency Resolution
Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
libevent-1.4.13-4.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

So I went ahead and removed libevent-devel from the above comand and was
able to successfully compiled and installed thrift and llvm but when I
tried to compile impala got the above error.

Thanks.
-Dipesh
On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

Dipesh,

I don't see anything obviously wrong here. As far as I know, we don't
require a 32-bit version of libevent-devel. It would be great if you could
give us more information on the package conflict you're seeing.

Thanks,

.. Ishaan




On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft <dipeshs...@gmail.com<javascript:>
wrote:
I'm trying to build impala on RHEL 6.3 but got the following error -

/**
/usr/local/include/thrift/server/TNonblockingServer.h:298: error: class
\u2018apache::thrift::server::TNonblockingServer\u2019 does not have any
field named \u2018eventBase_\u2019
/usr/local/include/thrift/server/TNonblockingServer.h: At global scope:
/usr/local/include/thrift/server/TNonblockingServer.h:761: error: field
\u2018event_\u2019 has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h:803: error: field
\u2018taskEvent_\u2019 has incomplete type
/usr/local/include/thrift/server/TNonblockingServer.h: In member function
\u2018void apache::thrift::server::TConnection::setRead()\u2019:
/usr/local/include/thrift/server/TNonblockingServer.h:829: error:
\u2018EV_READ\u2019 was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h:829: error:
\u2018EV_PERSIST\u2019 was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h: In member function
\u2018void apache::thrift::server::TConnection::setWrite()\u2019:
/usr/local/include/thrift/server/TNonblockingServer.h:834: error:
\u2018EV_WRITE\u2019 was not declared in this scope
/usr/local/include/thrift/server/TNonblockingServer.h:834: error:
\u2018EV_PERSIST\u2019 was not declared in this scope
[ 10%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/cast-expr.cc.o
[ 11%] Building CXX object
be/src/exec/CMakeFiles/Exec.dir/delimited-text-parser.cc.o
make[2]: *** [be/src/exec/CMakeFiles/Exec.dir/ddl-executor.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 11%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/compound-predicate.cc.o
[ 12%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/conditional-functions.cc.o
make[1]: *** [be/src/exec/CMakeFiles/Exec.dir/all] Error 2
[ 12%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/date-literal.cc.o
[ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.dir/expr.cc.o
[ 13%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/float-literal.cc.o
[ 14%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/function-call.cc.o
[ 14%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/in-predicate.cc.o
[ 14%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/int-literal.cc.o
[ 15%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/is-null-predicate.cc.o
[ 15%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/like-predicate.cc.o
[ 16%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/literal-predicate.cc.o
[ 16%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/math-functions.cc.o
[ 17%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/null-literal.cc.o
[ 17%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/opcode-registry.cc.o
[ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.dir/slot-ref.cc.o
[ 18%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/string-literal.cc.o
[ 18%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/string-functions.cc.o
[ 19%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/timestamp-functions.cc.o
[ 19%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/timestamp-literal.cc.o
[ 20%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/timezone_db.cc.o
[ 20%] Building CXX object
be/src/exprs/CMakeFiles/Exprs.dir/utility-functions.cc.o
Linking CXX static library ../../build/debug/exprs/libExprs.a
[ 20%] Built target Exprs
**/

I have followed the instructions mentioned here -
https://github.com/cloudera/impala - with the only exception that I
didn't install libevent-devel (as it was conflicting with an existing
version on my system - i had a 64 bit library for libevent and here I
guess, I was trying to install 32 bit library, so thought to not corrupt my
system and break something else )

I did install thirft and llvm successfully but I don't know do if i have
installed them do I need to install thrift again in thirtparty install
script?

Thanks.



--

--

Search Discussions

  • Sean Mackrory at Jan 18, 2013 at 6:43 pm
    It looks like you already have the "1.4.13-4" version of libevent
    installed, but the latest version of libevent-devel your repository has
    available "1.4.13-1" is. Those versions should match up. You can try
    downgrading your install of libevent to 1.4.13-1, since that is what your
    repository has available, but if you have modified your repositories
    recently (for instance, if your organization is mirroring the repository
    locally) - you may want to find out why the 1.4.13-4 version is not
    available to you any more.
    On Thursday, January 17, 2013 11:32:28 PM UTC-8, Deepsoft wrote:

    Ishaan,

    I got the following error when using the following command

    sudo yum install boost-test boost-program-options libevent-devel automake
    libtool flex bison gcc-c++ openssl-devel \
    make cmake doxygen.x86_64 glib-devel boost-devel python-devel bzip2-devel
    svn libevent-devel cyrus-sasl-devel \
    wget git unzip

    Error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
    --> Processing Dependency: libevent = 1.4.13-1 for package:
    libevent-devel-1.4.13-1.x86_64
    --> Running transaction check
    ---> Package libevent.i386 0:1.4.13-1 will be installed
    --> Finished Dependency Resolution
    Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
    libevent-1.4.13-4.el6.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    So I went ahead and removed libevent-devel from the above comand and was
    able to successfully compiled and installed thrift and llvm but when I
    tried to compile impala got the above error.

    Thanks.
    -Dipesh
    On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

    Dipesh,

    I don't see anything obviously wrong here. As far as I know, we don't
    require a 32-bit version of libevent-devel. It would be great if you could
    give us more information on the package conflict you're seeing.

    Thanks,

    .. Ishaan



    On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft wrote:

    I'm trying to build impala on RHEL 6.3 but got the following error -

    /**
    /usr/local/include/thrift/server/TNonblockingServer.h:298: error: class
    \u2018apache::thrift::server::TNonblockingServer\u2019 does not have any
    field named \u2018eventBase_\u2019
    /usr/local/include/thrift/server/TNonblockingServer.h: At global scope:
    /usr/local/include/thrift/server/TNonblockingServer.h:761: error: field
    \u2018event_\u2019 has incomplete type
    /usr/local/include/thrift/server/TNonblockingServer.h:803: error: field
    \u2018taskEvent_\u2019 has incomplete type
    /usr/local/include/thrift/server/TNonblockingServer.h: In member
    function \u2018void apache::thrift::server::TConnection::setRead()\u2019:
    /usr/local/include/thrift/server/TNonblockingServer.h:829: error:
    \u2018EV_READ\u2019 was not declared in this scope
    /usr/local/include/thrift/server/TNonblockingServer.h:829: error:
    \u2018EV_PERSIST\u2019 was not declared in this scope
    /usr/local/include/thrift/server/TNonblockingServer.h: In member
    function \u2018void apache::thrift::server::TConnection::setWrite()\u2019:
    /usr/local/include/thrift/server/TNonblockingServer.h:834: error:
    \u2018EV_WRITE\u2019 was not declared in this scope
    /usr/local/include/thrift/server/TNonblockingServer.h:834: error:
    \u2018EV_PERSIST\u2019 was not declared in this scope
    [ 10%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/cast-expr.cc.o
    [ 11%] Building CXX object
    be/src/exec/CMakeFiles/Exec.dir/delimited-text-parser.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.dir/ddl-executor.cc.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 11%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/compound-predicate.cc.o
    [ 12%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/conditional-functions.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/Exec.dir/all] Error 2
    [ 12%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/date-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.dir/expr.cc.o
    [ 13%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/float-literal.cc.o
    [ 14%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/function-call.cc.o
    [ 14%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/in-predicate.cc.o
    [ 14%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/int-literal.cc.o
    [ 15%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/is-null-predicate.cc.o
    [ 15%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/like-predicate.cc.o
    [ 16%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/literal-predicate.cc.o
    [ 16%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/math-functions.cc.o
    [ 17%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/null-literal.cc.o
    [ 17%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/opcode-registry.cc.o
    [ 17%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/slot-ref.cc.o
    [ 18%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/string-literal.cc.o
    [ 18%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/string-functions.cc.o
    [ 19%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/timestamp-functions.cc.o
    [ 19%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/timestamp-literal.cc.o
    [ 20%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/timezone_db.cc.o
    [ 20%] Building CXX object
    be/src/exprs/CMakeFiles/Exprs.dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/libExprs.a
    [ 20%] Built target Exprs
    **/

    I have followed the instructions mentioned here -
    https://github.com/cloudera/impala - with the only exception that I
    didn't install libevent-devel (as it was conflicting with an existing
    version on my system - i had a 64 bit library for libevent and here I
    guess, I was trying to install 32 bit library, so thought to not corrupt my
    system and break something else )

    I did install thirft and llvm successfully but I don't know do if i have
    installed them do I need to install thrift again in thirtparty install
    script?

    Thanks.



    --

    --
  • Henry Robinson at Jan 19, 2013 at 12:02 am
    Hi -
    ...with the only exception that I didn't install libevent-devel...
    This is the problem. You must have libevent-devel installed; it provides
    those headers (the ones you've found are not the libevent headers, and are
    correctly being ignored).

    You will have to solve the libevent-devel conflict and get it installed,
    then you should be able to get further.

    Good luck!

    Henry
    On 18 January 2013 23:53, Deepsoft wrote:

    Just to ensure that event.h is present or not on my system, I found it is
    present and located at these locations


    /usr/src/kernels/2.6.32-279.11.1.el6.x86_64/include/config/acpi/proc/event.h

    /usr/src/kernels/2.6.32-279.19.1.el6.x86_64/include/config/acpi/proc/event.h

    /usr/src/kernels/2.6.32-279.14.1.el6.x86_64/include/config/acpi/proc/event.h

    Why it is not finding it inside thrift's header files? I have followed
    steps and have compiled and installed thrift 0.7 and llvm 3.0 - and it did
    run fine. So i presume it has installed and created required thrift and
    llvm files at these locations

    usr/local/include/thrift
    usr/local/include/llvm

    It has created 3 other folders

    usr/local/include/clang-c
    usr/local/include/clang
    usr/local/include/llvm-c

    And then impala is referrring to these files here and one of the file
    requires event.h and it is not finding it. Correct?

    I have impala 0.3 installed on the same node.

    How do I proceed to build impalad?

    Thanks.


    On Friday, January 18, 2013 3:28:41 PM UTC-8, Deepsoft wrote:

    I have removed libevent 1.4.13.4 and installed 1.4.13.1 but still I got
    the following error

    [ 9%] Building CXX object be/src/exec/CMakeFiles/Exec.**
    dir/ddl-executor.cc.o
    In file included from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**server.h:23,
    from /home/khadi01/src/impala/**
    impala/be/src/service/impala-**server.h:31,
    from /home/khadi01/src/impala/**impala/be/src/exec/ddl-*
    *executor.cc:21:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**34:19: error:
    event.h: No such file or directory
    In file included from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**server.h:23,
    from /home/khadi01/src/impala/**
    impala/be/src/service/impala-**server.h:31,
    from /home/khadi01/src/impala/**impala/be/src/exec/ddl-*
    *executor.cc:21:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**134: error:
    ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**134: error:
    expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**server/TNonblockingServer.h:**138: error:
    field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**141: error:
    field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**356: error:
    ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**356: error:
    expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**server/TNonblockingServer.h:**361: error:
    expected ‘;’ before ‘void’
    /usr/local/include/thrift/**server/TNonblockingServer.h:**714: error:
    ‘event_base’ has not been declared
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**237: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>, int,
    boost::shared_ptr<apache::**thrift::concurrency::**ThreadManager>)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**263: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    boost::shared_ptr<apache::**thrift::transport::**TTransportFactory>,
    boost::shared_ptr<apache::**thrift::transport::**TTransportFactory>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>, int,
    boost::shared_ptr<apache::**thrift::concurrency::**ThreadManager>)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**298: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: At global scope:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**761: error:
    field ‘event_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**803: error:
    field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConnection::setRead()’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829: error:
    ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829: error:
    ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConnection::setWrite()’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834: error:
    ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834: error:
    ‘EV_PERSIST’ was not declared in this scope
    [ 9%] Building CXX object be/src/runtime/CMakeFiles/**
    Runtime.dir/client-cache.cc.o
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/case-expr.cc.o
    In file included from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**server.h:23,
    from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**client.h:32,
    from /home/khadi01/src/impala/**
    impala/be/src/runtime/client-**cache.h:25,
    from /home/khadi01/src/impala/**
    impala/be/src/runtime/client-**cache.cc:15:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**34:19: error:
    event.h: No such file or directory
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/cast-expr.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**dir/ddl-executor.cc.o] Error
    1
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/compound-predicate.cc.o
    In file included from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**server.h:23,
    from /home/khadi01/src/impala/**
    impala/be/src/util/thrift-**client.h:32,
    from /home/khadi01/src/impala/**
    impala/be/src/runtime/client-**cache.h:25,
    from /home/khadi01/src/impala/**
    impala/be/src/runtime/client-**cache.cc:15:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**134: error:
    ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**134: error:
    expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**server/TNonblockingServer.h:**138: error:
    field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**141: error:
    field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**356: error:
    ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**356: error:
    expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**server/TNonblockingServer.h:**361: error:
    expected ‘;’ before ‘void’
    /usr/local/include/thrift/**server/TNonblockingServer.h:**714: error:
    ‘event_base’ has not been declared
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**237: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>, int,
    boost::shared_ptr<apache::**thrift::concurrency::**ThreadManager>)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**263: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: In constructor
    ‘apache::thrift::server::**TNonblockingServer::**
    TNonblockingServer(boost::**shared_ptr<apache::thrift::**TProcessor>,
    boost::shared_ptr<apache::**thrift::transport::**TTransportFactory>,
    boost::shared_ptr<apache::**thrift::transport::**TTransportFactory>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>,
    boost::shared_ptr<apache::**thrift::protocol::**TProtocolFactory>, int,
    boost::shared_ptr<apache::**thrift::concurrency::**ThreadManager>)’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**298: error:
    class ‘apache::thrift::server::**TNonblockingServer’ does not have any
    field named ‘eventBase_’
    /usr/local/include/thrift/**server/TNonblockingServer.h: At global scope:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**761: error:
    field ‘event_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**803: error:
    field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConnection::setRead()’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829: error:
    ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829: error:
    ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConnection::setWrite()’:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834: error:
    ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834: error:
    ‘EV_PERSIST’ was not declared in this scope
    make[2]: *** [be/src/runtime/CMakeFiles/**Runtime.dir/client-cache.cc.o]
    Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/**Runtime.dir/all] Error 2
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/conditional-functions.cc.o
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/date-literal.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**dir/expr.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/float-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/function-call.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/in-predicate.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/int-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/is-null-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/like-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/literal-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/math-functions.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/null-literal.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/opcode-registry.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/slot-ref.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/string-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/string-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/timestamp-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/timestamp-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExprs.a
    [ 19%] Built target Exprs
    make: *** [all] Error 2

    It seems to be looking for event.h and is not finding it. Am I missing
    something else here? Is the instructions applicable to RHEL or only CENTOS
    here - https://github.com/cloudera/**impala<https://github.com/cloudera/impala>?

    Thanks.





    On Friday, January 18, 2013 10:43:07 AM UTC-8, Sean Mackrory wrote:

    It looks like you already have the "1.4.13-4" version of libevent
    installed, but the latest version of libevent-devel your repository has
    available "1.4.13-1" is. Those versions should match up. You can try
    downgrading your install of libevent to 1.4.13-1, since that is what your
    repository has available, but if you have modified your repositories
    recently (for instance, if your organization is mirroring the repository
    locally) - you may want to find out why the 1.4.13-4 version is not
    available to you any more.
    On Thursday, January 17, 2013 11:32:28 PM UTC-8, Deepsoft wrote:

    Ishaan,

    I got the following error when using the following command

    sudo yum install boost-test boost-program-options libevent-devel
    automake libtool flex bison gcc-c++ openssl-devel \
    make cmake doxygen.x86_64 glib-devel boost-devel python-devel
    bzip2-devel svn libevent-devel cyrus-sasl-devel \
    wget git unzip

    Error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
    --> Processing Dependency: libevent = 1.4.13-1 for package:
    libevent-devel-1.4.13-1.x86_64
    --> Running transaction check
    ---> Package libevent.i386 0:1.4.13-1 will be installed
    --> Finished Dependency Resolution
    Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
    libevent-1.4.13-4.el6.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    So I went ahead and removed libevent-devel from the above comand and
    was able to successfully compiled and installed thrift and llvm but when I
    tried to compile impala got the above error.

    Thanks.
    -Dipesh
    On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

    Dipesh,

    I don't see anything obviously wrong here. As far as I know, we
    don't require a 32-bit version of libevent-devel. It would be great if you
    could give us more information on the package conflict you're seeing.

    Thanks,

    .. Ishaan



    On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft wrote:

    I'm trying to build impala on RHEL 6.3 but got the following error -

    /**
    /usr/local/include/thrift/**server/TNonblockingServer.h:**298:
    error: class \u2018apache::thrift::server::**TNonblockingServer\u2019
    does not have any field named \u2018eventBase_\u2019
    /usr/local/include/thrift/**server/TNonblockingServer.h: At global
    scope:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**761:
    error: field \u2018event_\u2019 has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h:**803:
    error: field \u2018taskEvent_\u2019 has incomplete type
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function \u2018void apache::thrift::server::**
    TConnection::setRead()\u2019:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829:
    error: \u2018EV_READ\u2019 was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**829:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h: In member
    function \u2018void apache::thrift::server::**
    TConnection::setWrite()\u2019:
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834:
    error: \u2018EV_WRITE\u2019 was not declared in this scope
    /usr/local/include/thrift/**server/TNonblockingServer.h:**834:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/cast-expr.cc.o
    [ 11%] Building CXX object be/src/exec/CMakeFiles/Exec.**
    dir/delimited-text-parser.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**dir/ddl-executor.cc.o]
    Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/compound-predicate.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/conditional-functions.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**dir/all] Error 2
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/date-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/expr.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/float-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/function-call.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/in-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/int-literal.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/is-null-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/like-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/literal-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/math-functions.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/null-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/opcode-registry.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/slot-ref.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/string-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/string-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/timestamp-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/timestamp-literal.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/timezone_db.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.**
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExprs.a
    [ 20%] Built target Exprs
    **/

    I have followed the instructions mentioned here -
    https://github.com/cloudera/**impala<https://github.com/cloudera/impala>- with the only exception that I didn't install libevent-devel (as it was
    conflicting with an existing version on my system - i had a 64 bit library
    for libevent and here I guess, I was trying to install 32 bit library, so
    thought to not corrupt my system and break something else )

    I did install thirft and llvm successfully but I don't know do if i
    have installed them do I need to install thrift again in thirtparty install
    script?

    Thanks.



    --

    --


    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679

    --
  • Deepsoft at Jan 21, 2013 at 5:16 pm
    Henry,

    It's not present. I have followed instructions here to compile thrift and
    then install it -

    /**
    wget http://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz
    tar xvzf thrift-0.7.0.tar.gz
    cd thrift-0.7.0
    chmod 755 configure
    ./configure --with-pic
    make
    sudo make install
    cd contrib/fb303
    chmod 755 ./bootstrap.sh
    ./bootstrap.sh
    chmod 755 configure
    ./configure
    make
    sudo make install

    **/

    So after "sudo make install" - was it supposed to create/copy this file to
    /usr/local/lib folder?

    Thanks.
    -Dipesh

    On Sunday, January 20, 2013 7:03:56 PM UTC-8, Henry wrote:



    On 19 January 2013 00:37, Deepsoft <dipeshs...@gmail.com <javascript:>>wrote:
    Henry,

    After installing libevent-devel, I got passed that error but still I'm
    getting the following error

    /**
    [ 79%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Partitions_types.cpp.o
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: invalid access to non-static data member
    ‘impala::StringValue::len’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: invalid access to non-static data member
    ‘impala::TimestampValue::date_’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    [ 80%] Building CXX object be/src/util/CMakeFiles/Util.dir/stopwatch.cc.o
    [ 80%] Building CXX object be/src/util/CMakeFiles/Util.dir/url-parser.cc.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_constants.cpp.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_types.cpp.o
    [ 82%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_constants.cpp.o
    Linking CXX static library ../../build/debug/util/libUtil.a
    [ 82%] Built target Util
    [ 83%] [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService.cpp.o
    [ 84%] [ 84%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_types.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_types.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_types.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_constants.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_types.cpp.o
    [ 88%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/JavaConstants_constants.cpp.o
    Linking CXX static library ../../build/debug/thrift/libImpalaThrift.a
    [ 88%] Built target ImpalaThrift
    Scanning dependencies of target zigzag-test
    Scanning dependencies of target hash-table-test
    Scanning dependencies of target delimited-text-parser-test
    Scanning dependencies of target llvm-codegen-test
    [ 88%] [ 88%] [ 89%] [ 89%] make[2]: *** No rule to make target
    `/usr/local/lib/libthriftnb.a', needed by
    `be/build/debug/exec/hash-table-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/zigzag-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/codegen/llvm-codegen-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/delimited-text-parser-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    Building CXX object
    be/src/exec/CMakeFiles/hash-table-test.dir/hash-table-test.cc.o
    Building CXX object
    be/src/codegen/CMakeFiles/llvm-codegen-test.dir/llvm-codegen-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/delimited-text-parser-test.dir/delimited-text-parser-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/zigzag-test.dir/zigzag-test.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/zigzag-test.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [be/src/exec/CMakeFiles/delimited-text-parser-test.dir/all]
    Error 2
    make[1]: *** [be/src/exec/CMakeFiles/hash-table-test.dir/all] Error 2
    make[1]: *** [be/src/codegen/CMakeFiles/llvm-codegen-test.dir/all] Error 2

    make: *** [all] Error 2
    **/

    What is the error here? I see that it has created libService.a library at

    {$IMAPLA_HOME}/be/build/debug/service

    Still not there? Anything else I'm missing here?
    Does /usr/local/lib/libthriftnb.a exist? How did you install Thrift?

    Henry

    Thanks.

    On Friday, January 18, 2013 4:02:02 PM UTC-8, Henry wrote:

    Hi -
    ...with the only exception that I didn't install libevent-devel...
    This is the problem. You must have libevent-devel installed; it provides
    those headers (the ones you've found are not the libevent headers, and are
    correctly being ignored).

    You will have to solve the libevent-devel conflict and get it installed,
    then you should be able to get further.

    Good luck!

    Henry
    On 18 January 2013 23:53, Deepsoft wrote:

    Just to ensure that event.h is present or not on my system, I found it
    is present and located at these locations

    /usr/src/kernels/2.6.32-279.**11.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**19.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**14.1.el6.x86_64/include/**
    config/acpi/proc/event.h

    Why it is not finding it inside thrift's header files? I have followed
    steps and have compiled and installed thrift 0.7 and llvm 3.0 - and it did
    run fine. So i presume it has installed and created required thrift and
    llvm files at these locations

    usr/local/include/thrift
    usr/local/include/llvm

    It has created 3 other folders

    usr/local/include/clang-c
    usr/local/include/clang
    usr/local/include/llvm-c

    And then impala is referrring to these files here and one of the file
    requires event.h and it is not finding it. Correct?

    I have impala 0.3 installed on the same node.

    How do I proceed to build impalad?

    Thanks.


    On Friday, January 18, 2013 3:28:41 PM UTC-8, Deepsoft wrote:

    I have removed libevent 1.4.13.4 and installed 1.4.13.1 but still I
    got the following error

    [ 9%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/ddl-executor.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At global
    scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    [ 9%] Building CXX object be/src/runtime/CMakeFiles/**Runt**
    ime.dir/client-cache.cc.o
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/case-expr.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At global
    scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    make[2]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/client-cache.cc.o]
    Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/all] Error 2
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**rs.a
    [ 19%] Built target Exprs
    make: *** [all] Error 2

    It seems to be looking for event.h and is not finding it. Am I missing
    something else here? Is the instructions applicable to RHEL or only CENTOS
    here - https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>?

    Thanks.





    On Friday, January 18, 2013 10:43:07 AM UTC-8, Sean Mackrory wrote:

    It looks like you already have the "1.4.13-4" version of libevent
    installed, but the latest version of libevent-devel your repository has
    available "1.4.13-1" is. Those versions should match up. You can try
    downgrading your install of libevent to 1.4.13-1, since that is what your
    repository has available, but if you have modified your repositories
    recently (for instance, if your organization is mirroring the repository
    locally) - you may want to find out why the 1.4.13-4 version is not
    available to you any more.
    On Thursday, January 17, 2013 11:32:28 PM UTC-8, Deepsoft wrote:

    Ishaan,

    I got the following error when using the following command

    sudo yum install boost-test boost-program-options libevent-devel
    automake libtool flex bison gcc-c++ openssl-devel \
    make cmake doxygen.x86_64 glib-devel boost-devel python-devel
    bzip2-devel svn libevent-devel cyrus-sasl-devel \
    wget git unzip

    Error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
    --> Processing Dependency: libevent = 1.4.13-1 for package:
    libevent-devel-1.4.13-1.x86_64
    --> Running transaction check
    ---> Package libevent.i386 0:1.4.13-1 will be installed
    --> Finished Dependency Resolution
    Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
    libevent-1.4.13-4.el6.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    So I went ahead and removed libevent-devel from the above comand and
    was able to successfully compiled and installed thrift and llvm but when I
    tried to compile impala got the above error.

    Thanks.
    -Dipesh
    On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

    Dipesh,

    I don't see anything obviously wrong here. As far as I know, we
    don't require a 32-bit version of libevent-devel. It would be great if you
    could give us more information on the package conflict you're seeing.

    Thanks,

    .. Ishaan



    On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft wrote:

    I'm trying to build impala on RHEL 6.3 but got the following error
    -

    /**
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class \u2018apache::thrift::server::****TNonblockingServer\u2019
    does not have any field named \u2018eventBase_\u2019
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At
    global scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field \u2018event_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field \u2018taskEvent_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setRead()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_READ\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setWrite()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_WRITE\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    [ 11%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/delimited-text-parser.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timezone_db.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**rs.a
    [ 20%] Built target Exprs
    **/

    I have followed the instructions mentioned here -
    https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>- with the only exception that I didn't install libevent-devel (as it was
    conflicting with an existing version on my system - i had a 64 bit library
    for libevent and here I guess, I was trying to install 32 bit library, so
    thought to not corrupt my system and break something else )

    I did install thirft and llvm successfully but I don't know do if
    i have installed them do I need to install thrift again in thirtparty
    install script?

    Thanks.



    --

    --


    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --



    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --
  • Sean Mackrory at Jan 21, 2013 at 5:22 pm
    If you compile and install thrift without libevent-devel being installed,
    it will silently not include libthriftnb.a. Now that you have
    libevent-devel installed, I believe if you recompile and reinstall thrift
    you should have what you need.
    On Monday, January 21, 2013 9:16:31 AM UTC-8, Deepsoft wrote:

    Henry,

    It's not present. I have followed instructions here to compile thrift and
    then install it -

    /**
    wget http://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz
    tar xvzf thrift-0.7.0.tar.gz
    cd thrift-0.7.0
    chmod 755 configure
    ./configure --with-pic
    make
    sudo make install
    cd contrib/fb303
    chmod 755 ./bootstrap.sh
    ./bootstrap.sh
    chmod 755 configure
    ./configure
    make
    sudo make install

    **/

    So after "sudo make install" - was it supposed to create/copy this file to
    /usr/local/lib folder?

    Thanks.
    -Dipesh

    On Sunday, January 20, 2013 7:03:56 PM UTC-8, Henry wrote:


    On 19 January 2013 00:37, Deepsoft wrote:

    Henry,

    After installing libevent-devel, I got passed that error but still I'm
    getting the following error

    /**
    [ 79%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Partitions_types.cpp.o
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: invalid access to non-static data member
    ‘impala::StringValue::len’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: invalid access to non-static data member
    ‘impala::TimestampValue::date_’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    [ 80%] Building CXX object be/src/util/CMakeFiles/Util.dir/stopwatch.cc.o
    [ 80%] Building CXX object
    be/src/util/CMakeFiles/Util.dir/url-parser.cc.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_constants.cpp.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_types.cpp.o
    [ 82%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_constants.cpp.o
    Linking CXX static library ../../build/debug/util/libUtil.a
    [ 82%] Built target Util
    [ 83%] [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService.cpp.o
    [ 84%] [ 84%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_types.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_types.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_types.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_constants.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_types.cpp.o
    [ 88%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/JavaConstants_constants.cpp.o
    Linking CXX static library ../../build/debug/thrift/libImpalaThrift.a
    [ 88%] Built target ImpalaThrift
    Scanning dependencies of target zigzag-test
    Scanning dependencies of target hash-table-test
    Scanning dependencies of target delimited-text-parser-test
    Scanning dependencies of target llvm-codegen-test
    [ 88%] [ 88%] [ 89%] [ 89%] make[2]: *** No rule to make target
    `/usr/local/lib/libthriftnb.a', needed by
    `be/build/debug/exec/hash-table-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/zigzag-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/codegen/llvm-codegen-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/delimited-text-parser-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    Building CXX object
    be/src/exec/CMakeFiles/hash-table-test.dir/hash-table-test.cc.o
    Building CXX object
    be/src/codegen/CMakeFiles/llvm-codegen-test.dir/llvm-codegen-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/delimited-text-parser-test.dir/delimited-text-parser-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/zigzag-test.dir/zigzag-test.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/zigzag-test.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [be/src/exec/CMakeFiles/delimited-text-parser-test.dir/all]
    Error 2
    make[1]: *** [be/src/exec/CMakeFiles/hash-table-test.dir/all] Error 2
    make[1]: *** [be/src/codegen/CMakeFiles/llvm-codegen-test.dir/all] Error
    2

    make: *** [all] Error 2
    **/

    What is the error here? I see that it has created libService.a library at

    {$IMAPLA_HOME}/be/build/debug/service

    Still not there? Anything else I'm missing here?
    Does /usr/local/lib/libthriftnb.a exist? How did you install Thrift?

    Henry

    Thanks.

    On Friday, January 18, 2013 4:02:02 PM UTC-8, Henry wrote:

    Hi -
    ...with the only exception that I didn't install libevent-devel...
    This is the problem. You must have libevent-devel installed; it
    provides those headers (the ones you've found are not the libevent headers,
    and are correctly being ignored).

    You will have to solve the libevent-devel conflict and get it
    installed, then you should be able to get further.

    Good luck!

    Henry
    On 18 January 2013 23:53, Deepsoft wrote:

    Just to ensure that event.h is present or not on my system, I found it
    is present and located at these locations

    /usr/src/kernels/2.6.32-279.**11.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**19.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**14.1.el6.x86_64/include/**
    config/acpi/proc/event.h

    Why it is not finding it inside thrift's header files? I have followed
    steps and have compiled and installed thrift 0.7 and llvm 3.0 - and it did
    run fine. So i presume it has installed and created required thrift and
    llvm files at these locations

    usr/local/include/thrift
    usr/local/include/llvm

    It has created 3 other folders

    usr/local/include/clang-c
    usr/local/include/clang
    usr/local/include/llvm-c

    And then impala is referrring to these files here and one of the file
    requires event.h and it is not finding it. Correct?

    I have impala 0.3 installed on the same node.

    How do I proceed to build impalad?

    Thanks.


    On Friday, January 18, 2013 3:28:41 PM UTC-8, Deepsoft wrote:

    I have removed libevent 1.4.13.4 and installed 1.4.13.1 but still I
    got the following error

    [ 9%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/ddl-executor.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At global
    scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    [ 9%] Building CXX object be/src/runtime/CMakeFiles/**Runt**
    ime.dir/client-cache.cc.o
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/case-expr.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At global
    scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In member
    function ‘void apache::thrift::server::**TConne**ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    make[2]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/client-cache.cc.o]
    Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/all] Error 2
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**rs.a
    [ 19%] Built target Exprs
    make: *** [all] Error 2

    It seems to be looking for event.h and is not finding it. Am I
    missing something else here? Is the instructions applicable to RHEL or only
    CENTOS here - https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>?

    Thanks.





    On Friday, January 18, 2013 10:43:07 AM UTC-8, Sean Mackrory wrote:

    It looks like you already have the "1.4.13-4" version of libevent
    installed, but the latest version of libevent-devel your repository has
    available "1.4.13-1" is. Those versions should match up. You can try
    downgrading your install of libevent to 1.4.13-1, since that is what your
    repository has available, but if you have modified your repositories
    recently (for instance, if your organization is mirroring the repository
    locally) - you may want to find out why the 1.4.13-4 version is not
    available to you any more.
    On Thursday, January 17, 2013 11:32:28 PM UTC-8, Deepsoft wrote:

    Ishaan,

    I got the following error when using the following command

    sudo yum install boost-test boost-program-options libevent-devel
    automake libtool flex bison gcc-c++ openssl-devel \
    make cmake doxygen.x86_64 glib-devel boost-devel python-devel
    bzip2-devel svn libevent-devel cyrus-sasl-devel \
    wget git unzip

    Error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
    --> Processing Dependency: libevent = 1.4.13-1 for package:
    libevent-devel-1.4.13-1.x86_64
    --> Running transaction check
    ---> Package libevent.i386 0:1.4.13-1 will be installed
    --> Finished Dependency Resolution
    Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
    libevent-1.4.13-4.el6.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    So I went ahead and removed libevent-devel from the above comand
    and was able to successfully compiled and installed thrift and llvm but
    when I tried to compile impala got the above error.

    Thanks.
    -Dipesh
    On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

    Dipesh,

    I don't see anything obviously wrong here. As far as I know, we
    don't require a 32-bit version of libevent-devel. It would be great if you
    could give us more information on the package conflict you're seeing.

    Thanks,

    .. Ishaan



    On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft wrote:

    I'm trying to build impala on RHEL 6.3 but got the following
    error -

    /**
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class \u2018apache::thrift::server::****TNonblockingServer\u2019
    does not have any field named \u2018eventBase_\u2019
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At
    global scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field \u2018event_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field \u2018taskEvent_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setRead()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_READ\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setWrite()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_WRITE\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    [ 11%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/delimited-text-parser.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timezone_db.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**rs.a
    [ 20%] Built target Exprs
    **/

    I have followed the instructions mentioned here -
    https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>- with the only exception that I didn't install libevent-devel (as it was
    conflicting with an existing version on my system - i had a 64 bit library
    for libevent and here I guess, I was trying to install 32 bit library, so
    thought to not corrupt my system and break something else )

    I did install thirft and llvm successfully but I don't know do if
    i have installed them do I need to install thrift again in thirtparty
    install script?

    Thanks.



    --

    --


    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --



    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --
  • Deepsoft at Jan 22, 2013 at 12:24 am
    Sean,

    Thanks. After recompiling and installing thrift it did create libthriftnb.a
    and then I was able to compile impala and geneate impalad.

    Thanks.
    -Dipesh
    On Monday, January 21, 2013 9:22:33 AM UTC-8, Sean Mackrory wrote:

    If you compile and install thrift without libevent-devel being installed,
    it will silently not include libthriftnb.a. Now that you have
    libevent-devel installed, I believe if you recompile and reinstall thrift
    you should have what you need.
    On Monday, January 21, 2013 9:16:31 AM UTC-8, Deepsoft wrote:

    Henry,

    It's not present. I have followed instructions here to compile thrift and
    then install it -

    /**
    wget http://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz
    tar xvzf thrift-0.7.0.tar.gz
    cd thrift-0.7.0
    chmod 755 configure
    ./configure --with-pic
    make
    sudo make install
    cd contrib/fb303
    chmod 755 ./bootstrap.sh
    ./bootstrap.sh
    chmod 755 configure
    ./configure
    make
    sudo make install

    **/

    So after "sudo make install" - was it supposed to create/copy this file
    to /usr/local/lib folder?

    Thanks.
    -Dipesh

    On Sunday, January 20, 2013 7:03:56 PM UTC-8, Henry wrote:


    On 19 January 2013 00:37, Deepsoft wrote:

    Henry,

    After installing libevent-devel, I got passed that error but still I'm
    getting the following error

    /**
    [ 79%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Partitions_types.cpp.o
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: invalid access to non-static data member
    ‘impala::StringValue::len’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:28:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: invalid access to non-static data member
    ‘impala::TimestampValue::date_’ of NULL object
    /home/khadi01/src/impala/impala/be/src/util/static-asserts.cc:30:
    warning: (perhaps the ‘offsetof’ macro was used incorrectly)
    [ 80%] Building CXX object
    be/src/util/CMakeFiles/Util.dir/stopwatch.cc.o
    [ 80%] Building CXX object
    be/src/util/CMakeFiles/Util.dir/url-parser.cc.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_constants.cpp.o
    [ 81%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Planner_types.cpp.o
    [ 82%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_constants.cpp.o
    Linking CXX static library ../../build/debug/util/libUtil.a
    [ 82%] Built target Util
    [ 83%] [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/RuntimeProfile_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/SparrowTypes_types.cpp.o
    [ 83%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService.cpp.o
    [ 84%] [ 84%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_constants.cpp.o
    Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreService_types.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService.cpp.o
    [ 85%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/StateStoreSubscriberService_types.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_constants.cpp.o
    [ 86%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Status_types.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_constants.cpp.o
    [ 87%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/Types_types.cpp.o
    [ 88%] Building CXX object
    be/generated-sources/gen-cpp/CMakeFiles/ImpalaThrift.dir/JavaConstants_constants.cpp.o
    Linking CXX static library ../../build/debug/thrift/libImpalaThrift.a
    [ 88%] Built target ImpalaThrift
    Scanning dependencies of target zigzag-test
    Scanning dependencies of target hash-table-test
    Scanning dependencies of target delimited-text-parser-test
    Scanning dependencies of target llvm-codegen-test
    [ 88%] [ 88%] [ 89%] [ 89%] make[2]: *** No rule to make target
    `/usr/local/lib/libthriftnb.a', needed by
    `be/build/debug/exec/hash-table-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/zigzag-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/codegen/llvm-codegen-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** No rule to make target `/usr/local/lib/libthriftnb.a',
    needed by `be/build/debug/exec/delimited-text-parser-test'. Stop.

    make[2]: *** Waiting for unfinished jobs....
    Building CXX object
    be/src/exec/CMakeFiles/hash-table-test.dir/hash-table-test.cc.o
    Building CXX object
    be/src/codegen/CMakeFiles/llvm-codegen-test.dir/llvm-codegen-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/delimited-text-parser-test.dir/delimited-text-parser-test.cc.o
    Building CXX object
    be/src/exec/CMakeFiles/zigzag-test.dir/zigzag-test.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/zigzag-test.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....
    make[1]: ***
    [be/src/exec/CMakeFiles/delimited-text-parser-test.dir/all] Error 2
    make[1]: *** [be/src/exec/CMakeFiles/hash-table-test.dir/all] Error 2
    make[1]: *** [be/src/codegen/CMakeFiles/llvm-codegen-test.dir/all]
    Error 2

    make: *** [all] Error 2
    **/

    What is the error here? I see that it has created libService.a library
    at

    {$IMAPLA_HOME}/be/build/debug/service

    Still not there? Anything else I'm missing here?
    Does /usr/local/lib/libthriftnb.a exist? How did you install Thrift?

    Henry

    Thanks.

    On Friday, January 18, 2013 4:02:02 PM UTC-8, Henry wrote:

    Hi -
    ...with the only exception that I didn't install libevent-devel...
    This is the problem. You must have libevent-devel installed; it
    provides those headers (the ones you've found are not the libevent headers,
    and are correctly being ignored).

    You will have to solve the libevent-devel conflict and get it
    installed, then you should be able to get further.

    Good luck!

    Henry
    On 18 January 2013 23:53, Deepsoft wrote:

    Just to ensure that event.h is present or not on my system, I found
    it is present and located at these locations

    /usr/src/kernels/2.6.32-279.**11.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**19.1.el6.x86_64/include/**
    config/acpi/proc/event.h
    /usr/src/kernels/2.6.32-279.**14.1.el6.x86_64/include/**
    config/acpi/proc/event.h

    Why it is not finding it inside thrift's header files? I have
    followed steps and have compiled and installed thrift 0.7 and llvm 3.0 -
    and it did run fine. So i presume it has installed and created required
    thrift and llvm files at these locations

    usr/local/include/thrift
    usr/local/include/llvm

    It has created 3 other folders

    usr/local/include/clang-c
    usr/local/include/clang
    usr/local/include/llvm-c

    And then impala is referrring to these files here and one of the file
    requires event.h and it is not finding it. Correct?

    I have impala 0.3 installed on the same node.

    How do I proceed to build impalad?

    Thanks.


    On Friday, January 18, 2013 3:28:41 PM UTC-8, Deepsoft wrote:

    I have removed libevent 1.4.13.4 and installed 1.4.13.1 but still I
    got the following error

    [ 9%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/ddl-executor.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/service/impala-**server**.h:31,
    from /home/khadi01/src/impala/**impal**
    a/be/src/exec/ddl-**executor.cc:**21:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At
    global scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function ‘void apache::thrift::server::**TConne**
    ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function ‘void apache::thrift::server::**TConne**
    ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    [ 9%] Building CXX object be/src/runtime/CMakeFiles/**Runt**
    ime.dir/client-cache.cc.o
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/case-expr.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**34:19:
    error: event.h: No such file or directory
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    In file included from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**server.h:**23,
    from /home/khadi01/src/impala/**impal**
    a/be/src/util/thrift-**client.h:**32,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**h:25,
    from /home/khadi01/src/impala/**impal**
    a/be/src/runtime/client-**cache.**cc:15:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**134:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**138:
    error: field ‘serverEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**141:
    error: field ‘notificationEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: ISO C++ forbids declaration of ‘event_base’ with no type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**356:
    error: expected ‘;’ before ‘*’ token
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**361:
    error: expected ‘;’ before ‘void’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**714:
    error: ‘event_base’ has not been declared
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    int)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**237:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**263:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    constructor ‘apache::thrift::server::**TNonb**lockingServer::**
    TNonblockingSer**ver(boost::**shared_ptr<apache::**thrift::**TProcessor>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::transport::**TTransportFacto**ry>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    boost::shared_ptr<apache::**thri**ft::protocol::**TProtocolFactory**>,
    int, boost::shared_ptr<apache::**thri**ft::concurrency::**
    ThreadManager**>)’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class ‘apache::thrift::server::**TNonb**lockingServer’ does
    not have any field named ‘eventBase_’
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At
    global scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field ‘event_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field ‘taskEvent_’ has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function ‘void apache::thrift::server::**TConne**
    ction::setRead()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_READ’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: ‘EV_PERSIST’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function ‘void apache::thrift::server::**TConne**
    ction::setWrite()’:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_WRITE’ was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: ‘EV_PERSIST’ was not declared in this scope
    make[2]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/client-cache.cc.o]
    Error 1
    make[1]: *** [be/src/runtime/CMakeFiles/**Run**time.dir/all] Error 2
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**rs.a
    [ 19%] Built target Exprs
    make: *** [all] Error 2

    It seems to be looking for event.h and is not finding it. Am I
    missing something else here? Is the instructions applicable to RHEL or only
    CENTOS here - https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>?

    Thanks.





    On Friday, January 18, 2013 10:43:07 AM UTC-8, Sean Mackrory wrote:

    It looks like you already have the "1.4.13-4" version of libevent
    installed, but the latest version of libevent-devel your repository has
    available "1.4.13-1" is. Those versions should match up. You can try
    downgrading your install of libevent to 1.4.13-1, since that is what your
    repository has available, but if you have modified your repositories
    recently (for instance, if your organization is mirroring the repository
    locally) - you may want to find out why the 1.4.13-4 version is not
    available to you any more.
    On Thursday, January 17, 2013 11:32:28 PM UTC-8, Deepsoft wrote:

    Ishaan,

    I got the following error when using the following command

    sudo yum install boost-test boost-program-options libevent-devel
    automake libtool flex bison gcc-c++ openssl-devel \
    make cmake doxygen.x86_64 glib-devel boost-devel python-devel
    bzip2-devel svn libevent-devel cyrus-sasl-devel \
    wget git unzip

    Error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package libevent-devel.x86_64 0:1.4.13-1 will be installed
    --> Processing Dependency: libevent = 1.4.13-1 for package:
    libevent-devel-1.4.13-1.x86_64
    --> Running transaction check
    ---> Package libevent.i386 0:1.4.13-1 will be installed
    --> Finished Dependency Resolution
    Error: Protected multilib versions: libevent-1.4.13-1.i386 !=
    libevent-1.4.13-4.el6.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    So I went ahead and removed libevent-devel from the above comand
    and was able to successfully compiled and installed thrift and llvm but
    when I tried to compile impala got the above error.

    Thanks.
    -Dipesh
    On Thursday, January 17, 2013 6:23:56 PM UTC-8, Ishaan wrote:

    Dipesh,

    I don't see anything obviously wrong here. As far as I know,
    we don't require a 32-bit version of libevent-devel. It would be great if
    you could give us more information on the package conflict you're seeing.

    Thanks,

    .. Ishaan



    On Thu, Jan 17, 2013 at 6:03 PM, Deepsoft wrote:

    I'm trying to build impala on RHEL 6.3 but got the following
    error -

    /**
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**298:
    error: class \u2018apache::thrift::server::****TNonblockingServer\u2019
    does not have any field named \u2018eventBase_\u2019
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: At
    global scope:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**761:
    error: field \u2018event_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**803:
    error: field \u2018taskEvent_\u2019 has incomplete type
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setRead()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_READ\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**829:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h: In
    member function \u2018void apache::thrift::server::**TConne**
    ction::setWrite()\u2019:
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_WRITE\u2019 was not declared in this scope
    /usr/local/include/thrift/**serv**er/TNonblockingServer.h:**834:
    error: \u2018EV_PERSIST\u2019 was not declared in this scope
    [ 10%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/cast-expr.cc.o
    [ 11%] Building CXX object be/src/exec/CMakeFiles/Exec.**di**
    r/delimited-text-parser.cc.o
    make[2]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/ddl-executor.cc.o]
    Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 11%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/compound-predicate.cc.o
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/conditional-functions.cc.o
    make[1]: *** [be/src/exec/CMakeFiles/Exec.**d**ir/all] Error 2
    [ 12%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/date-literal.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/expr.cc.o
    [ 13%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/float-literal.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/function-call.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/in-predicate.cc.o
    [ 14%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/int-literal.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/is-null-predicate.cc.o
    [ 15%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/like-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/literal-predicate.cc.o
    [ 16%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/math-functions.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/null-literal.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/opcode-registry.cc.o
    [ 17%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/slot-ref.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-literal.cc.o
    [ 18%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/string-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-functions.cc.o
    [ 19%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timestamp-literal.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/timezone_db.cc.o
    [ 20%] Building CXX object be/src/exprs/CMakeFiles/Exprs.****
    dir/utility-functions.cc.o
    Linking CXX static library ../../build/debug/exprs/**libExp**
    rs.a
    [ 20%] Built target Exprs
    **/

    I have followed the instructions mentioned here -
    https://github.com/cloudera/**im**pala<https://github.com/cloudera/impala>- with the only exception that I didn't install libevent-devel (as it was
    conflicting with an existing version on my system - i had a 64 bit library
    for libevent and here I guess, I was trying to install 32 bit library, so
    thought to not corrupt my system and break something else )

    I did install thirft and llvm successfully but I don't know do
    if i have installed them do I need to install thrift again in thirtparty
    install script?

    Thanks.



    --

    --


    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --



    --
    Henry Robinson
    Software Engineer
    Cloudera
    415-994-6679
    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupimpala-user @
categorieshadoop
postedJan 18, '13 at 7:32a
activeJan 22, '13 at 12:24a
posts6
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase