Hadoop&HBase
cleverwyq
没啥好说的
展开
-
PleaseHoldException
我在ubuntu 11.10下按照官方文档的步骤装了hbase, 启动shell很正常, 但是调用create 'test','cf'的时候报了一堆exception, 其中最主要的是PleaseHoldException, 'master is initializing ' 等等, 解决办法是网上找到的,看一下/etc/hosts 把127.0.1.1 改成 127.0.0.1转载 2012-12-02 12:59:08 · 1142 阅读 · 0 评论 -
HBase源代码调试(4)
protected class Connection extends Thread 今天学习了一下RPC架构When new a HTable object, it will create a special ServerNameServerName("HBCKServerName", -1, -1)///** HBCK special code name used a原创 2012-12-29 17:39:55 · 1029 阅读 · 0 评论 -
HBase源代码调试(5)
When create a new HTable("testwy")and 'testwy' is not exists in current .META.org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in .META. for table: testwy, row=testwy,,999999999原创 2013-01-01 15:09:10 · 2501 阅读 · 1 评论 -
HBase shell
启动hbase以后, 执行./hbase shell 进入client程序create 'test','cf1'put 'test', 'row1', 'cf1:a', 'value1'/tmp/hbase-root/hbase/test/9995444xxxxxafe/cf1/ 这个时候hbase.rootdir指定的目录下面没有文件生成,即使退出shell也没有,原创 2012-12-29 09:42:31 · 635 阅读 · 0 评论 -
Proxy学习
import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.lang.reflect.InvocationHandler;interface Greet{ void sayHello(String name); void goodBye();}clas转载 2012-12-29 08:41:59 · 744 阅读 · 0 评论 -
java里面的Annotation的使用
eclipse里面建工程, 三个source文件package com.sap;import java.lang.annotation.*;@Target(ElementType.PACKAGE)@Retention(RetentionPolicy.RUNTIME)public @interface PkgAnnotation { String value(); St原创 2012-12-14 07:49:08 · 626 阅读 · 0 评论 -
HBase源代码调试(3)
HBase里面一个很重要的数据结构hbase.client.Result其中有一个private KeyValue[] kvs =nullKeyValue wraps a byte array and takes offsets and lengths into passed array at where to start interpreting the content as Key原创 2012-12-26 22:36:21 · 780 阅读 · 0 评论 -
HBase源代码调试(2)
在>书中见到过这样一段The most common filesystem used with HBase is HDFS. But you are not locked intoHDFS because the FileSystem used by HBase has a pluggable architecture and can beused to replace HDFS原创 2012-12-22 09:47:34 · 1809 阅读 · 0 评论 -
编译HBase Source
有时候调试代码发现class 文件和 source不匹配, 解决办法是从apache重新下载最新的source code,放到hbase对应的目录下面,自己生成class文件, 而不是用从hadoop的binary里面找到的jar包例如org.apache.commons.logging.*http://commons.apache.org/logging/down原创 2012-12-12 23:24:23 · 1206 阅读 · 0 评论 -
ubuntu下Eclipse的tooltip 背景色调整
eclipse在ubuntu下面没有提供对于tooltip的背景色的设置, 而默认的背景色是黑色的,字体也是很深的灰色,调试的时候,鼠标移到某个变量上,根本看不清弹出来的字网上查了一下,说tooltip是跟着ubuntu的theme走的,而对于theme颜色的设置,是在$path/$theme/gtk-3.0/gtk.css$path/$theme/gtk-3.0/se原创 2012-12-11 22:06:54 · 1592 阅读 · 0 评论 -
HBase源代码调试(1)
搭好环境,终于可以开始调试跟踪代码了.第一个问题:VersionInfo.java里面 public static String getVersion() { return version != null ? version.version() : "Unknown"; }之类的函数, version总是null, 导致版本不匹配,没怎么走几步就退出了原创 2012-12-14 07:55:36 · 863 阅读 · 0 评论 -
本地调试HBase源码
1. 配置Eclipse M2_REPO ,作为一个Classpath Variable , Preference->Java->build Path->Classpath Variables2 安装Eclipse SVN Repositories, 在eclipse 安装,ULR是 http://subclipse.tigris.org/update_1.6.x (1.8也有原创 2012-12-08 13:37:32 · 2860 阅读 · 0 评论 -
Bash script学习的一写memo
IO Redirectionjava myprog > log 2>&1 #其中myprog中有System.out.println ... System.err.println...这个命令就把STDOUT (1)输出到log 文件中, 对于STDERROR (2 ), 采用和(1)一样的方式,于是error也写入log中 ---------------------原创 2012-12-07 14:19:56 · 849 阅读 · 0 评论 -
一个Eclipse 插件,方便查找某个class所在的jar包
http://www.blogjava.net/Files/xmatthew/com.danikenan.eclipse.classlocator_1.0.8.zip 解压到eclipse的plugin目录,直接启动eclipse Window->Preference->Jar/Class Locator , 设置路径,工具栏上点这个按钮,就可以搜索了,挺好用的原创 2012-12-04 16:27:07 · 8147 阅读 · 1 评论 -
HBase源代码调试(6)-HRegion的启动
前提:debug configurations里面MainClass : HRegionArguments: .META.-----------------------------------------------第一步构造HLog 对象,构造函数中首先在/tmp/hbase-user下创建 hlog.META.1357446070560文件夹, 数字串是hregio原创 2013-01-06 14:24:53 · 876 阅读 · 0 评论