惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
MyScale Blog
MyScale Blog
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
T
Tenable Blog
S
Securelist
S
Schneier on Security
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
C
Cisco Blogs
The Hacker News
The Hacker News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
O
OpenAI News
V
Vulnerabilities – Threatpost
V
Visual Studio Blog
Security Latest
Security Latest
T
Threatpost
博客园 - 三生石上(FineUI控件)
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hacker News: Front Page
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
I
InfoQ
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
Know Your Adversary
Know Your Adversary
Martin Fowler
Martin Fowler
Forbes - Security
Forbes - Security
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CERT Recently Published Vulnerability Notes
N
News and Events Feed by Topic
V
V2EX
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threat Research - Cisco Blogs
S
Secure Thoughts
量子位
博客园 - 【当耐特】

博客园 - 季石磊

jps 报process information unavailable解决办法 Jobtracker重启Job recovery过程分析 hadoop & hbase 上下线 Hbase性能优化 Poor performance running Hadoop on RHEL 6.2 or later when transparent hugepage compaction is enabled ldconfig几个需要注意的地方[转] [转]HBase性能优化方法总结 centos 查看版本 修改Hadoop集群的备份数 [转载]ext4的noatime 指定HADOOP_HOME位置的三种方法 Windows下 Python 安装包的配置 django1.4测试环境 css样式,图片路径问题解决 Python用subprocess的Popen实现用户切换 CentOS 6安装JDK及系统配置 mapreduce程序运行避免手动删除output目录 HDFS配置设置 Hadoop运维操作 HDFS Permissions & Acls
关于Hbase集群需要使用DNS域名解析的体会
季石磊 · 2013-01-30 · via 博客园 - 季石磊

从yum安装hbase集群的时候,有时候主机和节点不能启动Hmaster和Hregionserver。日志提示不能正确解析从节点主机名称,主机从官网上查看,得知
yum安装的hbase需要用DNS服器进行解析:
于是就在主节点上设置dns服务器;(我开始是用yum安装的,最后在公司服务器部署的时候用的是rpm包安装的,区别是安装后的配置文件保存的路径不一样,yum安装会比较简单,因为不需要考虑安装包之间的依赖关系)
安装包如下:
bind-devel-9.3.6-16.P1.el5.i386.rpm                             
bind-libbind-devel-9.3.6-16.P1.el5.i386.rpm              
bind-libs-9.3.6-16.P1.el5.i386.rpm
bind-9.3.6-16.P1.el5.i386.rpm              
(注意:因为安装前有依赖关系,先安装上面三个安装包,最后安装bind-9.3.6-16.P1.el5.i386.rpm 包) 

编辑named.conf文件,设置正向解析区域文件,如下:

[root@www.linuxidc.com-Hadoop ~]# vi  /etc/named.conf 
-bash: cd: /etc/named.conf: Not a directory
[root@www.linuxidc.com-hadoop ~]# cat /etc/named.conf 
options { 
notify-source 10.0.0.2; 
pid-file "/var/run/named/named.pid"; 
}; 
zone "hdfs" { (我们设置的域名为hdfs,也可以设置成hdfs.com,根据自己的需要)
type master; 
file "/var/named/hdfs.zone"; 
};

编辑正向解析区域文件,如下:

[root@www.linuxidc.com-hadoop ~]# vi /var/named/hdfs.zone

$TTL    86400
@ IN SOA hdfs. root(
        200101111
        14400
        3600
        604800
        86400)
master-hadoop IN A 192.168.5.249
slave1-hadoop IN A 192.168.5.201
slave2-hadoop IN A 192.168.5.202
slave3-hadoop IN A 192.168.5.91
slave4-hadoop IN A 192.168.5.71
slave5-hadoop IN A 192.168.5.70
slave6-hadoop IN A 192.168.5.113

@ IN NS ns.hdfs.

保存退出

启动named服务

/etc/rc.d/init.d/named start

修改所有节点的DNS配置文件,如下:

[root@www.linuxidc.com-hadoop ~]# vim /etc/resolv.conf (注意:DNS服务器dns设置要指向本机,并且使用实际IP,不要使用127.0.0.1)
search hdfs
domain hdfs
nameserver 192.168.5.113
nameserver 202.106.0.20

测试dns域名是否生效:

ping slave6-hadoop.hdfs

至此dns服务器配置完毕(注意:在以后添加节点的时候中需要添加在hdfs.zone中添加节点的主机A记录,以便主机对新加节点进行解析)