Home Forums HBase Issue while installing RHbase

Tagged: ,

This topic contains 5 replies, has 5 voices, and was last updated by  Ramesh Babu 8 months, 3 weeks ago.

  • Creator
    Topic
  • #22864

    anups
    Member

    Hi,
    I was trying to setup RHBase in CentOS. Done with Thrift setup .Everything is fine .I downloaded rhbase (1.1.1) tar and when i execute command – R CMD INSTALL rhbase_1.1.1.tar.gz i receive errors .PFA error
    installing to library ‘/usr/lib64/R/library’
    * installing *source* package ‘rhbase’ …
    ** libs
    g++ -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -I. -g -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config –cflags thrift` -Wall -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m64 -mtune=generic -c Hbase.cpp -o Hbase.o
    Package thrift was not found in the pkg-config search path.
    Perhaps you should add the directory containing `thrift.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘thrift’ found
    In file included from Hbase.cpp:7:
    Hbase.h:10:24: error: TProcessor.h: No such file or directory
    In file included from Hbase.h:11,
    from Hbase.cpp:7:
    Hbase_types.h:10:20: error: Thrift.h: No such file or directory
    Hbase_types.h:11:35: error: TApplicationException.h: No such file or directory
    Hbase_types.h:12:32: error: protocol/TProtocol.h: No such file or directory
    Hbase_types.h:13:34: error: transport/TTransport.h: No such file or directory
    In file included from Hbase.h:11,
    from Hbase.cpp:7:
    Hbase_types.h:19: error: ‘string’ in namespace ‘std’ does not name a type
    Hbase_types.h:21: error: ‘string’ in namespace ‘std’ does not name a type
    ……

    But I can see THrift log saying it started properly .”13/04/22 17:05:28 INFO ThriftServer: starting HBase ThreadPool Thrift server on /0.0.0.0:9090 ”

    Could you please help me on whats wrong ?

    Regards
    Anups

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #47449

    Ramesh Babu
    Participant

    check pkg-config –cflags thrift
    it will returns like this
    -I /usr/local/include/thrift

    if not returns the above then go to the following file

    /thrift-0.9.1/lib/cpp/thrift.pc

    and modify a line in the file to read:

    includedir=${prefix}/include/thrift

    by adding “/thrift” onto the end of the pre-existing line.

    run “make” and “make install”

    # make

    # make install

    Update PKG_CONFIG_PATH:

    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/

    Verifiy pkg-config path is correct: pkg-config –cflags thrift , returns:

    -I /usr/local/include/thrift

    then your rhbase will install successfully

    Collapse
    #27546

    Just follow this steps:
    1.Install all Thrift pre-requisites: http://wiki.apache.org/thrift/GettingCentOS5Packages
    2.Build Thrfit according to instructions: http://wiki.apache.org/thrift/ThriftInstallation
    3.Update PKG_CONFIG_PATH: export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
    4.Verifiy pkg-config path is correct: pkg-config –cflags thrift , returns: -I/usr/local/include/thrift
    5.Copy Thrift library sudo cp /usr/local/lib/libthrift-0.8.0.so /usr/lib/

    Collapse
    #23163

    Larry Liu
    Moderator

    Thanks, Anups. Do you mind providing how you fixed this issue?
    Larry

    Collapse
    #23098

    anups
    Member

    Hi,
    Thanks for looking into the issue.Wanted to update that I got to Fix that issue .
    Thanks a lot.

    Regards
    Anups

    Collapse
    #22943

    tedr
    Moderator

    Hi Anups,

    I am researching this issue, but perhaps this question would be better asked of the revolutionAnalytics (the makers of R) support.

    Thanks,
    Ted.

    Collapse
Viewing 5 replies - 1 through 5 (of 5 total)