hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitay <nit...@gmail.com>
Subject Re: Delete issue in HBase 0.20 alpha
Date Fri, 10 Jul 2009 21:54:51 GMT
Hi Bryan,

FYI, I think the latest trunk (with HBASE-1639), should fix the problems you
were seeing.

Thanks,
-n

On Fri, Jul 10, 2009 at 12:27 AM, Nitay <nitayj@gmail.com> wrote:

> Yeah, my fault. I checked in something to handle the full quorum ZooKeeper
> but didn't realize I broke the basic case. My apologies. Working on a fix
> now.
>
> -n
>
>
> On Thu, Jul 9, 2009 at 11:06 PM, Bryan Keller <bryanck@gmail.com> wrote:
>
>> Something checked in yesterday (7/9/09) caused the startup problem for me.
>> I
>> rolled back (svn update -r {20090709}), and HBase started up. The delete
>> problem I was having is fixed. So I'll use that rev (r792422) for now.
>> Thanks,
>> Bryan
>>
>> On Thu, Jul 9, 2009 at 4:41 PM, Bryan Keller <bryanck@gmail.com> wrote:
>>
>> > I'm not changing anything, just using the default hbase-default.xml
>> as-is
>> > (which appears to be setup for standalone mode), and not creating a
>> zoo.cfg.
>> > The only thing I am changing is the JAVA_HOME in hbase-env.sh.
>> >
>> >
>> > On Thu, Jul 9, 2009 at 4:36 PM, Nitay <nitayj@gmail.com> wrote:
>> >
>> >> Hi Bryan,
>> >>
>> >> For the latest trunk, are you using your own zoo.cfg, or overwriting
>> the
>> >> options from hbase-default.xml?
>> >>
>> >> -n
>> >>
>> >> On Thu, Jul 9, 2009 at 4:20 PM, Bryan Keller <bryanck@gmail.com>
>> wrote:
>> >>
>> >> > I can't get the trunk to run.
>> >> > Looks like the way Zookeeper starts has change, and it tries to map
>> my
>> >> > DHCP-assigned IP address to the list of quorum servers in the
>> >> > hbase-default.xml file
>> >> > (which is only "localhost" by default) and complains it can't be
>> >> > found. I tried adding my IP there but still can't connect via "hbase
>> >> > shell".
>> >> > I'm using the default standalone config.
>> >> >
>> >> > On Thu, Jul 9, 2009 at 2:51 PM, Ryan Rawson <ryanobjc@gmail.com>
>> wrote:
>> >> >
>> >> > > Can you try with the latest trunk? Many bugs, including delete
>> bugs,
>> >> were
>> >> > > fixed.
>> >> > >
>> >> > > On Jul 9, 2009 2:43 PM, "Bryan Keller" <bryanck@gmail.com>
wrote:
>> >> > >
>> >> > > I am having an issue after deleting a row in the HBase 0.20 alpha.
>> >> After
>> >> > > deleting the row using the Delete object, I cannot put a row back
>> that
>> >> > uses
>> >> > > the same key as the deleted row. No exceptions occur in my code.
>> >> > > E.g.
>> >> > >
>> >> > > HBaseConfiguration config = new HBaseConfiguration();
>> >> > >
>> >> > > HTable table = new HTable(config, "myTable");
>> >> > >
>> >> > >
>> >> > > Put p = new Put(Bytes.toBytes("myRow"));
>> >> > >
>> >> > > p.add(Bytes.toBytes("contents"), Bytes.toBytes("id"),
>> >> Bytes.toBytes(1L));
>> >> > >
>> >> > > table.put(p);
>> >> > >
>> >> > >
>> >> > > Get g = new Get(Bytes.toBytes("myRow"));
>> >> > >
>> >> > > Result r = table.get(g);
>> >> > >
>> >> > > byte[] valueBytes = r.getValue(Bytes.toBytes("contents"),
>> >> > > Bytes.toBytes("id"
>> >> > > ));
>> >> > >
>> >> > > long value = Bytes.toLong(valueBytes);
>> >> > >
>> >> > > System.out.println("GET: " + value); //shows "GET: 1"
>> >> > >
>> >> > >
>> >> > > Delete d = new Delete(Bytes.toBytes("myRow"));
>> >> > >
>> >> > > table.delete(d);
>> >> > >
>> >> > >
>> >> > > Put p = new Put(Bytes.toBytes("myRow"));
>> >> > >
>> >> > > p.add(Bytes.toBytes("contents"), Bytes.toBytes("id"),
>> >> Bytes.toBytes(1L));
>> >> > >
>> >> > > table.put(p);
>> >> > >
>> >> > > Get g = new Get(Bytes.toBytes("myRow"));
>> >> > >
>> >> > > Result r = table.get(g);
>> >> > >
>> >> > > byte[] valueBytes = r.getValue(Bytes.toBytes("contents"),
>> >> > > Bytes.toBytes("id"
>> >> > > ));
>> >> > >
>> >> > > long value = Bytes.toLong(valueBytes);
>> >> > >
>> >> > > System.out.println("GET: " + value); //shows "GET: -1", expected
>> "GET:
>> >> 1"
>> >> > >
>> >> >
>> >>
>> >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message