Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6098698
  • 博文数量: 2759
  • 博客积分: 1021
  • 博客等级: 中士
  • 技术积分: 4091
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-11 14:14
文章分类

全部博文(2759)

文章存档

2019年(1)

2017年(84)

2016年(196)

2015年(204)

2014年(636)

2013年(1176)

2012年(463)

分类: HADOOP

2014-04-18 08:30:36

原文地址:hadoop和hbase文件配置 作者:laoliulaoliu

0. 机器结构

1台NameNode,3台DataNode

  1. 1.3.0.241 cloud1
  2. 1.3.10.229 cloud2
  3. 1.3.10.231 cloud3
  4. 1.3.10.230 cloud4

1.Hadoop

core-site.xml

 
   fs.defaultFS
   hdfs://cloud1:9000
 
 
   io.file.buffer.size
   131072
 
 
   hadoop.tmp.dir
   /mnt/hadoop/tmp
   A base for other temporary directories.
 

hdfs-site.xml

 
   dfs.namenode.name.dir
   /mnt/hadoop/name
 
 
   dfs.datanode.data.dir
   /mnt/hadoop/data
 
 
   dfs.replication
   3
 

 
   dfs.support.append
   true
 
 
   dfs.datanode.max.xcievers
   4096
 

mapred-site.xml

 
   mapreduce.framework.name
   yarn
 
 
   mapreduce.jobhistory.address
   cloud1:10020
 
 
   mapreduce.jobhistory.webapp.address
   cloud1:19888
 

yarn-site.xml

 
   yarn.resourcemanager.address
   cloud1:8032
   ResourceManager host:port for clients to submit jobs. 
 
 
   yarn.resourcemanager.scheduler.address
   cloud1:8030
   ResourceManager host:port for ApplicationMasters to talk to Scheduler to obtain resources.
 
 
   yarn.resourcemanager.resource-tracker.address
   cloud1:8031
   ResourceManager host:port for NodeManagers. 
 
 
   yarn.resourcemanager.admin.address
   cloud1:8033
   ResourceManager host:port for administrative commands. 
 
 
   yarn.resourcemanager.webapp.address
   cloud1:8088
   ResourceManager web-ui host:port. 
 
 
   yarn.resourcemanager.scheduler.class
   org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler
   In case you do not want to use the default scheduler
 
 
 
   yarn.nodemanager.resource.memory-mb
   10240
   the amount of memory on the NodeManager in MB
 
 
   yarn.nodemanager.local-dirs
   
   the local directories used by the nodemanager
 
 
   yarn.nodemanager.log-dirs
   
   the directories used by Nodemanagers as log directories
 
 
   yarn.nodemanager.remote-app-log-dir
   /app-logs
   directory on hdfs where the application logs are moved to 
 
 
   yarn.nodemanager.aux-services
   mapreduce_shuffle
   shuffle service that needs to be set for Map Reduce to run 
 



2.Hbase

hbase-site.xml

 
   hbase.rootdir
   hdfs://cloud1:9000/hbase
   The directory shared by RegionServers.
 
 
   dfs.support.append
   true
 
 
   hbase.cluster.distributed
   true
   The mode the cluster will be in. Possible values are
     false: standalone and pseudo-distributed setups with managed Zookeeper
     true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh)
   
 
 
   hbase.zookeeper.property.clientPort
   2181
   Property from ZooKeeper's config zoo.cfg.The port at which the clients will connect.
 
 
   hbase.zookeeper.quorum
   cloud2,cloud3,cloud4
   The directory shared by RegionServers.
 
 
   hbase.zookeeper.property.dataDir
   /mnt/zookeeper-john
   Property from ZooKeeper\'s config zoo.cfg. The directory where the snapshot is stored.
 
 
   hbase.zookeeper.property.maxClientCnxns
   1000
 



阅读(1232) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~