CentOS 6.4でCDH 4クラスタをインストール(1)


CentOS 6.4 CDH 4クラスタインストール
公式サイトのアドレス:http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/latest/CDH4-Installation-Guide/CDH4-Installation-Guide.html
一、システムの準備
1.オペレーティングシステムがCDH 4でサポートされているかどうかを確認する

私たちがインストールしたオペレーティングシステムはCentOS 6.4で、CDH 4の要求に合っています.
2.JDKのインストール(Java Development Kit)
  CDH4.2以降のバージョンではJDK 1をインストールする必要がある.7
JDK 1.7(1.7.0_25)インストール参照:JDK 1.7インストール詳細(CentOS 6.4)
http://carrie1314.blog.51cto.com/6634326/1256569
注意:これでjdkのインストール構成が完了しました.CDHクラスタを導入するため、各ノードにjdkをインストールする必要があります.jdkバージョンは同じでなければなりません.
二、CDH 4クラスタ配置前の作業
1.ファイアウォールを閉じる
 [root@xxx xx]# service iptables stop
添付:
1)仮開閉
オン:service iptables start
閉じる:service iptables stop
2)永久開閉
オン:chkconfig iptables start
閉じる:chkconfig iptables stop
3)ファイアウォールのステータスの表示
表示ヒョウジ:service iptables status
2.エージェントの構成
ファイル/etc/yumに属性を追加します.conf :
 http_proxy=http://server:port/
 timeout =55555

3.SELinuxを閉じる
ファイルの変更/etc/selinux/config(ファイルに選択可能なものが3つあり、disabledに変更)
 SELINUX = disabled

または端末がコマンドを実行する:
 # sudo setenforce 0

4.データベースpostgreSQLのインストール
1)インストールデータベースのダウンロード
 # yum install postgresql

2)データベースの初期化
 # service postgresql initdb

3)起動に設定
 # chkconfig postgresql on

4)構成パラメータ
ファイル/var/lib/pgsql/data/postgresqlを変更します.conf
変更前:
#listen_addresses = '127.0.0.1'      # what IPaddress(es) to listen on;
                                      # comma-separatedlist of addresses;
                                      #defaults to 'localhost', '*' = all
#port = 5432
変更後:
listen_addresses= '*'              #what IP address(es) to listen on;
                                     # comma-separated listof addresses;
                                     # defaults to'localhost', '*' = all
port= 5432
5)サービスの再起動
 # service postgresql restart

注意:これで、システムを再起動して、すべての変更構成を有効にすることができます.すべてのノードを同じ構成にする