hbsolr编译和bigtomcat编译

本周工作内容 

1.编译hbase-solor包(已完成)

2.编译bigtop-tomcat包(进行中)

3.编译hue包(进行中)

1.编译hbsolr记录

报错提示

[ERROR] Failed to execute goal on project hbase-indexer-morphlines: Could not resolve dependencie s for project com.ngdata:hbase-indexer-morphlines:jar:1.5-cdh5.8.3: Failure to find ua_parser:ua- parser:jar:1.3.0 in http://lilyproject.org/maven/maven2/deploy/ was cached in the local repositor y, resolution will not be reattempted until the update interval of lilyproject.snapshot has elaps ed or updates are forced -> [Help 1]
789 [ERROR]
790 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
791 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
792 [ERROR]
793 [ERROR] For more information about the errors and possible solutions, please read the following a rticles:
794 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
795 [ERROR]
796 [ERROR] After correcting the problems, you can resume the build with the command
797 [ERROR] mvn -rf :hbase-indexer-morphlines
798 debian/rules:38: recipe for target ‘override_dh_auto_build’ failed
799 make[1]: * [override_dh_auto_build] Error 1
800 make[1]: Leaving directory ‘/packages/hbsolo/hbase-solr-1.5+cdh5.8.3+68’
801 debian/rules:35: recipe for target ‘build’ failed
802 make: * [build] Error 2
803 dpkg-buildpackage: error: debian/rules build gave error exit status 2

Failed to execute goal on project hbase-indexer-common: Could not resolve dependencies for project com.ngdata:hbase-indexer-common:jar:1.5-cdh5.8.3: Failure to find com.ngdata:hbase-sep-impl:jar:1.5-cdh5.8.3-SNAPSHOT in https://repository.cloudera.com/artifactory/repo was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-repo-releases has elapsed or updates are forced -> [Help 1]
Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (rat-check) on project hbase-indexer: Too many unapproved licenses: 14 -> [Help 1]

解决办法

在pom.xml文件中加入下面源

<repository>
<id>maven.temp-db.comid>
<url>http://archiva.wikimedia.org/repository/mirrored/url>
repository>

<repository>
  <id>cdh.repoid>
  <url>https://repository.cloudera.com/artifactory/cloudera-reposurl>
  <name>Cloudera Repositoriesname>
  <snapshots>
    <enabled>falseenabled>
  snapshots>
repository>

<repository>
  <id>cdh.snapshots.repoid>
  <url>https://repository.cloudera.com/artifactory/libs-snapshot-localurl>
  <name>Cloudera Snapshots Repositoryname>
  <snapshots>
    <enabled>trueenabled>
  snapshots>
  <releases>
    <enabled>falseenabled>
  releases>
repository>

<repository>
  <id>ngdata.oss-releasesid>
  <name>NGDATA OSS Releasesname>
  <url>http://mvnrepo.ngdata.com/content/repositories/oss-releasesurl>
  <snapshots>
    <enabled>falseenabled>
  snapshots>
repository>

这个源码包的编译主要是源地址的不匹配造成的

2.编译big-tomcat记录

1.首先解压包


dpkg-source -x bigtop-tomcat_0.7.0+cdh5.8.3+0-1.cdh5.8.3.p0.7.dsc
cd bigtop-tomcat-0.7.0+cdh5.8.3+0

2.查看ant版本号以及本机是否安装ant


ant -version
aptitude search ant 

3.Apache Ant团队目前维持两种开发版本。1.9.x版本在运行时需要Java5,1.10.x在运行时需要Java8.所以你需要把本机的java版本改为与之相对应的,编完之后还要改回来

4.在下面链接下载ant 1.10.1


http://ant.apache.org/bindownload.cgi
tar -xvJf apache-ant-1.10.1-bin.tar.xz
vim ~/.bashrc
export ANT_HOME=/packages/bigtop-tomcat/bigtop-tomcat-0.7.0+cdh5.8.3+0/apach    e-ant-1.10.1/
export PATH=$ANT_HOME/bin:$PATH

5.在下面链接下载tomcat6.0源码包


http://tomcat.apache.org/download-60.cgi
tar -xzvf apache-tomcat-6.0.48.tar.gz
ant download
ant

报错提示


setproxy:
[setproxy] Setting proxy to 121.69.130.52    :8080
[echo] Using 121.69.130.52    :8080 to download http://mirror.infra.cloudera.com/apache//tomcat/tomcat-connectors/native/1.1.33/source/tomcat-native-1.1.33-src.tar.gz

解决办法

在buid.properties中添加


proxy.host=153.127.253.226    
proxy.port=8080
proxy.use=on
proxy.user=
proxy.password=

在build.properties.default中添加


trydownload.retries=3
trydownload.httpusecaches=false

你可能感兴趣的:(linux常见问题)