HBase-分布式安装


HBase的安装很简单,也是分为单机伪分布式和分布式


先保证hadoop环境JDK环境,我的是2.2.0和1.6_45

1.确定hadoop正常

HBase-分布式安装

2.上传HBase并解压,我用的是和hadoop2.2.0对应的0.96

HBase-分布式安装

3.然后配置。修改hbase-env.sh

先配置Java环境变量

HBase-分布式安装

再配置对zookeeper的管理,因为没装独立的zookeeper,就让HBase管理好了

HBase-分布式安装

4.配置hbase-site.xml

 <configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:8020/hbase</value>
</property>
<property>
<name>hbase.master.port</name>
<value>60000</value>
</property>
<property>
<name>hbase.zookeeper.property.datadir</name>
<value>/home/hadoop/hbase-0.96.0/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>slave1</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>

第一个是HBase在在hdfs上的目录,第二个是HBase master主机的主机名和端口,第三个是zookeeper的目录位置,第四个是配置分布式,第五个是zookeeper主机(奇数),第六个是zookeeper的客户端端口

5.配置HBase在Linux中的环境变量,方便使用命令

HBase-分布式安装

HBase-分布式安装

6.启动测试

HBase-分布式安装

HBase-分布式安装

HBase-分布式安装

6.WEB UI

HBase-分布式安装

7.程序测试(eclipse)(导包的话就把HBase下面所有的包都导进去就行了)(我是这样做的,没什么错反正)

 package org.admln.hbase;

 import java.io.IOException;

 import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.MasterNotRunningException;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.ZooKeeperConnectionException;
import org.apache.hadoop.hbase.client.HBaseAdmin; public class OperateTable { public static void main(String[] args) throws MasterNotRunningException, ZooKeeperConnectionException, IOException {
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum", "slave1");
conf.set("hbase.zookeeper.property.clientPort","2181");
HBaseAdmin admin = new HBaseAdmin(conf);
HTableDescriptor desc = new HTableDescriptor(TableName.valueOf("blog"));
desc.addFamily(new HColumnDescriptor("article"));
desc.addFamily(new HColumnDescriptor("author"));
admin.createTable(desc);
admin.close();
}
}
 2014-11-10 14:11:29,410 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-11-10 14:11:29,511 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
2014-11-10 14:11:29,512 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:host.name=WZJ-20140910JYZ
2014-11-10 14:11:29,512 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.version=1.7.0_72
2014-11-10 14:11:29,512 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.vendor=Oracle Corporation
2014-11-10 14:11:29,512 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.home=C:\Program Files (x86)\Java\jre7
2014-11-10 14:11:29,512 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.class.path=D:\eclipseWorkspace32\testHbase\bin;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\xz-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\snappy-java-1.0.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\protobuf-java-2.5.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\paranamer-2.3.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\netty-3.6.2.Final.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\log4j-1.2.17.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\junit-4.10.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\jersey-server-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\jersey-guice-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\jersey-core-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\javax.inject-1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\jackson-mapper-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\jackson-core-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\hamcrest-core-1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\hadoop-annotations-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\guice-servlet-3.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\guice-3.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\commons-io-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\commons-compress-1.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\avro-1.7.4.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\asm-3.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\lib\aopalliance-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-site-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-server-web-proxy-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-server-resourcemanager-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-server-nodemanager-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-server-common-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-common-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-client-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-applications-unmanaged-am-launcher-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-applications-distributedshell-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\yarn\hadoop-yarn-api-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\xmlenc-0.52.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\servlet-api-2.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\protobuf-java-2.5.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\netty-3.6.2.Final.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\log4j-1.2.17.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jsr305-1.3.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jsp-api-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jetty-util-6.1.26.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jetty-6.1.26.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jersey-server-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jersey-core-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jasper-runtime-5.5.23.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jackson-mapper-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\jackson-core-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\guava-11.0.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-logging-1.1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-lang-2.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-io-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-el-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-daemon-1.0.13.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-codec-1.4.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\commons-cli-1.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\lib\asm-3.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\hadoop-hdfs-nfs-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\hdfs\hadoop-hdfs-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\xz-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\snappy-java-1.0.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\protobuf-java-2.5.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\paranamer-2.3.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\netty-3.6.2.Final.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\log4j-1.2.17.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\junit-4.10.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\jersey-server-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\jersey-guice-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\jersey-core-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\javax.inject-1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\jackson-mapper-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\jackson-core-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\hamcrest-core-1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\hadoop-annotations-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\guice-servlet-3.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\guice-3.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\commons-io-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\commons-compress-1.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\avro-1.7.4.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\asm-3.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\lib\aopalliance-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-shuffle-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-jobclient-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-hs-plugins-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-hs-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-core-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-common-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\mapreduce\hadoop-mapreduce-client-app-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\zookeeper-3.4.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\xz-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\xmlenc-0.52.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\stax-api-1.0.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\snappy-java-1.0.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\slf4j-log4j12-1.7.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\slf4j-api-1.7.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\servlet-api-2.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\protobuf-java-2.5.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\paranamer-2.3.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\netty-3.6.2.Final.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\mockito-all-1.8.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\log4j-1.2.17.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\junit-4.8.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jsr305-1.3.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jsp-api-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jsch-0.1.42.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jetty-util-6.1.26.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jetty-6.1.26.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jettison-1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jets3t-0.6.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jersey-server-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jersey-json-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jersey-core-1.9.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jaxb-impl-2.2.3-1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jaxb-api-2.2.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jasper-runtime-5.5.23.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jasper-compiler-5.5.23.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jackson-xc-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jackson-mapper-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jackson-jaxrs-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\jackson-core-asl-1.8.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\hadoop-auth-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\hadoop-annotations-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\guava-11.0.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-net-3.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-math-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-logging-1.1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-lang-2.5.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-io-2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-httpclient-3.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-el-1.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-digester-1.8.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-configuration-1.6.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-compress-1.4.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-collections-3.2.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-codec-1.4.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-cli-1.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-beanutils-core-1.8.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\commons-beanutils-1.7.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\avro-1.7.4.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\asm-3.2.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\lib\activation-1.1.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\hadoop-nfs-2.2.0.jar;F:\hadoop\hadoop-2.2.0\share\hadoop\common\hadoop-common-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\activation-1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\aopalliance-1.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\asm-3.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\avro-1.5.3.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-beanutils-1.7.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-beanutils-core-1.8.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-cli-1.2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-codec-1.7.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-collections-3.2.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-compress-1.4.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-configuration-1.6.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-daemon-1.0.13.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-digester-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-el-1.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-httpclient-3.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-io-2.4.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-lang-2.6.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-logging-1.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-math-2.2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\commons-net-3.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\core-3.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\findbugs-annotations-1.3.9-1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\gmbal-api-only-3.0.0-b023.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-framework-2.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-framework-2.1.1-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-http-2.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-http-server-2.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-http-servlet-2.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\grizzly-rcm-2.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\guava-12.0.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\guice-3.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\guice-servlet-3.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-annotations-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-archives-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-archives-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-archives-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-auth-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-common-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-common-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-common-2.2.0-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-common-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-datajoin-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-datajoin-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-datajoin-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-distcp-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-distcp-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-distcp-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-extras-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-extras-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-extras-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-gridmix-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-gridmix-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-gridmix-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-hdfs-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-hdfs-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-hdfs-2.2.0-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-hdfs-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-hdfs-nfs-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-app-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-app-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-app-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-common-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-common-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-common-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-core-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-core-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-core-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-plugins-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-plugins-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-hs-plugins-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-jobclient-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-jobclient-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-jobclient-2.2.0-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-jobclient-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-shuffle-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-shuffle-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-client-shuffle-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-examples-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-examples-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-mapreduce-examples-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-nfs-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-rumen-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-rumen-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-rumen-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-streaming-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-streaming-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-streaming-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-api-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-api-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-distributedshell-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-distributedshell-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-distributedshell-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-unmanaged-am-launcher-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-unmanaged-am-launcher-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-applications-unmanaged-am-launcher-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-client-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-client-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-client-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-common-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-common-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-common-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-common-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-common-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-common-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-nodemanager-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-nodemanager-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-nodemanager-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-resourcemanager-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-resourcemanager-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-resourcemanager-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-tests-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-tests-2.2.0-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-tests-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-web-proxy-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-web-proxy-2.2.0-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-server-web-proxy-2.2.0-test-sources.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hadoop-yarn-site-2.2.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-client-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-common-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-common-0.96.0-hadoop2-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-examples-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-hadoop2-compat-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-hadoop-compat-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-it-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-it-0.96.0-hadoop2-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-prefix-tree-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-protocol-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-server-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-server-0.96.0-hadoop2-tests.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-shell-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-testing-util-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\hbase-thrift-0.96.0-hadoop2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\high-scale-lib-1.1.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\htrace-core-2.01.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\httpclient-4.1.3.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\httpcore-4.1.3.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jackson-core-asl-1.8.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jackson-jaxrs-1.8.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jackson-mapper-asl-1.8.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jackson-xc-1.8.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jamon-runtime-2.3.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jasper-compiler-5.5.23.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jasper-runtime-5.5.23.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\javax.inject-1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\javax.servlet-3.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jaxb-api-2.2.2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jaxb-impl-2.2.3-1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-client-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-core-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-grizzly2-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-guice-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-json-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-server-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-test-framework-core-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jersey-test-framework-grizzly2-1.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jets3t-0.6.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jettison-1.3.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jetty-6.1.26.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jetty-sslengine-6.1.26.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jetty-util-6.1.26.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jruby-complete-1.6.8.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jsch-0.1.42.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jsp-2.1-6.1.14.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jsp-api-2.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jsp-api-2.1-6.1.14.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\jsr305-1.3.9.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\junit-4.11.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\libthrift-0.9.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\log4j-1.2.17.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\management-api-3.0.0-b012.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\metrics-core-2.1.2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\netty-3.6.6.Final.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\paranamer-2.3.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\protobuf-java-2.5.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\servlet-api-2.5.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\servlet-api-2.5-6.1.14.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\slf4j-api-1.6.4.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\slf4j-log4j12-1.6.4.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\snappy-java-1.0.3.2.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\stax-api-1.0.1.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\xmlenc-0.52.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\xz-1.0.jar;F:\hadoop\hbase-0.96.0-hadoop2\lib\zookeeper-3.4.5.jar
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.library.path=C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.7.0_45\bin;D:\Program Files\apache-ant-1.9.4\bin;D:\cygwin64\bin;D:\Program Files (x86)\apache-maven-3.2.1\bin;C:\Program Files (x86)\Java\jdk1.7.0_72\bin;D:\Program Files (x86)\eclipse32;;.
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.compiler=<NA>
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.name=Windows 7
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.arch=x86
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.version=6.1
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.name=Administrator
2014-11-10 14:11:29,513 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.home=C:\Users\Administrator
2014-11-10 14:11:29,514 INFO zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.dir=D:\eclipseWorkspace32\testHbase
2014-11-10 14:11:29,515 INFO zookeeper.ZooKeeper (ZooKeeper.java:<init>(438)) - Initiating client connection, connectString=slave1:2181 sessionTimeout=90000 watcher=hconnection-0x18d0299
2014-11-10 14:11:29,538 INFO zookeeper.RecoverableZooKeeper (RecoverableZooKeeper.java:<init>(120)) - Process identifier=hconnection-0x18d0299 connecting to ZooKeeper ensemble=slave1:2181
2014-11-10 14:11:29,540 INFO zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(966)) - Opening socket connection to server slave1/192.168.126.135:2181. Will not attempt to authenticate using SASL (unknown error)
2014-11-10 14:11:29,543 INFO zookeeper.ClientCnxn (ClientCnxn.java:primeConnection(849)) - Socket connection established to slave1/192.168.126.135:2181, initiating session
2014-11-10 14:11:29,556 INFO zookeeper.ClientCnxn (ClientCnxn.java:onConnected(1207)) - Session establishment complete on server slave1/192.168.126.135:2181, sessionid = 0x149983d6fdf001d, negotiated timeout = 90000
2014-11-10 14:11:29,742 INFO Configuration.deprecation (Configuration.java:warnOnceIfDeprecated(840)) - hadoop.native.lib is deprecated. Instead, use io.native.lib.available
2014-11-10 14:11:30,231 INFO zookeeper.ZooKeeper (ZooKeeper.java:<init>(438)) - Initiating client connection, connectString=slave1:2181 sessionTimeout=90000 watcher=catalogtracker-on-hconnection-0x18d0299
2014-11-10 14:11:30,233 INFO zookeeper.RecoverableZooKeeper (RecoverableZooKeeper.java:<init>(120)) - Process identifier=catalogtracker-on-hconnection-0x18d0299 connecting to ZooKeeper ensemble=slave1:2181
2014-11-10 14:11:30,234 INFO zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(966)) - Opening socket connection to server slave1/192.168.126.135:2181. Will not attempt to authenticate using SASL (unknown error)
2014-11-10 14:11:30,234 INFO zookeeper.ClientCnxn (ClientCnxn.java:primeConnection(849)) - Socket connection established to slave1/192.168.126.135:2181, initiating session
2014-11-10 14:11:30,236 INFO zookeeper.ClientCnxn (ClientCnxn.java:onConnected(1207)) - Session establishment complete on server slave1/192.168.126.135:2181, sessionid = 0x149983d6fdf001e, negotiated timeout = 90000
2014-11-10 14:11:30,252 INFO zookeeper.ZooKeeper (ZooKeeper.java:close(684)) - Session: 0x149983d6fdf001e closed
2014-11-10 14:11:30,252 INFO zookeeper.ClientCnxn (ClientCnxn.java:run(509)) - EventThread shut down
2014-11-10 14:11:30,258 INFO client.HConnectionManager$HConnectionImplementation (HConnectionManager.java:closeMasterService(2134)) - Closing master protocol: MasterService
2014-11-10 14:11:30,258 INFO client.HConnectionManager$HConnectionImplementation (HConnectionManager.java:closeZooKeeperWatcher(1810)) - Closing zookeeper sessionid=0x149983d6fdf001d
2014-11-10 14:11:30,260 INFO zookeeper.ZooKeeper (ZooKeeper.java:close(684)) - Session: 0x149983d6fdf001d closed
2014-11-10 14:11:30,260 INFO zookeeper.ClientCnxn (ClientCnxn.java:run(509)) - EventThread shut down

运行以后

HBase-分布式安装


安装完毕,HBase操作很简单,难在优化和模式设计,这种东西只有在实战中才能去训练了。


上一篇:关于Google+以及Facebook第三方登录实现的一点总结


下一篇:Launch和Shut Off操作详解 - 每天5分钟玩转 OpenStack(30)