欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Cdh5 on centos6
来自开放百科 - 灰狐
(版本间的差异)
小 (Allen移动Cdh5 on centos7页面至Cdh5 on centos6,不留重定向) |
小 |
||
第1行: | 第1行: | ||
− | 在 [[CentOS]] | + | 在 [[CentOS]] 上 上安装 [[Cloudera]] 5.4.x |
安装CDH有三种方式: | 安装CDH有三种方式: | ||
第6行: | 第6行: | ||
*[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_install_path_c.html 使用 Cloudera Manager Tarballs 手动安装] | *[http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_install_path_c.html 使用 Cloudera Manager Tarballs 手动安装] | ||
− | 若你没有安装 CentOS | + | 若你没有安装 CentOS 6,可试着安装一个虚拟机 |
$ mkdir vm-install | $ mkdir vm-install | ||
$ cd vm-install | $ cd vm-install | ||
− | $ vagrant init chef/centos- | + | $ vagrant init chef/centos-6.0 |
编辑 Vagrantfile | 编辑 Vagrantfile | ||
Vagrant.configure(2) do |config| | Vagrant.configure(2) do |config| | ||
− | config.vm.box = "chef/centos- | + | config.vm.box = "chef/centos-6.0" |
config.vm.network "private_network", ip: "192.168.33.10" | config.vm.network "private_network", ip: "192.168.33.10" | ||
config.vm.hostname = "node1" | config.vm.hostname = "node1" | ||
第22行: | 第22行: | ||
==PostgreSQL== | ==PostgreSQL== | ||
− | yum install http://yum.postgresql.org/9.4/redhat/rhel- | + | yum install postgresql-server |
+ | 或 | ||
+ | yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm | ||
yum install postgresql94-server postgresql94-contrib | yum install postgresql94-server postgresql94-contrib | ||
− | + | service postgresql-9.4 initdb | |
+ | chkconfig postgresql-9.4 on | ||
+ | 若修改数据目录 /home/data/pg_data | ||
chown -R postgres:postgres /home/data/pg_data | chown -R postgres:postgres /home/data/pg_data | ||
进入目录"/etc/sysconfig/pgsql",创建文件"postgresql-9.4"(文件名要和数据库的服务名一致) | 进入目录"/etc/sysconfig/pgsql",创建文件"postgresql-9.4"(文件名要和数据库的服务名一致) | ||
写入内容:PGDATA=/home/data/pg_data | 写入内容:PGDATA=/home/data/pg_data | ||
− | |||
service postgresql-9.4 start | service postgresql-9.4 start | ||
− | |||
==CM== | ==CM== |
2015年8月13日 (四) 05:51的版本
安装CDH有三种方式:
若你没有安装 CentOS 6,可试着安装一个虚拟机
$ mkdir vm-install $ cd vm-install $ vagrant init chef/centos-6.0
编辑 Vagrantfile
Vagrant.configure(2) do |config| config.vm.box = "chef/centos-6.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 postgresql-server
或
yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm yum install postgresql94-server postgresql94-contrib service postgresql-9.4 initdb chkconfig postgresql-9.4 on 若修改数据目录 /home/data/pg_data chown -R postgres:postgres /home/data/pg_data 进入目录"/etc/sysconfig/pgsql",创建文件"postgresql-9.4"(文件名要和数据库的服务名一致) 写入内容:PGDATA=/home/data/pg_data service postgresql-9.4 start
CM
wget http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin
图集
参考
分享您的观点