I have Accumulo 1.5 running with the Thrift Proxy. I'm connecting to thrift with Ruby, but I imagine the same situation would arise if I were working with Python.
I have been able to connect to Accumulo, create updates, and scan the table by specific columns. I'm trying to query by a specific Row ID.
querykey = Key.new('row'=>rowid)
querykey_end = Key.new('row'=>"#{rowid}\0")
queryrange = Range.new('start' => querykey, 'startInclusive' => true, 'stop' => querykey_end, 'stopInclusive' => false)
queryscanoptions = ScanOptions.new({'range' => queryrange})
Unfortunately, this throws an error on my Range constructor.
`initialize': wrong number of arguments (1 for 2..3) (ArgumentError)
There isn't exactly much (any) documentation on the Ruby client, so I've been working mostly off of the thrift code. The Range class is defined in proxy_types.rb
, but it is defined the same way as the other Thrift classes I'm using.