Re: openjdk7 and hbase

2013-03-30 Thread Håvard Wahl Kongsgård
yes, it works but it's slower than sun java. On 30. mars 2013 23:11, "Jean-Marc Spaggiari" wrote: > I have also been able to run the entire test suite with JDK 1.7 (and > HBASE-8014). So even if it's not officially supported or recommanded, > it's working quite well. > > JM > > 2013/3/30 lars hof

Re: connecting Hbase using java

2013-03-30 Thread Ted Yu
Have you gone over the related section in HBase book which I mentioned ? >From the screen shot, you were missing HBase project which you can import through File -> Import, then existing project. Cheers On Sat, Mar 30, 2013 at 8:00 PM, Alok Singh Mahor wrote: > thank you Ted, Mohammad and Steph

Re: connecting Hbase using java

2013-03-30 Thread Alok Singh Mahor
thank you Ted, Mohammad and Stephen now I ahve switched to eclipse and following https://thinkasgeek.wordpress.com/2011/03/25/hbase-and-eclispe-ide-integration/#comment-29 but in this code I am getting warning that The constructor HBaseConfiguration() is deprecated and when I run this project as

Re: openjdk7 and hbase

2013-03-30 Thread Jean-Marc Spaggiari
I have also been able to run the entire test suite with JDK 1.7 (and HBASE-8014). So even if it's not officially supported or recommanded, it's working quite well. JM 2013/3/30 lars hofhansl : > On my private machine I only have (Open)Jdk7, I have not observed any issues. > > > -- Lars > > >

Re: openjdk7 and hbase

2013-03-30 Thread lars hofhansl
On my private machine I only have (Open)Jdk7, I have not observed any issues. -- Lars From: Alok Singh Mahor To: user@hbase.apache.org Sent: Saturday, March 30, 2013 11:38 AM Subject: openjdk7 and hbase Hi all, should I strictly use only oracle's java 6 onl

Re: openjdk7 and hbase

2013-03-30 Thread Ted Yu
The following JIRA should allow 0.94.7 to run on top of (Oracle) jdk7: HBASE-8014 Backport HBASE-6915 to 0.94 As for why openjdk isn't officially supported, there might be historical reasons. Cheers On Sat, Mar 30, 2013 at 11:52 AM, Tariq wrote: > Hello Alok, > > I think this is beca

Re: HBASE HA

2013-03-30 Thread Himanshu Vashishtha
Hey Azurry, I tried to answer your comments on the jira. Please have a look. Thanks, Himanshu On Fri, Mar 29, 2013 at 11:37 PM, Azuryy Yu wrote: > but I dont think HBASE-8211 is really support HDFS-HA, I have comments on > it. > On Mar 29, 2013 11:08 PM, "Ted Yu" wrote: > > > There is on-goi

Re: openjdk7 and hbase

2013-03-30 Thread Tariq
Hello Alok, I think this is because sun java is the industry standard when it comes to java. Most widely used and accepted by all. And it is more stable and fixed. As far as problems are concerned, I had faced some problem while using hadoop and hbase with java 7..and it had come when

openjdk7 and hbase

2013-03-30 Thread Alok Singh Mahor
Hi all, should I strictly use only oracle's java 6 only? will I really face problem if I am using openjdk7? if then then what type of problem I will face? is/are anyone using openjdk? or tried that ? and why Hbase is built on top of sun's java ? I guess openjdk exist from long back. should hbase n

Re: Understanding scan behaviour

2013-03-30 Thread Ted Yu
See javadoc of Scan: * @param stopRow row to stop scanner before (exclusive) */ public Scan(byte [] startRow, byte [] stopRow) { On Sat, Mar 30, 2013 at 8:25 AM, Mohit Anchlia wrote: > Thanks, that's a good point about last byte being max :) > > When I query 1234555..1234556 do I also

Re: connecting Hbase using java

2013-03-30 Thread Stephen Boesch
have you included the jar files under: CLASSPATH=$HADOOP_HOME/*:$HADOOP_HOME/lib/*:$HBASE_HOME/*:$HBASE_HOME/lib/*:$CLASSPATH cd $HBASE_HOME/src javac examples/mapreduce/org/apache/hadoop/hbase/mapreduce/IndexBuilder.java 2013/3/30 Alok Singh Mahor > Hi all, > I have set up Hbase in pseudo

Re: connecting Hbase using java

2013-03-30 Thread Mohammad Tariq
have you added the required jars?also, it's better to add zookeeper related props in the config file. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Sat, Mar 30, 2013 at 8:19 PM, Ted Yu wrote: > What packages were not accessible ? > > Most people use Eclipse for develop

Re: Understanding scan behaviour

2013-03-30 Thread Mohit Anchlia
Thanks, that's a good point about last byte being max :) When I query 1234555..1234556 do I also get row for 1234556 if one exist? On Sat, Mar 30, 2013 at 6:55 AM, Asaf Mesika wrote: > Yes. > Watch out for last byte being max > > > On Fri, Mar 29, 2013 at 7:31 PM, Mohit Anchlia >wrote: > > > T

Re: how to reduce zookeeper.out

2013-03-30 Thread Azuryy Yu
you can edit [zk_dir]/conf/log4j.properties, such as mine: log4j.rootLogger=INFO, DEBUG, ERROR # DEBUG log4j.appender.DEBUG=org.apache.log4j.DailyRollingFileAppender log4j.appender.DEBUG.Threshold=DEBUG log4j.appender.DEBUG.layout=org.apache.log4j.PatternLayout log4j.appender.DEBUG.layout.Convers

Re: 答复: how to reduce zookeeper.out

2013-03-30 Thread Jean-Marc Spaggiari
This is the kind of info I have on my ZK.out: 2013-03-30 10:54:33,605 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@213] - Accepted socket connection from /192.168.23.10:40812 2013-03-30 10:54:33,685 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKee

Re: how to reduce zookeeper.out

2013-03-30 Thread Azuryy Yu
I think your hbase cluster zk is managed by hbase. you didnt install zk separately. so you can find zk log under hbase log dir. On Mar 30, 2013 10:42 PM, "hua beatls" wrote: > Hi Kevin, > seems there is no rolling mechanizm for the zookeeper.out. > > > > > On Sat, Mar 30, 2013 at 10:31 PM, K

答复: how to reduce zookeeper.out

2013-03-30 Thread huaxiang
KEVIN, This file is usualy could be found under "bin" directory, that is "bin/zookeeper.out". -邮件原件- 发件人: Kevin O'dell [mailto:kevin.od...@cloudera.com] 发送时间: 2013年3月30日 22:47 收件人: user@hbase.apache.org 主题: Re: how to reduce zookeeper.out Hua, That is no fun. Another que

Re: connecting Hbase using java

2013-03-30 Thread Ted Yu
What packages were not accessible ? Most people use Eclipse for development. Take a look at 15.2.1.5 in http://hbase.apache.org/book.html#developing On Sat, Mar 30, 2013 at 7:02 AM, Alok Singh Mahor wrote: > Hi all, > I have set up Hbase in pseudo distributed mode. > I am using hadoop-1.1.2 hb

Re: how to reduce zookeeper.out

2013-03-30 Thread Kevin O'dell
Hua, That is no fun. Another question though, I just checked my clusters and I don't even have a zookeeper.out. What messages do you have filing this file up? On Sat, Mar 30, 2013 at 10:42 AM, hua beatls wrote: > Hi Kevin, > seems there is no rolling mechanizm for the zookeeper.out. >

Re: how to reduce zookeeper.out

2013-03-30 Thread hua beatls
Hi Kevin, seems there is no rolling mechanizm for the zookeeper.out. On Sat, Mar 30, 2013 at 10:31 PM, Kevin O'dell wrote: > Hi Hua, > > I believe(don't quote me) that you can use the rolling file appender to > set the files to a max size. I know HBase does this, but I am not sure > ab

Re: how to reduce zookeeper.out

2013-03-30 Thread hua beatls
can we just rm it , then touch a new none. Best R. beatls On Sat, Mar 30, 2013 at 10:22 PM, Jean-Marc Spaggiari < jean-m...@spaggiari.org> wrote: > Hi, > > If you are in production you should have more than 1 ZK server, right? > Like, 3 or more? > > Then you can just shut one down, the others

Re: how to reduce zookeeper.out

2013-03-30 Thread Kevin O'dell
Hi Hua, I believe(don't quote me) that you can use the rolling file appender to set the files to a max size. I know HBase does this, but I am not sure about ZK. On Sat, Mar 30, 2013 at 10:22 AM, Jean-Marc Spaggiari < jean-m...@spaggiari.org> wrote: > Hi, > > If you are in production you shoul

Re: how to reduce zookeeper.out

2013-03-30 Thread Jean-Marc Spaggiari
Hi, If you are in production you should have more than 1 ZK server, right? Like, 3 or more? Then you can just shut one down, the others mike elect a new leader. Then you clear the zookeeper.out file, and start it back? JM 2013/3/30 hua beatls : > Hi, > zookeeper.out is too large, how to red

connecting Hbase using java

2013-03-30 Thread Alok Singh Mahor
Hi all, I have set up Hbase in pseudo distributed mode. I am using hadoop-1.1.2 hbase-0.94.6 and setup files are in Home directory. content of ~/hbase-0.94.6/conf/hbase-site.xml is hbase.cluster.distributed true hbase.rootdir hdfs://localhost:9000/hbase df

Re: Understanding scan behaviour

2013-03-30 Thread Asaf Mesika
Yes. Watch out for last byte being max On Fri, Mar 29, 2013 at 7:31 PM, Mohit Anchlia wrote: > Thanks everyone, it's really helpful. I'll change my prefix filter to end > row. Is it necessary to increment the last byte? So if I have hash of > 1234555 my end key should be 1234556? > > > On Thu, M

how to reduce zookeeper.out

2013-03-30 Thread hua beatls
Hi, zookeeper.out is too large, how to reduce this file? it is a online system. Best R. beatls