2017年8月28日月曜日

HDPテスト環境をAmbari Blueprintでクローン(コピー)する

Ambari = 2.5.1.0
HDP = 2.6.1.0

ブループリントを取得する
curl -o hdp261_hive_llap_bp.json -u admin:admin 'http://node1.localdomain:8080/api/v1/clusters/c1?format=blueprint'

ブループリント名を追加する
  "Blueprints" : {
    "blueprint_name": "multinode-hdp",
    "stack_name" : "HDP",
    "stack_version" : "2.6"
  }

スクリプトをダウンロード
curl -O https://raw.githubusercontent.com/hajimeo/samples/master/bash/start_hdp.sh

実行する(.respファイルはオプショナル)太字のところは注意
bash ./start_hdp.sh -i [-r start_hdp.resp]
INFO : Loading start_hdp.resp...
Would you like to review your responses? [Y]:
INFO : Starting Interview mode...
INFO : You can stop this interview anytime by pressing 'Ctrl+c' (except while typing secret/password).

Run apt-get upgrade before setting up? [N]:

Keep running containers when you start this script with another response file? [N]:
NTP Server [ntp.ubuntu.com]:
First 24 bits (xxx.xxx.xxx.) of docker container IP Address [172.17.100.]: 172.17.120.
Network Mask (/16 or /24) for docker containers [/16]:
IP address for docker0 interface [172.17.0.1]:
Domain Suffix for docker containers [.localdomain]:
Container OS type (small letters) [centos]:
Container OS version (use 7.3.1611 or higher for Centos 7) [6.8]:
DockerFile URL or path (use DockerFile7 for Centos 7) [https://raw.githubusercontent.com/hajimeo/samples/master/docker/DockerFile]:
Hostname for docker host in docker private network? [dockerhost1]:
How many nodes (docker containers) creating? [4]:
Node starting number (hostname will be sequential from this number) [1]: 6
Node hostname prefix [node]:
DNS Server (Note: Remote DNS requires password less ssh) [localhost]:
Avoid installing Ambari? (to create just containers) [N]:
Ambari server hostname [node6.localdomain]:
Ambari version (used to build repo URL) [2.5.1.0]:
If you have set up a Local Repo, please change below
Ambari repo file URL or path [http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.1.0/ambari.repo]:
Ambari JDK URL (optional):
Ambari JCE URL (optional):
Stack Version [2.6]:
HDP Version for repository [2.6.1.0]:
Would you like to set up a local repo for HDP? (may take long time to downlaod) [N]:
HDP Repo URL [http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.1.0/]:
Would you like to use Ambari Blueprint? [Y]:
Cluster name [c6]:
Default password [hadoop]:
Host mapping json path (optional):
Cluster config json path (optional): ./hdp261_hive_llap_bp.json
Would you like to set up a proxy server for yum on this server? [Y]:
Proxy port [28080]:
INFO : Interview completed.
Would you like to save your response? [Y]:
INFO : Saved start_hdp.resp
Would you like to start setting up this host? [Y]:
Would you like to stop all running containers now? [Y]:
INFO : Stopping the followings
...

0 件のコメント:

コメントを投稿