2012年5月11日
摘要: ZooKeeper分布式模式安装(ZooKeeper集群)也比较容易,这里说明一下基本要点。 首先要明确的是,ZooKeeper集群是一个独立的分布式协调服务集群,"独立"的含义就是说,如果想使用ZooKeeper实现分布式应用的协调与管理,简化协调与管理,任何分布式应用都可以使用,这就要归功于Zookeeper的数据模型(Data Model)和层次命名空间(Hierarchical Name... 阅读全文
posted @ 2012-05-11 22:58 powerXu 阅读(292) 评论(0) 推荐(0) 编辑
摘要: master:195 RegionServer:196,197 1,修改三台hadoop的配置hdfs-site.xml, dfs.support.append true dfs.datanode.max.xcievers 4096 restart hdfs #替换 hbase lib下的hadoop.jar为hdfs集群用的hadoop.jar 2,修改hbase-site.xml ... 阅读全文
posted @ 2012-05-11 22:55 powerXu 阅读(296) 评论(0) 推荐(0) 编辑
  2012年5月10日
摘要: 主要的几个问题: 1)/etc/selinux/config 的selinux=disable 2) 机器名:/etc/sysconfig/network 的机器名与master 和slaves中的机器名要一致。包括:core-site.xml,hdfs-site.xml 和mapred-xx.xml 等 3) 建立dfs中的data 和name目录,其中data目录的权限为drwxr-x... 阅读全文
posted @ 2012-05-10 23:22 powerXu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 使用VirtualBox装了很多虚拟机,默认采用的DHCP的方式,但是随着虚拟机越来越多以后,这种方式很不方便,所以需要将机器的IP都设置为静态IP 需要添加的几项内容的解释: IPADDR IP地址 NETMASK 子网掩码 NETWORK 网关地址 通常,如果我们想更改主机地址为静态地址或者更改主机名,需要修改的几个文件包括: /etc/sysconfig/network 设置主机名... 阅读全文
posted @ 2012-05-10 16:04 powerXu 阅读(203) 评论(0) 推荐(0) 编辑
摘要: <property> <name>fs.default.name</name> <value>hdfs://t1:9000/</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/home/hadoop/hadoop-1.0.1/tmp</value> </property> <property> ... 阅读全文
posted @ 2012-05-10 10:23 powerXu 阅读(203) 评论(0) 推荐(0) 编辑
  2012年5月9日
摘要: 1、启动telnet服务 1、开启服务 方法一:使用ntsysv命令,在出现的窗口中,选中telnet,然后按下 OK 。 [root@CentOS5 /]#ntsysv 方法二:编辑 /etc/xinetd.d/telnet [root@CentOS5 /]#vi /etc/xinetd.d/telnet 将"disable = yes" 改为"disable = no" 2、启... 阅读全文
posted @ 2012-05-09 20:41 powerXu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 项目中碰到的问题,编译好的so文件,放到其他机器上去加载,报了错误,cannot restore segment prot after reloc: Permission denied。 网上查了一下,原因是selinux的问题,selinux的设置太过严格导致的。解决的办法是在root用户下,修改/etc/selinux/config 文件, [cpp] view plaincopy 把... 阅读全文
posted @ 2012-05-09 17:09 powerXu 阅读(216) 评论(0) 推荐(0) 编辑
摘要: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 t1.dky.com t1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhos... 阅读全文
posted @ 2012-05-09 14:11 powerXu 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 新安装完CentOS Linux,发现配置完apache后没法访问,估计是防火墙问题。 /etc/init.d/iptables status 会得到一系列信息,说明防火墙开着。 /etc/init.d/iptables stop 永久关闭: chkconfig --level 35 iptables off 1) 永久性生效,重启后不会复原 开启: chkconfig iptables on ... 阅读全文
posted @ 2012-05-09 11:27 powerXu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 配置步骤如下: 一、安装telnet软件包(通常需要两个) 1、 telnet(或 telnet-client),这个软件包提供telnet 客户端程序; 2、 telnet-server,这个软件包提供telnet 服务器端程序; 安装之前先检查系统是否已安装这些软件包,方法如下: [root@CentOS5 /]#rpm -qa |grep telnet 如果没有检测到软件包,则... 阅读全文
posted @ 2012-05-09 11:21 powerXu 阅读(358) 评论(0) 推荐(0) 编辑