mvn and the make package error

╄→尐↘猪︶ㄣ 提交于 2019-12-11 04:23:32

问题


OK. Here's the problem and it's driving me crazy!!! I followed the instruction online, installed hadoop and when running the text it said snappy local library can't be loaded. It's said I have to install snappy first and then install hadoop-snappy. I download snappy-1.0.4 from google code and do the following: cd ../snappy-1.0.4 ./configure make sudo make install

Then it's the problem when: mvn package -Dsnappy.prefix=/usr/local

The post online said by default the snappy should be installed in the /usr/local. But I got the following error and no matter what I change the path, still get erro:

The goal you specified required a project to execute but there's no POM in the directory. Please verify you invoked the maven from the correct directory.

It's the wrong directory of mvn? Or improper of snappy? And it said lack of pom that should be a .xml that in no where I can find..

Please help!


回答1:


Alright, so looking at that page, you are in the wrong directory.

The directory you should be in for that step is "hadoop-snappy" which you can see has a pom.xml, you can verify by looking at the github, https://github.com/electrum/hadoop-snappy.

So after you follow these steps from the guide you showed me.

Download it(hadoop-snappy) from GitHub
Install libtool, make sure ‘libtoolize’ works
Install Maven 3 if necessary

Change your directory to hadoop-snappy and run the command you were trying before.



来源:https://stackoverflow.com/questions/16323856/mvn-and-the-make-package-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!