[Hadoop] HBase Installation
http://www.apache.org/dyn/closer.cgi/hbase/
[root@my-master-host 2]# tar -zxvf hbase-0.98.3-hadoop1-bin.tar.gz
[root@my-master-host 2]# ll -lhtr
-rw-rw-r– 1 hpadmin hpadmin 64M Jul 14 05:44 hbase-0.98.3-hadoop1-bin.tar.gz
drwxr-xr-x 7 root root 4.0K Jul 14 05:48 hbase-0.98.3-hadoop1
[root@my-master-host 2]#
[root@my-master-host 2]#
[root@my-master-host 2]#
[root@my-master-host 2]# cd hbase-0.98.3-hadoop1
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]# ll -lhtr
total 168K
-rw-r–r– 1 root root 12K May 22 12:15 LICENSE.txt
-rw-r–r– 1 root root 897 May 22 12:58 NOTICE.txt
-rw-r–r– 1 root root 1.4K May 31 18:24 README.txt
drwxr-xr-x 2 root root 4.0K May 31 18:24 conf
drwxr-xr-x 4 root root 4.0K May 31 18:24 bin
-rw-r–r– 1 root root 126K May 31 18:51 CHANGES.txt
drwxr-xr-x 7 root root 4.0K May 31 22:26 hbase-webapps
drwxr-xr-x 28 root root 4.0K May 31 22:34 docs
drwxr-xr-x 3 root root 4.0K Jul 14 05:48 lib
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]#
[root@my-master-host hbase-0.98.3-hadoop1]# cd ..
[root@my-master-host 2]#
[root@my-master-host 2]#
[root@my-master-host 2]#
[root@my-master-host 2]#
[root@my-master-host 2]# mv hbase-0.98.3-hadoop1 hbase
[root@my-master-host hbase]# ll -lhtr
total 168K
-rw-r–r– 1 root root 12K May 22 12:15 LICENSE.txt
-rw-r–r– 1 root root 897 May 22 12:58 NOTICE.txt
-rw-r–r– 1 root root 1.4K May 31 18:24 README.txt
drwxr-xr-x 2 root root 4.0K May 31 18:24 conf
drwxr-xr-x 4 root root 4.0K May 31 18:24 bin
-rw-r–r– 1 root root 126K May 31 18:51 CHANGES.txt
drwxr-xr-x 7 root root 4.0K May 31 22:26 hbase-webapps
drwxr-xr-x 28 root root 4.0K May 31 22:34 docs
drwxr-xr-x 3 root root 4.0K Jul 14 05:48 lib
[root@my-master-host hbase]#
[root@my-master-host hbase]#
[root@my-master-host hbase]#
[root@my-master-host hbase]#
[root@my-master-host hbase]# cd conf/
[root@my-master-host conf]# ll -lhtr
total 32K
-rw-r–r– 1 root root 10 May 22 12:15 regionservers
-rw-r–r– 1 root root 2.3K May 27 13:43 hbase-policy.xml
-rw-r–r– 1 root root 4.0K May 27 13:43 hbase-env.cmd
-rw-r–r– 1 root root 1.1K May 27 13:43 hadoop-metrics2-hbase.properties
-rw-r–r– 1 root root 3.4K May 31 18:24 log4j.properties
-rw-r–r– 1 root root 6.9K Jul 14 09:11 hbase-env.sh
-rw-r–r– 1 root root 1021 Jul 14 09:20 hbase-site.xml
[root@my-master-host conf]#
[root@my-master-host conf]#
[root@my-master-host conf]# grep “export” hbase-env.sh | grep -v “#”
export JAVA_HOME=/usr/java/jdk1.8.0_05
export HBASE_OPTS=”-XX:+UseConcMarkSweepGC”
[root@my-master-host conf]#
[root@my-master-host conf]# cat hbase-site.xml
<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!–
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* “License”); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
–>
<configuration>
<property>
<name>hbase.rootdir</name>
<value>/data/2/hbase</value>
</property>
</configuration>
[root@my-master-host conf]#
[root@my-master-host conf]# start-hbase.sh
starting master, logging to /data/2/hbase/bin/../logs/hbase-root-master-my-master-host.out
[root@my-master-host conf]#
[root@my-master-host hbase]# cat /data/2/hbase/bin/../logs/hbase-root-master-my-master-host.log
Mon Jul 14 09:20:21 EDT 2014 Starting master on my-master-host
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 143610
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 64000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2014-07-14 09:20:23,519 INFO [main] util.VersionInfo: HBase 0.98.3-hadoop1
2014-07-14 09:20:23,520 INFO [main] util.VersionInfo: Subversion git://acer/usr/src/Hadoop/hbase -r d5e65a9144e315bb0a964e7730871af32f5018d5
2014-07-14 09:20:23,520 INFO [main] util.VersionInfo: Compiled by apurtell on Sat May 31 19:34:57 PDT 2014
2014-07-14 09:20:23,840 INFO [main] server.ZooKeeperServer: Server environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2014-07-14 09:20:23,841 INFO [main] server.ZooKeeperServer: Server environment:host.name=my-master-host.nam.nsroot.net
2014-07-14 09:20:23,841 INFO [main] server.ZooKeeperServer: Server environment:java.version=1.8.0_05
2014-07-14 09:20:23,841 INFO [main] server.ZooKeeperServer: Server environment:java.vendor=Oracle Corporation
2014-07-14 09:20:23,841 INFO [main] server.ZooKeeperServer: Server environment:java.home=/usr/java/jdk1.8.0_05/jre
2014-07-14 09:20:23,841 INFO [main] server.ZooKeeperServer: Server environment:java.class.path=/data/2/hbase/bin/../conf:/usr/java/jdk1.8.0_05/lib/tools.jar:/data/2/hbase/bin/..:/data/2/hbase/bin/../lib/activation-1.1.jar:/data/2/hbase/bin/../lib/asm-3.1.jar:/data/2/hbase/bin/../lib/commons-beanutils-1.7.0.jar:/data/2/hbase/bin/../lib/commons-beanutils-core-1.8.0.jar:/data/2/hbase/bin/../lib/commons-cli-1.2.jar:/data/2/hbase/bin/../lib/commons-codec-1.7.jar:/data/2/hbase/bin/../lib/commons-collections-3.2.1.jar:/data/2/hbase/bin/../lib/commons-configuration-1.6.jar:/data/2/hbase/bin/../lib/commons-digester-1.8.jar:/data/2/hbase/bin/../lib/commons-el-1.0.jar:/data/2/hbase/bin/../lib/commons-httpclient-3.1.jar:/data/2/hbase/bin/../lib/commons-io-2.4.jar:/data/2/hbase/bin/../lib/commons-lang-2.6.jar:/data/2/hbase/bin/../lib/commons-logging-1.1.1.jar:/data/2/hbase/bin/../lib/commons-math-2.1.jar:/data/2/hbase/bin/../lib/commons-net-1.4.1.jar:/data/2/hbase/bin/../lib/findbugs-annotations-1.3.9-1.jar:/data/2/hbase/bin/../lib/guava-12.0.1.jar:/data/2/hbase/bin/../lib/hadoop-core-1.2.1.jar:/data/2/hbase/bin/../lib/hamcrest-core-1.3.jar:/data/2/hbase/bin/../lib/hbase-client-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-common-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-common-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-examples-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-hadoop1-compat-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-hadoop-compat-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-it-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-it-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-prefix-tree-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-protocol-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-server-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-server-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-shell-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-testing-util-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-thrift-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/high-scale-lib-1.1.1.jar:/data/2/hbase/bin/../lib/htrace-core-2.04.jar:/data/2/hbase/bin/../lib/httpclient-4.1.3.jar:/data/2/hbase/bin/../lib/httpcore-4.1.3.jar:/data/2/hbase/bin/../lib/jackson-core-asl-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-jaxrs-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-mapper-asl-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-xc-1.8.8.jar:/data/2/hbase/bin/../lib/jamon-runtime-2.3.1.jar:/data/2/hbase/bin/../lib/jasper-compiler-5.5.23.jar:/data/2/hbase/bin/../lib/jasper-runtime-5.5.23.jar:/data/2/hbase/bin/../lib/jaxb-api-2.2.2.jar:/data/2/hbase/bin/../lib/jaxb-impl-2.2.3-1.jar:/data/2/hbase/bin/../lib/jersey-core-1.8.jar:/data/2/hbase/bin/../lib/jersey-json-1.8.jar:/data/2/hbase/bin/../lib/jersey-server-1.8.jar:/data/2/hbase/bin/../lib/jettison-1.3.1.jar:/data/2/hbase/bin/../lib/jetty-6.1.26.jar:/data/2/hbase/bin/../lib/jetty-sslengine-6.1.26.jar:/data/2/hbase/bin/../lib/jetty-util-6.1.26.jar:/data/2/hbase/bin/../lib/jruby-complete-1.6.8.jar:/data/2/hbase/bin/../lib/jsp-2.1-6.1.14.jar:/data/2/hbase/bin/../lib/jsp-api-2.1-6.1.14.jar:/data/2/hbase/bin/../lib/jsr305-1.3.9.jar:/data/2/hbase/bin/../lib/junit-4.11.jar:/data/2/hbase/bin/../lib/libthrift-0.9.0.jar:/data/2/hbase/bin/../lib/log4j-1.2.17.jar:/data/2/hbase/bin/../lib/metrics-core-2.1.2.jar:/data/2/hbase/bin/../lib/netty-3.6.6.Final.jar:/data/2/hbase/bin/../lib/protobuf-java-2.5.0.jar:/data/2/hbase/bin/../lib/servlet-api-2.5-6.1.14.jar:/data/2/hbase/bin/../lib/slf4j-api-1.6.4.jar:/data/2/hbase/bin/../lib/slf4j-log4j12-1.6.4.jar:/data/2/hbase/bin/../lib/xmlenc-0.52.jar:/data/2/hbase/bin/../lib/zookeeper-3.4.6.jar:/root/hadoop/libexec/../conf:/usr/java/jdk1.8.0_05/lib/tools.jar:/root/hadoop/libexec/..:/root/hadoop/libexec/../hadoop-core-1.2.1.jar:/root/hadoop/libexec/../lib/asm-3.2.jar:/root/hadoop/libexec/../lib/aspectjrt-1.6.11.jar:/root/hadoop/libexec/../lib/aspectjtools-1.6.11.jar:/root/hadoop/libexec/../lib/commons-beanutils-1.7.0.jar:/root/hadoop/libexec/../lib/commons-beanutils-core-1.8.0.jar:/root/hadoop/libexec/../lib/commons-cli-1.2.jar:/root/hadoop/libexec/../lib/commons-codec-1.4.jar:/root/hadoop/libexec/../lib/commons-collections-3.2.1.jar:/root/hadoop/libexec/../lib/commons-configuration-1.6.jar:/root/hadoop/libexec/../lib/commons-daemon-1.0.1.jar:/root/hadoop/libexec/../lib/commons-digester-1.8.jar:/root/hadoop/libexec/../lib/commons-el-1.0.jar:/root/hadoop/libexec/../lib/commons-httpclient-3.0.1.jar:/root/hadoop/libexec/../lib/commons-io-2.1.jar:/root/hadoop/libexec/../lib/commons-lang-2.4.jar:/root/hadoop/libexec/../lib/commons-logging-1.1.1.jar:/root/hadoop/libexec/../lib/commons-logging-api-1.0.4.jar:/root/hadoop/libexec/../lib/commons-math-2.1.jar:/root/hadoop/libexec/../lib/commons-net-3.1.jar:/root/hadoop/libexec/../lib/core-3.1.1.jar:/root/hadoop/libexec/../lib/hadoop-capacity-scheduler-1.2.1.jar:/root/hadoop/libexec/../lib/hadoop-fairscheduler-1.2.1.jar:/root/hadoop/libexec/../lib/hadoop-thriftfs-1.2.1.jar:/root/hadoop/libexec/../lib/hsqldb-1.8.0.10.jar:/root/hadoop/libexec/../lib/jackson-core-asl-1.8.8.jar:/root/hadoop/libexec/../lib/jackson-mapper-asl-1.8.8.jar:/root/hadoop/libexec/../lib/jasper-compiler-5.5.12.jar:/root/hadoop/libexec/../lib/jasper-runtime-5.5.12.jar:/root/hadoop/libexec/../lib/jdeb-0.8.jar:/root/hadoop/libexec/../lib/jersey-core-1.8.jar:/root/hadoop/libexec/../lib/jersey-json-1.8.jar:/root/hadoop/libexec/../lib/jersey-server-1.8.jar:/root/hadoop/libexec/../lib/jets3t-0.6.1.jar:/root/hadoop/libexec/../lib/jetty-6.1.26.jar:/root/hadoop/libexec/../lib/jetty-util-6.1.26.jar:/root/hadoop/libexec/../lib/jsch-0.1.42.jar:/root/hadoop/libexec/../lib/junit-4.5.jar:/root/hadoop/libexec/../lib/kfs-0.2.2.jar:/root/hadoop/libexec/../lib/log4j-1.2.15.jar:/root/hadoop/libexec/../lib/mockito-all-1.8.5.jar:/root/hadoop/libexec/../lib/oro-2.0.8.jar:/root/hadoop/libexec/../lib/servlet-api-2.5-20081211.jar:/root/hadoop/libexec/../lib/slf4j-api-1.4.3.jar:/root/hadoop/libexec/../lib/slf4j-log4j12-1.4.3.jar:/root/hadoop/libexec/../lib/xmlenc-0.52.jar:/root/hadoop/libexec/../lib/jsp-2.1/jsp-2.1.jar:/root/hadoop/libexec/../lib/jsp-2.1/jsp-api-2.1.jar
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:java.library.path=/root/hadoop/libexec/../lib/native/Linux-amd64-64
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:java.io.tmpdir=/tmp
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:java.compiler=<NA>
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:os.name=Linux
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:os.arch=amd64
2014-07-14 09:20:23,842 INFO [main] server.ZooKeeperServer: Server environment:os.version=2.6.32-358.32.3.el6.x86_64
2014-07-14 09:20:23,843 INFO [main] server.ZooKeeperServer: Server environment:user.name=root
2014-07-14 09:20:23,843 INFO [main] server.ZooKeeperServer: Server environment:user.home=/root
2014-07-14 09:20:23,843 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/data/2/hbase
2014-07-14 09:20:23,884 INFO [main] server.ZooKeeperServer: Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /tmp/hbase-root/zookeeper/zookeeper_0/version-2 snapdir /tmp/hbase-root/zookeeper/zookeeper_0/version-2
2014-07-14 09:20:23,911 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2014-07-14 09:20:24,158 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:54635
2014-07-14 09:20:24,183 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxn: Processing stat command from /127.0.0.1:54635
2014-07-14 09:20:24,193 INFO [Thread-1] server.NIOServerCnxn: Stat command output
2014-07-14 09:20:24,196 INFO [Thread-1] server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:54635 (no session established for client)
2014-07-14 09:20:24,196 INFO [main] zookeeper.MiniZooKeeperCluster: Started MiniZK Cluster and connect 1 ZK server on client port: 2181
2014-07-14 09:20:24,395 DEBUG [main] master.HMaster: master/my-master-host.nam.nsroot.net/10.40.87.36:0 HConnection server-to-server retries=350
2014-07-14 09:20:24,789 INFO [main] ipc.RpcServer: master/my-master-host.nam.nsroot.net/10.40.87.36:0: started 10 reader(s).
2014-07-14 09:20:24,952 INFO [main] impl.MetricsConfig: loaded properties from hadoop-metrics2-hbase.properties
2014-07-14 09:20:24,973 INFO [main] impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
2014-07-14 09:20:24,975 INFO [main] impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2014-07-14 09:20:24,975 INFO [main] impl.MetricsSystemImpl: HBase metrics system started
2014-07-14 09:20:24,985 INFO [main] impl.MetricsSourceAdapter: MBean for source jvm registered.
2014-07-14 09:20:24,991 INFO [main] impl.MetricsSourceAdapter: MBean for source IPC,sub=IPC registered.
2014-07-14 09:20:25,174 INFO [main] impl.MetricsSourceAdapter: MBean for source ugi registered.
2014-07-14 09:20:25,475 INFO [main] master.HMaster: hbase.rootdir=hdfs://master:9000/data/2/hbase, hbase.cluster.distributed=false
2014-07-14 09:20:25,583 INFO [main] zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2014-07-14 09:20:25,583 INFO [main] zookeeper.ZooKeeper: Client environment:host.name=my-master-host.nam.nsroot.net
2014-07-14 09:20:25,584 INFO [main] zookeeper.ZooKeeper: Client environment:java.version=1.8.0_05
2014-07-14 09:20:25,584 INFO [main] zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
2014-07-14 09:20:25,584 INFO [main] zookeeper.ZooKeeper: Client environment:java.home=/usr/java/jdk1.8.0_05/jre
2014-07-14 09:20:25,584 INFO [main] zookeeper.ZooKeeper: Client environment:java.class.path=/data/2/hbase/bin/../conf:/usr/java/jdk1.8.0_05/lib/tools.jar:/data/2/hbase/bin/..:/data/2/hbase/bin/../lib/activation-1.1.jar:/data/2/hbase/bin/../lib/asm-3.1.jar:/data/2/hbase/bin/../lib/commons-beanutils-1.7.0.jar:/data/2/hbase/bin/../lib/commons-beanutils-core-1.8.0.jar:/data/2/hbase/bin/../lib/commons-cli-1.2.jar:/data/2/hbase/bin/../lib/commons-codec-1.7.jar:/data/2/hbase/bin/../lib/commons-collections-3.2.1.jar:/data/2/hbase/bin/../lib/commons-configuration-1.6.jar:/data/2/hbase/bin/../lib/commons-digester-1.8.jar:/data/2/hbase/bin/../lib/commons-el-1.0.jar:/data/2/hbase/bin/../lib/commons-httpclient-3.1.jar:/data/2/hbase/bin/../lib/commons-io-2.4.jar:/data/2/hbase/bin/../lib/commons-lang-2.6.jar:/data/2/hbase/bin/../lib/commons-logging-1.1.1.jar:/data/2/hbase/bin/../lib/commons-math-2.1.jar:/data/2/hbase/bin/../lib/commons-net-1.4.1.jar:/data/2/hbase/bin/../lib/findbugs-annotations-1.3.9-1.jar:/data/2/hbase/bin/../lib/guava-12.0.1.jar:/data/2/hbase/bin/../lib/hadoop-core-1.2.1.jar:/data/2/hbase/bin/../lib/hamcrest-core-1.3.jar:/data/2/hbase/bin/../lib/hbase-client-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-common-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-common-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-examples-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-hadoop1-compat-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-hadoop-compat-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-it-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-it-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-prefix-tree-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-protocol-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-server-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-server-0.98.3-hadoop1-tests.jar:/data/2/hbase/bin/../lib/hbase-shell-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-testing-util-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/hbase-thrift-0.98.3-hadoop1.jar:/data/2/hbase/bin/../lib/high-scale-lib-1.1.1.jar:/data/2/hbase/bin/../lib/htrace-core-2.04.jar:/data/2/hbase/bin/../lib/httpclient-4.1.3.jar:/data/2/hbase/bin/../lib/httpcore-4.1.3.jar:/data/2/hbase/bin/../lib/jackson-core-asl-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-jaxrs-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-mapper-asl-1.8.8.jar:/data/2/hbase/bin/../lib/jackson-xc-1.8.8.jar:/data/2/hbase/bin/../lib/jamon-runtime-2.3.1.jar:/data/2/hbase/bin/../lib/jasper-compiler-5.5.23.jar:/data/2/hbase/bin/../lib/jasper-runtime-5.5.23.jar:/data/2/hbase/bin/../lib/jaxb-api-2.2.2.jar:/data/2/hbase/bin/../lib/jaxb-impl-2.2.3-1.jar:/data/2/hbase/bin/../lib/jersey-core-1.8.jar:/data/2/hbase/bin/../lib/jersey-json-1.8.jar:/data/2/hbase/bin/../lib/jersey-server-1.8.jar:/data/2/hbase/bin/../lib/jettison-1.3.1.jar:/data/2/hbase/bin/../lib/jetty-6.1.26.jar:/data/2/hbase/bin/../lib/jetty-sslengine-6.1.26.jar:/data/2/hbase/bin/../lib/jetty-util-6.1.26.jar:/data/2/hbase/bin/../lib/jruby-complete-1.6.8.jar:/data/2/hbase/bin/../lib/jsp-2.1-6.1.14.jar:/data/2/hbase/bin/../lib/jsp-api-2.1-6.1.14.jar:/data/2/hbase/bin/../lib/jsr305-1.3.9.jar:/data/2/hbase/bin/../lib/junit-4.11.jar:/data/2/hbase/bin/../lib/libthrift-0.9.0.jar:/data/2/hbase/bin/../lib/log4j-1.2.17.jar:/data/2/hbase/bin/../lib/metrics-core-2.1.2.jar:/data/2/hbase/bin/../lib/netty-3.6.6.Final.jar:/data/2/hbase/bin/../lib/protobuf-java-2.5.0.jar:/data/2/hbase/bin/../lib/servlet-api-2.5-6.1.14.jar:/data/2/hbase/bin/../lib/slf4j-api-1.6.4.jar:/data/2/hbase/bin/../lib/slf4j-log4j12-1.6.4.jar:/data/2/hbase/bin/../lib/xmlenc-0.52.jar:/data/2/hbase/bin/../lib/zookeeper-3.4.6.jar:/root/hadoop/libexec/../conf:/usr/java/jdk1.8.0_05/lib/tools.jar:/root/hadoop/libexec/..:/root/hadoop/libexec/../hadoop-core-1.2.1.jar:/root/hadoop/libexec/../lib/asm-3.2.jar:/root/hadoop/libexec/../lib/aspectjrt-1.6.11.jar:/root/hadoop/libexec/../lib/aspectjtools-1.6.11.jar:/root/hadoop/libexec/../lib/commons-beanutils-1.7.0.jar:/root/hadoop/libexec/../lib/commons-beanutils-core-1.8.0.jar:/root/hadoop/libexec/../lib/commons-cli-1.2.jar:/root/hadoop/libexec/../lib/commons-codec-1.4.jar:/root/hadoop/libexec/../lib/commons-collections-3.2.1.jar:/root/hadoop/libexec/../lib/commons-configuration-1.6.jar:/root/hadoop/libexec/../lib/commons-daemon-1.0.1.jar:/root/hadoop/libexec/../lib/commons-digester-1.8.jar:/root/hadoop/libexec/../lib/commons-el-1.0.jar:/root/hadoop/libexec/../lib/commons-httpclient-3.0.1.jar:/root/hadoop/libexec/../lib/commons-io-2.1.jar:/root/hadoop/libexec/../lib/commons-lang-2.4.jar:/root/hadoop/libexec/../lib/commons-logging-1.1.1.jar:/root/hadoop/libexec/../lib/commons-logging-api-1.0.4.jar:/root/hadoop/libexec/../lib/commons-math-2.1.jar:/root/hadoop/libexec/../lib/commons-net-3.1.jar:/root/hadoop/libexec/../lib/core-3.1.1.jar:/root/hadoop/libexec/../lib/hadoop-capacity-scheduler-1.2.1.jar:/root/hadoop/libexec/../lib/hadoop-fairscheduler-1.2.1.jar:/root/hadoop/libexec/../lib/hadoop-thriftfs-1.2.1.jar:/root/hadoop/libexec/../lib/hsqldb-1.8.0.10.jar:/root/hadoop/libexec/../lib/jackson-core-asl-1.8.8.jar:/root/hadoop/libexec/../lib/jackson-mapper-asl-1.8.8.jar:/root/hadoop/libexec/../lib/jasper-compiler-5.5.12.jar:/root/hadoop/libexec/../lib/jasper-runtime-5.5.12.jar:/root/hadoop/libexec/../lib/jdeb-0.8.jar:/root/hadoop/libexec/../lib/jersey-core-1.8.jar:/root/hadoop/libexec/../lib/jersey-json-1.8.jar:/root/hadoop/libexec/../lib/jersey-server-1.8.jar:/root/hadoop/libexec/../lib/jets3t-0.6.1.jar:/root/hadoop/libexec/../lib/jetty-6.1.26.jar:/root/hadoop/libexec/../lib/jetty-util-6.1.26.jar:/root/hadoop/libexec/../lib/jsch-0.1.42.jar:/root/hadoop/libexec/../lib/junit-4.5.jar:/root/hadoop/libexec/../lib/kfs-0.2.2.jar:/root/hadoop/libexec/../lib/log4j-1.2.15.jar:/root/hadoop/libexec/../lib/mockito-all-1.8.5.jar:/root/hadoop/libexec/../lib/oro-2.0.8.jar:/root/hadoop/libexec/../lib/servlet-api-2.5-20081211.jar:/root/hadoop/libexec/../lib/slf4j-api-1.4.3.jar:/root/hadoop/libexec/../lib/slf4j-log4j12-1.4.3.jar:/root/hadoop/libexec/../lib/xmlenc-0.52.jar:/root/hadoop/libexec/../lib/jsp-2.1/jsp-2.1.jar:/root/hadoop/libexec/../lib/jsp-2.1/jsp-api-2.1.jar
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:java.library.path=/root/hadoop/libexec/../lib/native/Linux-amd64-64
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:os.name=Linux
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:os.arch=amd64
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:os.version=2.6.32-358.32.3.el6.x86_64
2014-07-14 09:20:25,585 INFO [main] zookeeper.ZooKeeper: Client environment:user.name=root
2014-07-14 09:20:25,586 INFO [main] zookeeper.ZooKeeper: Client environment:user.home=/root
2014-07-14 09:20:25,586 INFO [main] zookeeper.ZooKeeper: Client environment:user.dir=/data/2/hbase
2014-07-14 09:20:25,588 INFO [main] zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=10000 watcher=master:53468, quorum=localhost:2181, baseZNode=/hbase
2014-07-14 09:20:25,623 INFO [main] zookeeper.RecoverableZooKeeper: Process identifier=master:53468 connecting to ZooKeeper ensemble=localhost:2181
2014-07-14 09:20:25,626 INFO [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2014-07-14 09:20:25,627 INFO [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
2014-07-14 09:20:25,627 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxnFactory: Accepted socket connection from /0:0:0:0:0:0:0:1:50738
2014-07-14 09:20:25,631 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.ZooKeeperServer: Client attempting to establish new session at /0:0:0:0:0:0:0:1:50738
2014-07-14 09:20:25,633 INFO [SyncThread:0] persistence.FileTxnLog: Creating new log file: log.3
2014-07-14 09:20:25,660 INFO [SyncThread:0] server.ZooKeeperServer: Established session 0x147350805990000 with negotiated timeout 10000 for client /0:0:0:0:0:0:0:1:50738
2014-07-14 09:20:25,660 INFO [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x147350805990000, negotiated timeout = 10000
2014-07-14 09:20:25,741 INFO [RpcServer.listener,port=53468] ipc.RpcServer: RpcServer.listener,port=53468: starting
2014-07-14 09:20:25,741 INFO [RpcServer.responder] ipc.RpcServer: RpcServer.responder: starting
2014-07-14 09:20:25,756 INFO [main] impl.MetricsSourceAdapter: MBean for source Master,sub=Server registered.
2014-07-14 09:20:25,894 DEBUG [main] regionserver.HRegionServer: regionserver/my-master-host.nam.nsroot.net/10.40.87.36:0 HConnection server-to-server retries=350
2014-07-14 09:20:26,218 INFO [main] ipc.RpcServer: regionserver/my-master-host.nam.nsroot.net/10.40.87.36:0: started 10 reader(s).
2014-07-14 09:20:26,236 INFO [main] hfile.CacheConfig: Allocating LruBlockCache with maximum size 386.7m
2014-07-14 09:20:26,380 INFO [main] mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2014-07-14 09:20:26,493 INFO [main] http.HttpServer: Added global filtersafety (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2014-07-14 09:20:26,509 INFO [main] http.HttpServer: Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 0
2014-07-14 09:20:26,510 INFO [main] http.HttpServer: listener.getLocalPort() returned 48548 webServer.getConnectors()[0].getLocalPort() returned 48548
2014-07-14 09:20:26,510 INFO [main] http.HttpServer: Jetty bound to port 48548
2014-07-14 09:20:26,510 INFO [main] mortbay.log: jetty-6.1.26
[root@my-master-host hbase]#
[root@my-master-host hbase]#
[root@my-master-host hbase]# jps
16240 HMaster
14258 TaskTracker
16595 Jps
14595 DataNode
[root@my-master-host hbase]# hbase shell
HBase Shell; enter ‘help<RETURN>’ for list of supported commands.
Type “exit<RETURN>” to leave the HBase Shell
Version 0.98.3-hadoop1, rd5e65a9144e315bb0a964e7730871af32f5018d5, Sat May 31 19:34:57 PDT 2014
hbase(main):001:0>
hbase(main):016:0> create ‘test’ , ‘cf’
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/2/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
0 row(s) in 3.1070 seconds
=> Hbase::Table – test
hbase(main):017:0> put ‘test’ , ‘r1’, ‘cf:c1’ , ‘v1’
0 row(s) in 0.3730 seconds
hbase(main):019:0>
hbase(main):020:0* put ‘test’ , ‘r12’, ‘cf:c1’ , ‘v12’
0 row(s) in 0.0360 seconds
hbase(main):021:0>
hbase(main):022:0* scan ‘test’
ROW COLUMN+CELL
r1 column=cf:c1, timestamp=1405346681609, value=v1
r12 column=cf:c1, timestamp=1405346713843, value=v12
2 row(s) in 0.0960 seconds
hbase(main):023:0>
hbase(main):024:0* get ‘test’ , ‘r12’
COLUMN CELL
cf:c1 timestamp=1405346713843, value=v12
1 row(s) in 0.0470 seconds
hbase(main):025:0> put ‘test’ , ‘r2’, ‘cf:c1’ , ‘v2’
0 row(s) in 0.0300 seconds
hbase(main):028:0> put ‘test’ , ‘r3’, ‘cf:c1’ , ‘v3’
0 row(s) in 0.0140 seconds
hbase(main):029:0> put ‘test’ , ‘r4’, ‘cf:c1’ , ‘v4’
0 row(s) in 0.0110 seconds
hbase(main):030:0> put ‘test’ , ‘r5’, ‘cf:c1’ , ‘v5’
0 row(s) in 0.0110 seconds
hbase(main):031:0> put ‘test’ , ‘r6’, ‘cf:c1’ , ‘v6’
0 row(s) in 0.0120 seconds
hbase(main):032:0> put ‘test’ , ‘r7’, ‘cf:c1’ , ‘v7’
0 row(s) in 0.0130 seconds
hbase(main):033:0> put ‘test’ , ‘r8’, ‘cf:c1’ , ‘v8’
0 row(s) in 0.0190 seconds
hbase(main):034:0> put ‘test’ , ‘r9’, ‘cf:c1’ , ‘v9’
0 row(s) in 0.0100 seconds
hbase(main):035:0> put ‘test’ , ‘r10’, ‘cf:c1’ , ‘v10’
0 row(s) in 0.0110 seconds
hbase(main):036:0> put ‘test’ , ‘r11’, ‘cf:c1’ , ‘v11’
0 row(s) in 0.0250 seconds
hbase(main):037:0>
hbase(main):038:0* scan ‘test’
ROW COLUMN+CELL
r1 column=cf:c1, timestamp=1405346681609, value=v1
r10 column=cf:c1, timestamp=1405346889003, value=v10
r11 column=cf:c1, timestamp=1405346890059, value=v11
r12 column=cf:c1, timestamp=1405346713843, value=v12
r2 column=cf:c1, timestamp=1405346888393, value=v2
r3 column=cf:c1, timestamp=1405346888525, value=v3
r4 column=cf:c1, timestamp=1405346888586, value=v4
r5 column=cf:c1, timestamp=1405346888644, value=v5
r6 column=cf:c1, timestamp=1405346888700, value=v6
r7 column=cf:c1, timestamp=1405346888761, value=v7
r8 column=cf:c1, timestamp=1405346888816, value=v8
r9 column=cf:c1, timestamp=1405346888936, value=v9
12 row(s) in 0.0830 seconds
hbase(main):039:0>
hbase(main):040:0* get ‘test’ , ‘r12’
COLUMN CELL
cf:c1 timestamp=1405346713843, value=v12
1 row(s) in 0.0430 seconds
hbase(main):041:0>
hbase(main):001:0> delete ‘test’,’r3′,’cf:c1′
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/2/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
0 row(s) in 1.3520 seconds
hbase(main):002:0> scan ‘test’
ROW COLUMN+CELL
r1 column=cf:c1, timestamp=1405346681609, value=v1
r10 column=cf:c1, timestamp=1405346889003, value=v10
r11 column=cf:c1, timestamp=1405346890059, value=v11
r12 column=cf:c1, timestamp=1405346713843, value=v12
r2 column=cf:c1, timestamp=1405346888393, value=v2
r4 column=cf:c1, timestamp=1405346888586, value=v4
r5 column=cf:c1, timestamp=1405346888644, value=v5
r6 column=cf:c1, timestamp=1405346888700, value=v6
r7 column=cf:c1, timestamp=1405346888761, value=v7
r8 column=cf:c1, timestamp=1405346888816, value=v8
r9 column=cf:c1, timestamp=1405346888936, value=v9
11 row(s) in 0.1600 seconds
hbase(main):003:0>
hbase(main):004:0* get ‘test’,’r3′,’cf:c1′
COLUMN CELL
0 row(s) in 0.0320 seconds
hbase(main):005:0>