You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by rajesh putta <ra...@gmail.com> on 2012/01/23 20:30:37 UTC

Issues while building hadoop trunk

While building hadoop trunk i came across the following error.Can any
one guide me what is the issue behind this failure.

main:
     [exec] protoc: error while loading shared libraries:
libprotobuf.so.7: cannot open shared object file: No such file or
directory
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [1:20.348s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [1:13.751s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1:26.350s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [3.190s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.569s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [2:07.427s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [20.210s]
[INFO] Apache Hadoop Common .............................. FAILURE [11:11.204s]
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] Apache Hadoop HDFS ................................ SKIPPED
[INFO] Apache Hadoop HttpFS .............................. SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
[INFO] Apache Hadoop HDFS Project ........................ SKIPPED
[INFO] hadoop-yarn ....................................... SKIPPED
[INFO] hadoop-yarn-api ................................... SKIPPED
[INFO] hadoop-yarn-common ................................ SKIPPED
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
[INFO] Apache Hadoop Archives ............................ SKIPPED
[INFO] Apache Hadoop Rumen ............................... SKIPPED
[INFO] Apache Hadoop Extras .............................. SKIPPED
[INFO] Apache Hadoop Tools Dist .......................... SKIPPED
[INFO] Apache Hadoop Tools ............................... SKIPPED
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17:46.677s
[INFO] Finished at: Tue Jan 24 00:51:45 IST 2012
[INFO] Final Memory: 32M/177M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile-proto)
on project hadoop-common: An Ant BuildException has occured: exec
returned: 127 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-common

Thanks
Rajesh Putta

Issues while building hadoop trunk

Posted by rajesh putta <ra...@gmail.com>.
While building hadoop trunk i came across the following error.Can any
one guide me what is the issue behind this failure.

main:
    [exec] protoc: error while loading shared libraries:
libprotobuf.so.7: cannot open shared object file: No such file or
directory
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [1:20.348s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [1:13.751s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1:26.350s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [3.190s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.569s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [2:07.427s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [20.210s]
[INFO] Apache Hadoop Common .............................. FAILURE [11:11.204s]
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] Apache Hadoop HDFS ................................ SKIPPED
[INFO] Apache Hadoop HttpFS .............................. SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
[INFO] Apache Hadoop HDFS Project ........................ SKIPPED
[INFO] hadoop-yarn ....................................... SKIPPED
[INFO] hadoop-yarn-api ................................... SKIPPED
[INFO] hadoop-yarn-common ................................ SKIPPED
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
[INFO] Apache Hadoop Archives ............................ SKIPPED
[INFO] Apache Hadoop Rumen ............................... SKIPPED
[INFO] Apache Hadoop Extras .............................. SKIPPED
[INFO] Apache Hadoop Tools Dist .......................... SKIPPED
[INFO] Apache Hadoop Tools ............................... SKIPPED
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17:46.677s
[INFO] Finished at: Tue Jan 24 00:51:45 IST 2012
[INFO] Final Memory: 32M/177M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile-proto)
on project hadoop-common: An Ant BuildException has occured: exec
returned: 127 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-common

Thanks
Rajesh Putta

Re: Issues while building hadoop trunk

Posted by Jie Li <ji...@cs.duke.edu>.
I got this error before. I solved as below:

1:  check if the current proto buf is 2.4.1, if not, uninstall it and
install the  2.4.1 version

2:  "error while loading shared libraries: libprotobuf.so.7: cannot open
shared object file: No such file or directory"
This is a known issue for Linux, and is caused by a stale cache of
libraries. Run ldconfig and try again.

Jie

On Mon, Jan 23, 2012 at 5:21 PM, Ronald Petty <ro...@gmail.com>wrote:

> Hello,
>
> Have you confirmed the proto libs exist on your system?
>
> Regards,
>
> Ron
>
>
> On Monday, January 23, 2012, rajesh putta <ra...@gmail.com> wrote:
> > Hi Harsh,
> >         even after setting LD_LIBRARY_PATH variable still i am
> > getting the same error.
> >
> > Thanks
> > Rajesh Putta
> >
> > On Tue, Jan 24, 2012 at 1:11 AM, Harsh J <ha...@cloudera.com> wrote:
> >> Hi,
> >>
> >> On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com>
> wrote:
> >>> While building hadoop trunk i came across the following error.Can any
> >>> one guide me what is the issue behind this failure.
> >>>
> >>> main:
> >>>     [exec] protoc: error while loading shared libraries:
> >>> libprotobuf.so.7: cannot open shared object file: No such file or
> >>> directory
> >>
> >> You need the dir that contains libprotobuf.so.7 on your
> >> LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
> >> you do:
> >>
> >> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
> >>
> >> Before you run the maven build.
> >>
> >> --
> >> Harsh J
> >> Customer Ops. Engineer, Cloudera
> >
>

Re: Issues while building hadoop trunk

Posted by Ronald Petty <ro...@gmail.com>.
Hello,

Have you confirmed the proto libs exist on your system?

Regards,

Ron

On Monday, January 23, 2012, rajesh putta <ra...@gmail.com> wrote:
> Hi Harsh,
>         even after setting LD_LIBRARY_PATH variable still i am
> getting the same error.
>
> Thanks
> Rajesh Putta
>
> On Tue, Jan 24, 2012 at 1:11 AM, Harsh J <ha...@cloudera.com> wrote:
>> Hi,
>>
>> On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com>
wrote:
>>> While building hadoop trunk i came across the following error.Can any
>>> one guide me what is the issue behind this failure.
>>>
>>> main:
>>>     [exec] protoc: error while loading shared libraries:
>>> libprotobuf.so.7: cannot open shared object file: No such file or
>>> directory
>>
>> You need the dir that contains libprotobuf.so.7 on your
>> LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
>> you do:
>>
>> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>>
>> Before you run the maven build.
>>
>> --
>> Harsh J
>> Customer Ops. Engineer, Cloudera
>

Re: Issues while building hadoop trunk

Posted by rajesh putta <ra...@gmail.com>.
Hi Harsh,
         even after setting LD_LIBRARY_PATH variable still i am
getting the same error.

Thanks
Rajesh Putta

On Tue, Jan 24, 2012 at 1:11 AM, Harsh J <ha...@cloudera.com> wrote:
> Hi,
>
> On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com> wrote:
>> While building hadoop trunk i came across the following error.Can any
>> one guide me what is the issue behind this failure.
>>
>> main:
>>     [exec] protoc: error while loading shared libraries:
>> libprotobuf.so.7: cannot open shared object file: No such file or
>> directory
>
> You need the dir that contains libprotobuf.so.7 on your
> LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
> you do:
>
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>
> Before you run the maven build.
>
> --
> Harsh J
> Customer Ops. Engineer, Cloudera

Re: Issues while building hadoop trunk

Posted by rajesh putta <ra...@gmail.com>.
Hi Harsh,
         even after setting LD_LIBRARY_PATH variable still i am
getting the same error.

Thanks
Rajesh Putta

On Tue, Jan 24, 2012 at 1:11 AM, Harsh J <ha...@cloudera.com> wrote:
> Hi,
>
> On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com> wrote:
>> While building hadoop trunk i came across the following error.Can any
>> one guide me what is the issue behind this failure.
>>
>> main:
>>     [exec] protoc: error while loading shared libraries:
>> libprotobuf.so.7: cannot open shared object file: No such file or
>> directory
>
> You need the dir that contains libprotobuf.so.7 on your
> LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
> you do:
>
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>
> Before you run the maven build.
>
> --
> Harsh J
> Customer Ops. Engineer, Cloudera

Re: Issues while building hadoop trunk

Posted by Harsh J <ha...@cloudera.com>.
Hi,

On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com> wrote:
> While building hadoop trunk i came across the following error.Can any
> one guide me what is the issue behind this failure.
>
> main:
>     [exec] protoc: error while loading shared libraries:
> libprotobuf.so.7: cannot open shared object file: No such file or
> directory

You need the dir that contains libprotobuf.so.7 on your
LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
you do:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Before you run the maven build.

-- 
Harsh J
Customer Ops. Engineer, Cloudera

Re: Issues while building hadoop trunk

Posted by Harsh J <ha...@cloudera.com>.
Hi,

On Tue, Jan 24, 2012 at 1:00 AM, rajesh putta <ra...@gmail.com> wrote:
> While building hadoop trunk i came across the following error.Can any
> one guide me what is the issue behind this failure.
>
> main:
>     [exec] protoc: error while loading shared libraries:
> libprotobuf.so.7: cannot open shared object file: No such file or
> directory

You need the dir that contains libprotobuf.so.7 on your
LD_LIBRARY_PATH. For instance, if /usr/local/lib carries it, ensure
you do:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Before you run the maven build.

-- 
Harsh J
Customer Ops. Engineer, Cloudera