Cdh5 on centos6

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Java)
第1行: 第1行:
 
在 [[CentOS]] 7 上安装 [[Cloudera]] 5.4.x
 
在 [[CentOS]] 7 上安装 [[Cloudera]] 5.4.x
 +
 +
安装CDH有三种方式:
 +
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_install_path_a.html 通过 Cloudera Manager 自动安装]
 +
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_install_path_b.html 使用 Cloudera Manager Packages 手动安装]
 +
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_install_path_c.html 使用  Cloudera Manager Tarballs 手动安装]
  
 
若你没有安装 CentOS 7,可试着安装一个虚拟机
 
若你没有安装 CentOS 7,可试着安装一个虚拟机
第17行: 第22行:
  
 
==PostgreSQL==
 
==PostgreSQL==
 
+
yum install http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
==Python==
+
yum install postgresql94-server postgresql94-contrib
 +
创建目录 /home/data/pg_data
 +
chown -R postgres:postgres /home/data/pg_data
 +
进入目录"/etc/sysconfig/pgsql",创建文件"postgresql-9.4"(文件名要和数据库的服务名一致)
 +
写入内容:PGDATA=/home/data/pg_data
 +
/etc/init.d/postgresql-9.4 initdb
 +
service postgresql-9.4 start
 +
chkconfig postgresql-9.4 on
  
 
==CM==
 
==CM==
 
+
wget http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin
 
==参考==
 
==参考==
 
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/installation.html Cloudera Installation and Upgrade]
 
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/installation.html Cloudera Installation and Upgrade]

2015年8月13日 (四) 04:59的版本

CentOS 7 上安装 Cloudera 5.4.x

安装CDH有三种方式:

若你没有安装 CentOS 7,可试着安装一个虚拟机

$ mkdir vm-install
$ cd vm-install
$ vagrant init chef/centos-7.0

编辑 Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.box = "chef/centos-7.0"
  config.vm.network "private_network", ip: "192.168.33.10"
  config.vm.hostname = "node1"
end

目录

Java

yum install java-1.8.0-openjdk
yum install java-1.7.0-openjdk

PostgreSQL

yum install http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
yum install postgresql94-server postgresql94-contrib
创建目录 /home/data/pg_data
chown -R postgres:postgres /home/data/pg_data
进入目录"/etc/sysconfig/pgsql",创建文件"postgresql-9.4"(文件名要和数据库的服务名一致)
写入内容:PGDATA=/home/data/pg_data
/etc/init.d/postgresql-9.4 initdb
service postgresql-9.4 start
chkconfig postgresql-9.4 on

CM

wget http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin

参考

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱