Coder Social home page Coder Social logo

hbase-stargate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hbase-stargate's Issues

Missing files on 1.6.0

Trying to gem build the 1.6.0 branch and I get this:

] gem build hbase-stargate.gemspec
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
["lib/stargate/model/region_descriptor.rb", "spec/hbase-stargate/model/region_descriptor_spec.rb"] are not files

Create Table fails on HBase 0.20.6 and hbase-stargate master

Using Master branch, I'm trying to create a table, and I get:

irb(main):008:0> table = client.create_table("table2", 'data')
Stargate::TableFailCreateError: 503 "Service Unavailable"
from /usr/local/lib/ruby/gems/1.8/gems/hbase-stargate-1.5.1/lib/stargate/operation/table_operation.rb:43:in `create_table'
from (irb):8
irb(main):009:0> exit

confirmed that tables can be created in the console.

configuration with gem.config which environment.rb file should i use?

/home/krina/.rvm/gems/ruby-2.3.0/gems/bundler-1.13.1/lib/bundler/vendor/postit/lib/postit/environment.rb
/home/krina/.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/gem-wrappers-1.2.7/lib/gem-wrappers/environment.rb
/home/krina/.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rvm-1.11.3.9/lib/rvm/environment.rb

Stargate returns XML instead of JSON?!

Hi I have problems with Stargate, it always returning XML responses, no matter what you specified in the 'Accept' property of header?

Tried HBase 0.20.4, 0.20.6, 0.89.20100726 - all of them are returning XML and consequently hbase-stargate doesn't work (because it expect json).

Do you have such problems?

alter_table does not work

The gem defines an alter_table operation, but it appears to be unfinished. It calls an undefined method 'construct_xml_stream'.

scanner splits rows depending on batch size

i have code similiar to the following:

scanner = client.open_scanner("table", {:columns => "a", :batch => 10, :limit => 4}) 
rows = client.get_rows(scanner, 10)
rows.each do |row|
   puts row.name + " " + row.columns.to_s
end

when column-family 'a' has 4 columns this should return results like:

row1 col a:1 col a:2 col a:3 col a:4
row2 col a:1 col a:2 col a:3 col a:4
row3 col a:1 col a:2 col a:3 col a:4
row4 col a:1 col a:2 col a:3 col a:4

but what i get is :

row1 col a:1 col a:2 col a:3 col a:4
row2 col a:1 col a:2 col a:3 col a:4
row3 col a:1 col a:2
row3 col a:3 col a:4
row4 col a:1 col a:2 col a:3 col a:4

however, when I change :batch from 10 to 100 it works.
It seams that rows are not correctly assembled when they are split because of the batch-size

Issue installing GEM

Trying to 'gem install hbase-stargate'
Ruby -v = 1.9.2

I get the following:

[root@vm-swtg-um-002 ~]# gem install hbase-stargate
Building native extensions. This could take a while...
ERROR: Error installing hbase-stargate:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for curl-config... yes
checking for rb_thread_blocking_region()... yes
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DUSE_TBR -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -pedantic -Wall -o membuffer.o -c membuffer.c
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DUSE_TBR -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -pedantic -Wall -o session_ext.o -c session_ext.c
session_ext.c: In function ‘Init_session_ext’:
session_ext.c:727: error: ‘CURLPROXY_HTTP_1_0’ undeclared (first use in this function)
session_ext.c:727: error: (Each undeclared identifier is reported only once
session_ext.c:727: error: for each function it appears in.)
session_ext.c:730: error: ‘CURLPROXY_SOCKS4A’ undeclared (first use in this function)
session_ext.c:731: error: ‘CURLPROXY_SOCKS5_HOSTNAME’ undeclared (first use in this function)
make: *** [session_ext.o] Error 1

The application should be able to stream rows from a scanner

ScannerOperation.get_rows loads the entire result into memory. I would like to work with ranges that are larger than memory; I could do this if there were a ScannerOperation.get_each_row method. It should load batches, yielding rows one-by-one to the block.

Net::HTTP leaving connections open

If you just use the client and let it go out of scope, it can leave many connections open and in a busy site saturate the server with open connections.

It would be good to have a setting that is more aggressive about closing the http connections when they are done.

bug of create_row?

Here is a simple test code,

require 'rubygems'
require 'stargate'

Direct connection

client = Stargate::Client.new("http://localhost:8080") # this url is the default for stargate.

Table Operation

client.delete_table('users') # delete 'users' table
table = client.create_table('users', 'habbit') # create a table whose column_family is habbit

table = client.show_table('users') # show the meta info of table users

Row Operation

row = client.create_row('users', 'sishen', 2, {:name => 'habbit:football', :value => 'i like football'}) # create the row 'sishen' with the data in the table 'users'
row = client.create_row('users', 'sishen', 1, {:name => 'habbit:football', :value => 'i like basketball'}) # create the row 'sishen' with the data in the table 'users'

there should be two record with the same row key and different timestamp, right? But i only get one,
hbase(main):030:0> scan 'users'
ROW COLUMN+CELL
sishen column=habbit:football, timestamp=2, value=i like football
1 row(s) in 1.0410 seconds

Is it a bug?

Is 1.6.1 tagged?

In RubyGems the latest version listed is 1.6.1 but I can't find this version in the repository. Where can it be accessed to?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.