我正在遵循此处https://code.google.com/p/hadoop-snappy/的snappy安装说明。但是,我无法完成第3步。我确实在/ usr / local中配置,make,sudo make install和snappy位于正确的dict中。所以下一步是为hadoop安装snappy。因此,如我所说,
snappy-1.1.2 Tom$ mvn -e package
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.123s
[INFO] Finished at: Wed Mar 05 22:12:10 CET 2014
[INFO] Final Memory: 6M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/Tom/Downloads/snappy-1.1.2). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/Users/Tom/Downloads/snappy-1.1.2). Please verify you invoked Maven from the correct directory.
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]
[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/MissingProjectException
所以,显然没有可用的POM文件。同样在snappy的源目录中,我没有看到任何POM文件:
snappy-1.1.2 Tom$ ls
AUTHORS config.guess install-sh snappy-sinksource.cc snappy-test.h
COPYING config.h libsnappy.la snappy-sinksource.h snappy.cc
ChangeLog config.h.in libtool snappy-sinksource.lo snappy.h
INSTALL config.log ltmain.sh snappy-sinksource.o snappy.lo
Makefile config.status m4 snappy-stubs-internal.cc snappy.o
Makefile.am config.sub missing snappy-stubs-internal.h snappy_unittest
Makefile.in configure snappy-c.cc snappy-stubs-internal.lo snappy_unittest-snappy-test.o
NEWS configure.ac snappy-c.h snappy-stubs-internal.o snappy_unittest-snappy_unittest.o
README depcomp snappy-c.lo snappy-stubs-public.h snappy_unittest.cc
aclocal.m4 format_description.txt snappy-c.o snappy-stubs-public.h.in stamp-h1
autogen.sh framing_format.txt snappy-internal.h snappy-test.cc testdata
我检查了要求(maven3,java 6等)已满。那么,我如何让这个命令运行?
答案 0 :(得分:1)
好的,问题已在这里得到解答:mvn and the make package error
简而言之:转到https://github.com/electrum/hadoop-snappy下载zip并在mvn package
所在的目录中运行pom.xml
命令。那就是它。