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

Re: Endpoint and Observer work together?

2013-10-02 Thread rgaimari
Hi, I've created some demo code to show the problem. Here's the Observer: ... public class DemoObserver extends BaseRegionObserver { byte[] personFamily = Bytes.toBytes(Person); @Override public boolean postScannerNext( ObserverContextRegionCoprocessorEnvironment e,

Is loopback = bad news for hbase client?

2013-10-02 Thread Jay Vyas
Ive noticed that alltogether removing the 127* addresses from my /etc/hosts fixes my hbase configuration so that my client can create tables without failing and the hmaster initialies fully. Anyone else notice this ? -- Jay Vyas http://jayunit100.blogspot.com

Re: Is loopback = bad news for hbase client?

2013-10-02 Thread Matteo Bertozzi
I guess your problem was related to the 127.0.1.1, there's a note about that in the manual. http://hbase.apache.org/book.html#quickstart http://blog.devving.com/why-does-hbase-care-about-etchosts/ Matteo On Wed, Oct 2, 2013 at 4:20 PM, Jay Vyas jayunit...@gmail.com wrote: Ive noticed that

Re: Is loopback = bad news for hbase client?

2013-10-02 Thread Jay Vyas
no, iirc even with 127.0.0.1 i have seen this issue, but maybe i just havent distilled the error down enough? On Wed, Oct 2, 2013 at 11:23 AM, Matteo Bertozzi theo.berto...@gmail.comwrote: I guess your problem was related to the 127.0.1.1, there's a note about that in the manual.

HBase stucked because HDFS fails to replicate blocks

2013-10-02 Thread Ionut Ignatescu
Hi, I have a HadoopHBase cluster, that runs Hadoop 1.1.2 and HBase 0.94.7. I notice an issue that stops normal cluster running. My use case: I have several MR jobs that read data from one HBase table in map phase and write data in 3 different tables during the reduce phase. I create table handler

Re: Row Filters using BitComparator

2013-10-02 Thread abhinavpundir
Hello takishi Thnks fr the link. I have already looked that link. It doesnt shows how to use bit comparators works with row filters . Moroever i have tried using rowfilters with bitcomparators . In that case you have specify exactly the full fields of rows which i dnt want to do. It works with

Re: Endpoint and Observer work together?

2013-10-02 Thread Ted Yu
bq.RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) getEnvironment(); RegionCoprocessorEnvironment has the following method: /** @return the region associated with this coprocessor */ public HRegion getRegion(); And HRegion has this method: public

Re: Endpoint and Observer work together?

2013-10-02 Thread Gary Helmling
Your DemoObserver is not being invoked because DemoEndpoint is opening a scanner directly on the region: RegionCoprocessorEnvironment env =(RegionCoprocessorEnvironment)getEnvironment(); InternalScanner scanner = env.getRegion().getScanner(scan); The RegionObserver.postScannerNext() hook

Batch method

2013-10-02 Thread Renato Marroquín Mogrovejo
Hi all, I am using the batch method[1] and it states that I will get an array of objects containing possibly null values. So my question is if there is a way on knowing which operation was the one that failed from this null value? Or any other way in which I could check for the failing operation?

Re: Batch method

2013-10-02 Thread Ted Yu
Looks like this is related: HBASE-8112 Deprecate HTable#batch(final List? extends Row) On Wed, Oct 2, 2013 at 3:35 PM, Renato Marroquín Mogrovejo renatoj.marroq...@gmail.com wrote: Hi all, I am using the batch method[1] and it states that I will get an array of objects containing possibly

Re: Batch method

2013-10-02 Thread Renato Marroquín Mogrovejo
Hi Ted, Thank you very much for answering! But I don't think HBASE-8112 is related to my question. I saw that the signature of the method changed in order to retrieve partial results. I am using HBase 0.94.10 so does this version will work like this? And anyway, my problem is to determine which

Re: Batch method

2013-10-02 Thread Ted Yu
How about this method ? http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html#batch(java.util.List, java.lang.Object[]) On Wed, Oct 2, 2013 at 3:57 PM, Renato Marroquín Mogrovejo renatoj.marroq...@gmail.com wrote: Hi Ted, Thank you very much for answering! But I don't

Re: Batch method

2013-10-02 Thread Renato Marroquín Mogrovejo
Yeah, I am using such method, but if I get a null in the Objects array, how do I know which operation failed? 2013/10/2 Ted Yu yuzhih...@gmail.com How about this method ? http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html#batch(java.util.List , java.lang.Object[])

Temp directory permission issue in LoadIncrementalHFiles

2013-10-02 Thread hardik doshi
Hello, We're using LoadIncrementalHFiles.doBulkLoad to upload HFiles to an hbase table in bulk programmatically. But at times, the HFiles are too big to fit in a single region. So, the doBulkLoad method splits and stores the parts in a _tmp directory. This _tmp directory has 755 as permission

Re: Batch method

2013-10-02 Thread Ted Yu
You can take a look at HConnectionManager#processBatchCallback(), starting line 1774 (0.94 branch). Here is the relevant code: if (!exceptions.isEmpty()) { throw new RetriesExhaustedWithDetailsException(exceptions, actions, addresses); } You should

Re: Batch method

2013-10-02 Thread lars hofhansl
Hi Renato, are seeing a specific issue or are wondering looking at the code? You should get an exception if any of the operations fail. That exception has the all the information you need: The set of exceptions, the actions that caused them, and on which servers. If you decide not to use that