Ambari 2.4.からManagement Packが採用された模様です。
https://issues.apache.org/jira/browse/AMBARI-14854
https://cwiki.apache.org/confluence/display/AMBARI/Management+Packs
HDP 2.6.1(Ambari 2.5.x)でのインストール方法
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_solr-search-installation/content/ch_hdp-search-install-ambari.html
HDP 2.5.6 でのインストール方法
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.6/bk_solr-search-installation/bk_solr-search-installation.pdf
で、solr-service-mpack-2.2.8.tar.gzを他のAmbariバージョンに使おうとすると:
[root@node11 tmp]# ambari-server install-mpack --mpack=/tmp/solr-service-mpack-2.2.8.tar.gz
Using python /usr/bin/python
Installing management pack
ERROR: Prerequisite failure! Current Ambari Version = 2.4.0.1, Min Ambari Version = 2.5.0.0
ERROR: Exiting with exit code -1.
REASON: Prerequisites for management pack solr-ambari-mpack-2.2.8 failed!
そこで、古いバージョンを探す必要があります。
s3cmd ls s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/
2017-04-04 10:32 21688 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz
2017-04-04 10:33 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz.asc
2017-04-04 10:32 115 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz.md5
2017-05-02 20:25 22518 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz
2017-05-02 20:51 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz.asc
2017-05-02 20:51 115 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz.md5
2016-08-30 13:26 13290 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz
2016-08-30 13:26 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz.asc
2016-08-30 13:26 123 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz.md5
上記の太字のファイルをダウンロード後は基本的にPDFの手順と一緒です。
/var/lib/ambari-server/resources/stacks/HDP/2.5/repos/repoinfo.xmlに下記を追加する必要があります。(2.6は必要ない?)
<repo>
<baseurl>http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos6/</baseurl>
<repoid>HDP-SOLR-2.5-100</repoid>
<reponame>HDP-SOLR</reponame>
</repo>
そしてAmbari Serverを再起動後、Add Service WizardからSolrを追加できます。
ちなみに、reposには下記のOSがあります
s3cmd ls s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos6/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos7/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian6/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian7/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/suse11sp3/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu12/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu14/
https://issues.apache.org/jira/browse/AMBARI-14854
https://cwiki.apache.org/confluence/display/AMBARI/Management+Packs
HDP 2.6.1(Ambari 2.5.x)でのインストール方法
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_solr-search-installation/content/ch_hdp-search-install-ambari.html
HDP 2.5.6 でのインストール方法
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.6/bk_solr-search-installation/bk_solr-search-installation.pdf
で、solr-service-mpack-2.2.8.tar.gzを他のAmbariバージョンに使おうとすると:
[root@node11 tmp]# ambari-server install-mpack --mpack=/tmp/solr-service-mpack-2.2.8.tar.gz
Using python /usr/bin/python
Installing management pack
ERROR: Prerequisite failure! Current Ambari Version = 2.4.0.1, Min Ambari Version = 2.5.0.0
ERROR: Exiting with exit code -1.
REASON: Prerequisites for management pack solr-ambari-mpack-2.2.8 failed!
そこで、古いバージョンを探す必要があります。
s3cmd ls s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/
2017-04-04 10:32 21688 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz
2017-04-04 10:33 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz.asc
2017-04-04 10:32 115 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.8.tar.gz.md5
2017-05-02 20:25 22518 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz
2017-05-02 20:51 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz.asc
2017-05-02 20:51 115 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz.md5
2016-08-30 13:26 13290 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz
2016-08-30 13:26 836 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz.asc
2016-08-30 13:26 123 s3://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-5.5.2.2.5.tar.gz.md5
上記の太字のファイルをダウンロード後は基本的にPDFの手順と一緒です。
/var/lib/ambari-server/resources/stacks/HDP/2.5/repos/repoinfo.xmlに下記を追加する必要があります。(2.6は必要ない?)
<repo>
<baseurl>http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos6/</baseurl>
<repoid>HDP-SOLR-2.5-100</repoid>
<reponame>HDP-SOLR</reponame>
</repo>
そしてAmbari Serverを再起動後、Add Service WizardからSolrを追加できます。
ちなみに、reposには下記のOSがあります
s3cmd ls s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos6/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos7/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian6/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian7/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/suse11sp3/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu12/
DIR s3://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu14/
0 件のコメント:
コメントを投稿