hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "大鱼" <410557...@qq.com>
Subject 回复:RE: 回复:RE: bulkload promble
Date Thu, 08 Jan 2015 09:06:31 GMT
Thank you again.




------------------ 原始邮件 ------------------
发件人: "ashish singhi";<ashish.singhi@huawei.com>;
发送时间: 2015年1月8日(星期四) 下午4:36
收件人: "user@hbase.apache.org"<user@hbase.apache.org>; 

主题: RE: 回复:RE: bulkload promble



Since you are using hadoop script to run completebulkload it is required.

If you try like below then it is not required.
bin/hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles /xiaoming/loghouseip loghouse

-Ashish

-----Original Message-----
From: aafri [mailto:wozhuibang111@qq.com] 
Sent: 08 January 2015 13:26
To: user
Subject: 回复:RE: bulkload promble

Yes,it is runing good. Thank you,Huaweier.


It looks like I miss this env configuration:HADOOP_CLASSPATH‍.  
does this configuration is ‍necessary when use bulkload?‍








------------------ 原始邮件 ------------------
发件人: "ashish singhi";<ashish.singhi@huawei.com>;
发送时间: 2015年1月8日(星期四) 下午3:26
收件人: "user@hbase.apache.org"<user@hbase.apache.org>; 

主题: RE: bulkload promble



Can you try running it like below.

HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath` ${HADOOP_HOME}/bin/hadoop jar ${HBASE_HOME}/lib/
hbase-server-0.98.8-hadoop2.jar completebulkload /xiaoming/loghouseip loghouse

-Ashish
-----Original Message-----
From: aafri [mailto:wozhuibang111@qq.com] 
Sent: 08 January 2015 12:31
To: user
Subject: bulkload promble

I just use bulkload to load data into hbase table loghouse.
I have make hfile in the path of hdfs:/xiaoming/loghouseip‍ I exe this command:
hadoop jar $HBASE_HOME/lib/hbase-server-0.98.8-hadoop2.jar completebulkload /xiaoming/loghouseip
loghouse‍ then retuen:


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
        at java.lang.Class.getMethod0(Class.java:2813)
        at java.lang.Class.getMethod(Class.java:1663)
        at org.apache.hadoop.util.ProgramDriver$ProgramDescription.<init>(ProgramDriver.java:60)
        at org.apache.hadoop.util.ProgramDriver.addClass(ProgramDriver.java:103)
        at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.filter.Filter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 12 more‍



The CLASSPATH i have set on linux .


what's wrong?
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message