hbase配置
来源:互联网 发布:北京程序员工资 知乎 编辑:程序博客网 时间:2024/04/29 14:29
1、下载hbase
hbase-0.90.3
2、下载zookeeper
zookeeper-3.3.2
版本一定要对应上,同时检查lib里的jar包hbase、zookeeper、hadoop的版本是否对应
3、修改zoo.cfg
修改dataDir=C:/cygwin/home/Administrator/zookeeper-3.3.2/data_dir
增加:server.1=130.51.38.100:2888:3888
4、修改regionservers
meimer-computer
5、配置hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9100/hbase</value>
<description>The directory shared by region servers and into
which HBase persists. The URL should be 'fully-qualified'
to include the filesystem scheme. For example, to specify the
HDFS directory '/hbase' where the HDFS instance's namenode is
running at namenode.example.org on port 9000, set this value to:
hdfs://namenode.example.org:9000/hbase. By default HBase writes
into /tmp. Change this configuration else all data will be lost
on machine restart.
</description>
</property>
<property>
<name>hbase.master.port</name>
<value>60000</value>
<description>The port the HBase Master should bind to.</description>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/tmp/hbase-${user.name}</value>
<description>Temporary directory on the local filesystem.
Change this setting to point to a location more permanent
than '/tmp' (The '/tmp' directory is often cleared on
machine restart).
</description>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<description>The mode the cluster will be in. Possible values are
false for standalone mode and true for distributed mode. If
false, startup will run all HBase and ZooKeeper daemons together
in the one JVM.
</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>meimer-computer</value>
<description>Comma separated list of servers in the ZooKeeper Quorum.
For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
By default this is set to localhost for local and pseudo-distributed modes
of operation. For a fully-distributed setup, this should be set to a full
list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.sh
this is the list of servers which we will start/stop ZooKeeper on.
</description>
</property>
</configuration>
6、修改hbase-evn.sh
export JAVA_HOME=/usr/local/jdk1.6.0_24
export HBASE_MANAGES_ZK=false
7、启动
bin/kzServer.sh start
bin/start-hbase.sh
bin/hbase shell
如果报java找不到,修改zkServer.sh里的java为全路径
停止
bin/kzServer.sh stop
bin/stop-hbase.sh
hbase-0.90.3
2、下载zookeeper
zookeeper-3.3.2
版本一定要对应上,同时检查lib里的jar包hbase、zookeeper、hadoop的版本是否对应
3、修改zoo.cfg
修改dataDir=C:/cygwin/home/Administrator/zookeeper-3.3.2/data_dir
增加:server.1=130.51.38.100:2888:3888
4、修改regionservers
meimer-computer
5、配置hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9100/hbase</value>
<description>The directory shared by region servers and into
which HBase persists. The URL should be 'fully-qualified'
to include the filesystem scheme. For example, to specify the
HDFS directory '/hbase' where the HDFS instance's namenode is
running at namenode.example.org on port 9000, set this value to:
hdfs://namenode.example.org:9000/hbase. By default HBase writes
into /tmp. Change this configuration else all data will be lost
on machine restart.
</description>
</property>
<property>
<name>hbase.master.port</name>
<value>60000</value>
<description>The port the HBase Master should bind to.</description>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/tmp/hbase-${user.name}</value>
<description>Temporary directory on the local filesystem.
Change this setting to point to a location more permanent
than '/tmp' (The '/tmp' directory is often cleared on
machine restart).
</description>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<description>The mode the cluster will be in. Possible values are
false for standalone mode and true for distributed mode. If
false, startup will run all HBase and ZooKeeper daemons together
in the one JVM.
</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>meimer-computer</value>
<description>Comma separated list of servers in the ZooKeeper Quorum.
For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
By default this is set to localhost for local and pseudo-distributed modes
of operation. For a fully-distributed setup, this should be set to a full
list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.sh
this is the list of servers which we will start/stop ZooKeeper on.
</description>
</property>
</configuration>
6、修改hbase-evn.sh
export JAVA_HOME=/usr/local/jdk1.6.0_24
export HBASE_MANAGES_ZK=false
7、启动
bin/kzServer.sh start
bin/start-hbase.sh
bin/hbase shell
如果报java找不到,修改zkServer.sh里的java为全路径
停止
bin/kzServer.sh stop
bin/stop-hbase.sh
0 0
- 配置hbase
- 配置HBASE
- hbase配置
- hbase 配置
- hbase 配置
- hbase配置
- 配置hbase
- hbase配置
- 配置HBASE
- Hbase配置
- HBase配置
- 配置hbase
- hbase配置
- hadoop/hbase 文件配置
- hbase安装与配置
- 配置hadoop,hive,hbase
- HBase分布式简易配置
- HBase单机配置
- Objective-C 之 AutoRelease详解
- PSO 粒子群算法 Matlab实现
- MySQL命令行下操作插入数据时, 数据库名中含有中横线出错
- 通知+动画
- Codeforces 483B Friends and Presents(二分+数论)
- hbase配置
- ubuntu使用笔记
- ubuntu的源
- Metasploit ---- Could not find rake
- ubuntu启动hadoop报错
- 嘉玲面膜一件代发微信a1888166 嘉玲面膜招代理 嘉玲面膜授权
- win xp搭建hadoop
- org.apache.hadoop.ipc.Client: Retrying connect to server
- 在Xcode6中找回失去的模板Empty Application