You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Kevin Cho <kc...@gmail.com> on 2014/03/03 04:33:24 UTC
"Unknown" Table state
Connector connector = instance.getConnector(principal,
token);
String tableName = "myTable";
TableOperations ops = connector.tableOperations();
if (ops.exists(tableName)) {
ops.delete(tableName);
}
ops.create(tableName);
Mutation m = new Mutation("rowId");
m.put("columnFamily0", "columnQualifer0", "some value");
BatchWriter bw = connector.createBatchWriter(tableName, new
BatchWriterConfig());
bw.addMutation(m);
bw.close();
I verified that I am able to connect to Accumulo server and that "myTable"
has been created. When I viewed from Accumul Monitor -> Tables, I see the
State to be "Unknown". What's weird is that I'm even able to add
entries..so it looks normal... but why does it say "Unknown"? Thanks a
bunch!
Re: "Unknown" Table state
Posted by Josh Elser <jo...@gmail.com>.
Yes: see ACCUMULO-1920
On Mar 4, 2014 11:10 AM, josh.elser@gmail.com wrote:
> I thought the original ticket had a fix versions against 1.4.5 and 1.5.1.
> But I forget the issue number. I'll see if I can search and find it.
> On Mar 4, 2014 10:53 AM, "Eric Newton" <er...@gmail.com> wrote:
>
>> I've been unable to replicate it myself on any version. Was there a
>> previous 1.4.4 ticket?
>>
>>
>> On Tue, Mar 4, 2014 at 10:46 AM, Josh Elser <jo...@gmail.com> wrote:
>>
>>> Eric,
>>>
>>> Was this replicated on 1.4.5-SNAPSHOT too? I would've said the previous
>>> ticket we had for this bug was already fixed in that version. I could be
>>> mistaken though.
>>> On Mar 4, 2014 9:39 AM, "Eric Newton" <er...@gmail.com> wrote:
>>>
>>>> This situation was reproduced by another user:
>>>>
>>>> https://issues.apache.org/jira/browse/ACCUMULO-2426
>>>>
>>>> -Eric
>>>>
>>>>
>>>>
>>>> On Mon, Mar 3, 2014 at 1:23 PM, Kevin Cho <kc...@gmail.com> wrote:
>>>>
>>>>> Yup, you're right. Re-start fixed it.
>>>>>
>>>>>
>>>>> On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com>wrote:
>>>>>
>>>>>> Sounds like a known bug (forgive me, I forget the issue) that
>>>>>> affected 1.5.0. If you bounce the monitor process, it should be corrected.
>>>>>>
>>>>>> 1.5.1 will be released in the next week if you want an official
>>>>>> release.
>>>>>>
>>>>>>
>>>>>> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>>>>>>
>>>>>>> Yup, it stays as "Unknown". It's been about 30 min and still says
>>>>>>> that.
>>>>>>> I tried to look in the log and didn't detect any errors either.
>>>>>>> I'm
>>>>>>> able to do CRUD operations on my table "myTable". If I do create
>>>>>>> table
>>>>>>> "test1" through the shell then the status stays "ONLINE". Very
>>>>>>> strange...
>>>>>>>
>>>>>>
>>>>>
>>>>
>>
Re: "Unknown" Table state
Posted by Josh Elser <jo...@gmail.com>.
I thought the original ticket had a fix versions against 1.4.5 and 1.5.1.
But I forget the issue number. I'll see if I can search and find it.
On Mar 4, 2014 10:53 AM, "Eric Newton" <er...@gmail.com> wrote:
> I've been unable to replicate it myself on any version. Was there a
> previous 1.4.4 ticket?
>
>
> On Tue, Mar 4, 2014 at 10:46 AM, Josh Elser <jo...@gmail.com> wrote:
>
>> Eric,
>>
>> Was this replicated on 1.4.5-SNAPSHOT too? I would've said the previous
>> ticket we had for this bug was already fixed in that version. I could be
>> mistaken though.
>> On Mar 4, 2014 9:39 AM, "Eric Newton" <er...@gmail.com> wrote:
>>
>>> This situation was reproduced by another user:
>>>
>>> https://issues.apache.org/jira/browse/ACCUMULO-2426
>>>
>>> -Eric
>>>
>>>
>>>
>>> On Mon, Mar 3, 2014 at 1:23 PM, Kevin Cho <kc...@gmail.com> wrote:
>>>
>>>> Yup, you're right. Re-start fixed it.
>>>>
>>>>
>>>> On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com>wrote:
>>>>
>>>>> Sounds like a known bug (forgive me, I forget the issue) that affected
>>>>> 1.5.0. If you bounce the monitor process, it should be corrected.
>>>>>
>>>>> 1.5.1 will be released in the next week if you want an official
>>>>> release.
>>>>>
>>>>>
>>>>> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>>>>>
>>>>>> Yup, it stays as "Unknown". It's been about 30 min and still says
>>>>>> that.
>>>>>> I tried to look in the log and didn't detect any errors either. I'm
>>>>>> able to do CRUD operations on my table "myTable". If I do create
>>>>>> table
>>>>>> "test1" through the shell then the status stays "ONLINE". Very
>>>>>> strange...
>>>>>>
>>>>>
>>>>
>>>
>
Re: "Unknown" Table state
Posted by Eric Newton <er...@gmail.com>.
I've been unable to replicate it myself on any version. Was there a
previous 1.4.4 ticket?
On Tue, Mar 4, 2014 at 10:46 AM, Josh Elser <jo...@gmail.com> wrote:
> Eric,
>
> Was this replicated on 1.4.5-SNAPSHOT too? I would've said the previous
> ticket we had for this bug was already fixed in that version. I could be
> mistaken though.
> On Mar 4, 2014 9:39 AM, "Eric Newton" <er...@gmail.com> wrote:
>
>> This situation was reproduced by another user:
>>
>> https://issues.apache.org/jira/browse/ACCUMULO-2426
>>
>> -Eric
>>
>>
>>
>> On Mon, Mar 3, 2014 at 1:23 PM, Kevin Cho <kc...@gmail.com> wrote:
>>
>>> Yup, you're right. Re-start fixed it.
>>>
>>>
>>> On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com> wrote:
>>>
>>>> Sounds like a known bug (forgive me, I forget the issue) that affected
>>>> 1.5.0. If you bounce the monitor process, it should be corrected.
>>>>
>>>> 1.5.1 will be released in the next week if you want an official release.
>>>>
>>>>
>>>> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>>>>
>>>>> Yup, it stays as "Unknown". It's been about 30 min and still says
>>>>> that.
>>>>> I tried to look in the log and didn't detect any errors either. I'm
>>>>> able to do CRUD operations on my table "myTable". If I do create table
>>>>> "test1" through the shell then the status stays "ONLINE". Very
>>>>> strange...
>>>>>
>>>>
>>>
>>
Re: "Unknown" Table state
Posted by Josh Elser <jo...@gmail.com>.
Eric,
Was this replicated on 1.4.5-SNAPSHOT too? I would've said the previous
ticket we had for this bug was already fixed in that version. I could be
mistaken though.
On Mar 4, 2014 9:39 AM, "Eric Newton" <er...@gmail.com> wrote:
> This situation was reproduced by another user:
>
> https://issues.apache.org/jira/browse/ACCUMULO-2426
>
> -Eric
>
>
>
> On Mon, Mar 3, 2014 at 1:23 PM, Kevin Cho <kc...@gmail.com> wrote:
>
>> Yup, you're right. Re-start fixed it.
>>
>>
>> On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com> wrote:
>>
>>> Sounds like a known bug (forgive me, I forget the issue) that affected
>>> 1.5.0. If you bounce the monitor process, it should be corrected.
>>>
>>> 1.5.1 will be released in the next week if you want an official release.
>>>
>>>
>>> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>>>
>>>> Yup, it stays as "Unknown". It's been about 30 min and still says that.
>>>> I tried to look in the log and didn't detect any errors either. I'm
>>>> able to do CRUD operations on my table "myTable". If I do create table
>>>> "test1" through the shell then the status stays "ONLINE". Very
>>>> strange...
>>>>
>>>
>>
>
Re: "Unknown" Table state
Posted by Eric Newton <er...@gmail.com>.
This situation was reproduced by another user:
https://issues.apache.org/jira/browse/ACCUMULO-2426
-Eric
On Mon, Mar 3, 2014 at 1:23 PM, Kevin Cho <kc...@gmail.com> wrote:
> Yup, you're right. Re-start fixed it.
>
>
> On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com> wrote:
>
>> Sounds like a known bug (forgive me, I forget the issue) that affected
>> 1.5.0. If you bounce the monitor process, it should be corrected.
>>
>> 1.5.1 will be released in the next week if you want an official release.
>>
>>
>> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>>
>>> Yup, it stays as "Unknown". It's been about 30 min and still says that.
>>> I tried to look in the log and didn't detect any errors either. I'm
>>> able to do CRUD operations on my table "myTable". If I do create table
>>> "test1" through the shell then the status stays "ONLINE". Very
>>> strange...
>>>
>>
>
Re: "Unknown" Table state
Posted by Kevin Cho <kc...@gmail.com>.
Yup, you're right. Re-start fixed it.
On Mon, Mar 3, 2014 at 1:50 AM, Josh Elser <jo...@gmail.com> wrote:
> Sounds like a known bug (forgive me, I forget the issue) that affected
> 1.5.0. If you bounce the monitor process, it should be corrected.
>
> 1.5.1 will be released in the next week if you want an official release.
>
>
> On 3/2/14, 11:55 PM, Kevin Cho wrote:
>
>> Yup, it stays as "Unknown". It's been about 30 min and still says that.
>> I tried to look in the log and didn't detect any errors either. I'm
>> able to do CRUD operations on my table "myTable". If I do create table
>> "test1" through the shell then the status stays "ONLINE". Very strange...
>>
>
Re: "Unknown" Table state
Posted by Josh Elser <jo...@gmail.com>.
Sounds like a known bug (forgive me, I forget the issue) that affected
1.5.0. If you bounce the monitor process, it should be corrected.
1.5.1 will be released in the next week if you want an official release.
On 3/2/14, 11:55 PM, Kevin Cho wrote:
> Yup, it stays as "Unknown". It's been about 30 min and still says that.
> I tried to look in the log and didn't detect any errors either. I'm
> able to do CRUD operations on my table "myTable". If I do create table
> "test1" through the shell then the status stays "ONLINE". Very strange...
Re: "Unknown" Table state
Posted by Josh Elser <jo...@gmail.com>.
There's an O'Reilly book in the works that I think has a preview available.
The flexibility of Accumulo is that it allows you to create your own
serialization mechanisms to store/retrieve data. This gives you the
ability to structure data in such a way that is efficient for your use
cases. The problem, as you stumbled upon, is that this can be rather
overwhelming.
There are lots of examples that you can look at to help provide some
examples (e.g. Pig[1], Jaccson[2], OpenTSDB[3], or just look at
Github[4]). I'm not aware of any library that's general-purpose enough
for universal use.
[1]
http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/backend/hadoop/accumulo/AccumuloStorage.java
[2] https://github.com/acordova/jaccson
[3] https://github.com/ericnewton/accumulo-opentsdb
[4] https://github.com/search?q=accumulo&type=Repositories
On 3/2/14, 11:55 PM, Kevin Cho wrote:
> Currently, I'm trying to learn the basics to get through interview. So
> far, it seems pretty easy to use. I was able to install Accumulo in
> cluster mode and do some basic admin and table cruds. However... I'm
> really puzzled on how to architect DAO around Accumulo. Do I create DAO
> per column family? Is there a another library like hibernate where it
> would automatically deserialize to Java objects? Thanks again! If you
> have recommended Accumulo book then please let me know as well.
>
Re: "Unknown" Table state
Posted by Kevin Cho <kc...@gmail.com>.
Yup, it stays as "Unknown". It's been about 30 min and still says that. I
tried to look in the log and didn't detect any errors either. I'm able to
do CRUD operations on my table "myTable". If I do create table "test1"
through the shell then the status stays "ONLINE". Very strange...
Currently, I'm trying to learn the basics to get through interview. So
far, it seems pretty easy to use. I was able to install Accumulo in cluster
mode and do some basic admin and table cruds. However... I'm really
puzzled on how to architect DAO around Accumulo. Do I create DAO per
column family? Is there a another library like hibernate where it would
automatically deserialize to Java objects? Thanks again! If you have
recommended Accumulo book then please let me know as well.
On Sun, Mar 2, 2014 at 11:35 PM, Christopher <ct...@apache.org> wrote:
> Which version? And, does it stay Unknown, or does it switch to
> something else after some time (perhaps after refreshing the page)?
> Chances are (just speculating at this early point), the monitor has
> not yet seen the table deletion/creation fully yet, and it just needs
> some time for its cached view of zookeeper to update.
>
> --
> Christopher L Tubbs II
> http://gravatar.com/ctubbsii
>
>
> On Sun, Mar 2, 2014 at 10:33 PM, Kevin Cho <kc...@gmail.com> wrote:
> > Connector connector = instance.getConnector(principal,
> token);
> >
> > String tableName = "myTable";
> > TableOperations ops = connector.tableOperations();
> > if (ops.exists(tableName)) {
> > ops.delete(tableName);
> > }
> > ops.create(tableName);
> >
> > Mutation m = new Mutation("rowId");
> > m.put("columnFamily0", "columnQualifer0", "some value");
> >
> > BatchWriter bw = connector.createBatchWriter(tableName, new
> > BatchWriterConfig());
> > bw.addMutation(m);
> > bw.close();
> >
> > I verified that I am able to connect to Accumulo server and that
> "myTable"
> > has been created. When I viewed from Accumul Monitor -> Tables, I see
> the
> > State to be "Unknown". What's weird is that I'm even able to add
> > entries..so it looks normal... but why does it say "Unknown"? Thanks a
> > bunch!
>
Re: "Unknown" Table state
Posted by Christopher <ct...@apache.org>.
Which version? And, does it stay Unknown, or does it switch to
something else after some time (perhaps after refreshing the page)?
Chances are (just speculating at this early point), the monitor has
not yet seen the table deletion/creation fully yet, and it just needs
some time for its cached view of zookeeper to update.
--
Christopher L Tubbs II
http://gravatar.com/ctubbsii
On Sun, Mar 2, 2014 at 10:33 PM, Kevin Cho <kc...@gmail.com> wrote:
> Connector connector = instance.getConnector(principal, token);
>
> String tableName = "myTable";
> TableOperations ops = connector.tableOperations();
> if (ops.exists(tableName)) {
> ops.delete(tableName);
> }
> ops.create(tableName);
>
> Mutation m = new Mutation("rowId");
> m.put("columnFamily0", "columnQualifer0", "some value");
>
> BatchWriter bw = connector.createBatchWriter(tableName, new
> BatchWriterConfig());
> bw.addMutation(m);
> bw.close();
>
> I verified that I am able to connect to Accumulo server and that "myTable"
> has been created. When I viewed from Accumul Monitor -> Tables, I see the
> State to be "Unknown". What's weird is that I'm even able to add
> entries..so it looks normal... but why does it say "Unknown"? Thanks a
> bunch!