hbsolr 컴파일과bigtomcat 컴파일
11162 단어 linux FAQ
이번 주 업무 내용
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 필요그래서 너는 본 기계의 자바 버전을 그에 상응하는 것으로 바꾸고 편집한 후에 다시 고쳐야 한다
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=
빌드 중입니다.properties.default에 추가
trydownload.retries=3
trydownload.httpusecaches=false