Replacing a full Row content in HBase

2014-11-20 Thread Sznajder ForMailingList
Hi, I would like to **replace** the whole content of a Row in HBase by some new content. However: * Simple *put* call just replaces the cells in the new put row. * I thought to call Delete and then Put, and I get some very unpredictable results... Is there a solution for replacing the whole

Re: Replacing a full Row content in HBase

2014-11-20 Thread Sznajder ForMailingList
in a single put. If you don't, you can use a delete family marker to clear visibility of an entire family. I think you'll need to do this separately from writing the new values. On Thu, Nov 20, 2014 at 9:17 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi, I would like to **replace

Re: Replacing a full Row content in HBase

2014-11-20 Thread Sznajder ForMailingList
); admin.deleteTable(NAME); } } On Thu, Nov 20, 2014 at 1:48 PM, Nick Dimiduk ndimi...@gmail.com wrote: Attachements are filtered from the list. Please include a link if you'd like to share some attachment. On Thu, Nov 20, 2014 at 11:46 AM, Sznajder ForMailingList bs4mailingl

Re: Replacing a full Row content in HBase

2014-11-20 Thread Sznajder ForMailingList
(). On Thu, Nov 20, 2014 at 3:29 PM, Nick Dimiduk ndimi...@gmail.com wrote: Are you flushing the edits so that they're actually written to the server before you send the gets? On Thu, Nov 20, 2014 at 2:43 PM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Sure Here

From X to Y and vice-versa

2014-11-09 Thread Sznajder ForMailingList
Hi I try to build a right schema for my table. I have tuples {X_i, Y_j} and I have to answer to two kinds of queries: Y_j getYvalue(X_i) : given a value X_i, return me the corresponding value Y_j X_i getYvalue(Y_j) : given a value Y_j, return me the corresponding value X_i The easiest way

Filter on Values of Cells

2014-11-03 Thread Sznajder ForMailingList
Hi I would like to filtering rows that contain specific value at specific {family, qualifier}. For example, if my table contains the following lines, the cells are of the form {fam, qual, val} Row 1 : {fam-1, col0, val1}, {fam-1, col1, val11} Row 2 : {fam-1, col0, val11}, {fam-1, col1, val21}

Re: Filter on Values of Cells

2014-11-03 Thread Sznajder ForMailingList
!! Thanks a lot! Benjamin On Mon, Nov 3, 2014 at 5:31 PM, Ted Yu yuzhih...@gmail.com wrote: Would SingleColumnValueFilter serve your need ? Cheers On Mon, Nov 3, 2014 at 7:28 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi I would like to filtering rows

Reducing the logging info on Eclipse console

2014-10-29 Thread Sznajder ForMailingList
Hi, When running Hbase client from my eclipse IDE, I get a very large amount of log info on the console. For example: [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT [main] INFO org.apache.zookeeper.ZooKeeper - Client

Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Sznajder ForMailingList
Hi I want to connect from my windows laptop to an installed HBASE When running the code , I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils at org.apache.hadoop.hbase.HConstants.clinit(HConstants.java:907) at

Re: Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Sznajder ForMailingList
-lang.version Cheers On Mon, Oct 27, 2014 at 7:03 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi I want to connect from my windows laptop to an installed HBASE When running the code , I get the following error: java.lang.NoClassDefFoundError: org/apache/commons

Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
Hi, I am running from my Eclipse on Windows (using Java 1.6) a simple API call to Hbase 0.98.5 installed on a remote cluster. The call admin = new HBaseAdmin(conf); passes.. However, the next line admin.listTables(); is *stuck* forever. Do you have any hints?! Best regards Benjamin

Re: Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
Yes. my apologize, I did not mention it... Benjamin On Mon, Oct 27, 2014 at 5:55 PM, Ted Yu yuzhih...@gmail.com wrote: Have you solved the problem reported in this thread ? http://search-hadoop.com/m/DHED4sVPwz1 Cheers On Mon, Oct 27, 2014 at 7:54 AM, Sznajder ForMailingList

Re: Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
By the way, Ted, when I am adding hbase-site.xml to the classpath, I do not see it changes something.. Benjamin On Mon, Oct 27, 2014 at 6:24 PM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Yes. my apologize, I did not mention it... Benjamin On Mon, Oct 27, 2014 at 5:55 PM, Ted

Connecting via API to a remote HBASE installation

2014-10-26 Thread Sznajder ForMailingList
Hi I am running some code from windows (java) and I would like to connect to the HBASE 0.98.5 installed on a remote cluster (pseudodistributed mode) The UI gives me the following info: Software AttributesAttribute NameValueDescriptionHBase Version0.98.5-hadoop2, rUnknownHBase version and

Similar Column names in creation of HBase table

2014-10-23 Thread Sznajder ForMailingList
Hi Is it allowed to provide two similar family names during the creation of an HBase table? I was expecting that it is forbidden, **but** this call does not throw any exception String[] families = {cf, cf}; HTableDescriptor desc = new HTableDescriptor(name); for (String

Running easily HBASE on windows

2014-10-05 Thread Sznajder ForMailingList
Hi, What would you advise for easily (and rapidly...) running HBASE on windows, please? From what I saw in the different forums, running the last Hbase version is quite tricky on windows? Best regards Benjamin

count Table in the shell with strange results

2013-11-13 Thread Sznajder ForMailingList
Hi I write to a LOG file the line 'processed' each time, I am entering a new unique object into my table . When I am counting the number of 'processed' in my LOG , I find a number superior to the number of lines returned by the command 'count' of the shell. Secondly, it can occur that calling

Re: '$HADOOP_HOME/bin/hadoop jar hbase.jar rowcount

2013-11-12 Thread Sznajder ForMailingList
not do anything Benjamin On Wed, Oct 30, 2013 at 3:55 PM, Ted Yu yuzhih...@gmail.com wrote: See http://hbase.apache.org/book.html#trouble.mapreduce.local for sample command line. Cheers On Wed, Oct 30, 2013 at 3:36 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi I

'$HADOOP_HOME/bin/hadoop jar hbase.jar rowcount

2013-10-30 Thread Sznajder ForMailingList
Hi I tried to run the hadoop rowcount job First at all, I just notice that the command is rowcounter and not rowcount. secondly, I got the following error when running it: hadoop jar hbase-0.90.4.jar rowcounter ProcessedUrlsDataBase Exception in thread main java.lang.NoClassDefFoundError:

Re: Shell on windows

2013-10-08 Thread Sznajder ForMailingList
there. Enis On Wed, Oct 2, 2013 at 7:03 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi I am running HBASE on windows. However, a strange behavior when launching the shell... We do not see the prompt (as we see it in linux). It is not so disturbing, but just asking

Shell on windows

2013-10-02 Thread Sznajder ForMailingList
Hi I am running HBASE on windows. However, a strange behavior when launching the shell... We do not see the prompt (as we see it in linux). It is not so disturbing, but just asking Benjamin

Connecting to a remote distributed HBASE env.

2013-09-15 Thread Sznajder ForMailingList
Hi I defined a distributed HBASE environment on a cluster of three servers server1 server2 server3 I would like to run a program using this HBASE from a fourth server : server4 I am connecting to HBASE using GORA. However, I do not succeed to tell the program to connect by remote to the hbase

Re: Connecting to a remote distributed HBASE env.

2013-09-15 Thread Sznajder ForMailingList
I am using Hbase 0.90.4 Benjamin On Sun, Sep 15, 2013 at 4:31 PM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi When I am connecting from server4 via my java code: (again, hbase runs on server1, server2 and server3) I am getting the following: [java] Exception

Re: Connecting to a remote distributed HBASE env.

2013-09-15 Thread Sznajder ForMailingList
http://hbase.apache.org/book.html#zookeeper ? What HBase version are you using ? Can you pastebin the error(s) you encountered ? Thanks On Sep 15, 2013, at 1:26 AM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi I defined a distributed HBASE environment

Re: Connecting to a remote distributed HBASE env.

2013-09-15 Thread Sznajder ForMailingList
is displayed correctly? Are you able to use the shell too? 2013/9/15 Sznajder ForMailingList bs4mailingl...@gmail.com I am using Hbase 0.90.4 Benjamin On Sun, Sep 15, 2013 at 4:31 PM, Sznajder ForMailingList bs4mailingl...@gmail.com wrote: Hi When I am connecting from

Two simple questions about distributed mode

2013-09-11 Thread Sznajder ForMailingList
Hi Here are two simple questions: Let's suppose I have three servers in my cluster serv1, serv2, and serv3. Question 1 : Must I add the bthree/b servers in the conf/regionservers file? Question 2 : Must I launch bin/start-hbase.sh file on each one of the servers or is it sufficient to launch

HBASE and Zookeeper in parallel

2013-09-10 Thread Sznajder ForMailingList
Hi I am writing a program that makes use of a zookeeper server (I used the queue implementation of Curator) In addition, the program has access to HBASE Database via Gora. Hbase uses Zookeeper My question is: Does HBASE use the same zookeeper server that I am using from my queue

Two concurrent programs using the same hbase

2013-09-10 Thread Sznajder ForMailingList
Hi I installed hbase on a gpfs directory and lanched it using bin/start-hbase.sh Two servers on this gpfs filesystem run a similar program. This program accesses the hbase via GORA call: this.dataStore = DataStoreFactory.getDataStore(Long.class, Pageview.class, new