gridsum / nhbaseapi Goto Github PK
View Code? Open in Web Editor NEWHBase Thrift API
License: MIT License
HBase Thrift API
License: MIT License
I've used another Thrift API to connect to hbase previously, but now I'm trying NHBaseAPI. When I try to connect using:
string connectionStr = "zk=[my port]:2181";
IHBaseClient client = new HBaseClient(connectionStr);
I get the following error:
The following InnerException reported: System.TypeInitializationException: The type initializer for 'Gridsum.NHBaseThrift.Client.HBaseClient' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Gridsum.NHBaseThrift.Contracts.ThriftObject' threw an exception. ---> System.TypeInitializationException: The type initializer for 'KJFramework.Tracing.TracingManager' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at KJFramework.Tracing.TracingManager.LoadProvider()
at KJFramework.Tracing.TracingManager..cctor()
--- End of inner exception stack trace ---
at KJFramework.Tracing.TracingManager.TraceItemWatcher()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
--- End of inner exception stack trace ---
at Gridsum.NHBaseThrift.Contracts.ThriftObject..ctor()
at Gridsum.NHBaseThrift.Messages.ThriftMessage..ctor()
at Gridsum.NHBaseThrift.Messages.AtomicIncrementRequestMessage..ctor() in e:\NHaseAPI\NHBaseThrift\Messages\AtomicIncrementRequestMessage.cs:line 17
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Gridsum.NHBaseThrift.Network.ThriftProtocolStack.AutoInitialize() in e:\NHaseAPI\NHBaseThrift\Network\ThriftProtocolStack.cs:line 124
at Gridsum.NHBaseThrift.Network.ThriftProtocolStack..ctor() in e:\NHaseAPI\NHBaseThrift\Network\ThriftProtocolStack.cs:line 21
at Gridsum.NHBaseThrift.Client.HBaseClient..cctor() in e:\NHaseAPI\NHBaseThrift\Client\HBaseClient.cs:line 74
--- End of inner exception stack trace ---
at Gridsum.NHBaseThrift.Client.HBaseClient..ctor(String connectionStr)
Any suggestions of what may be wrong? I ca confirm my hbase instance is up because I can use HareDBClient to access the data in my hbase table.
Thanks.
Just found this .Net based HBase client library but it still lacks of some features such as filters. It there any plan and timeline for supporting them?
Does NHBaseAPI work with HBase 0.94? I found it always encounters the following error while using HTable.NewScanner() to do the query:
System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host.
in System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
in KJFramework.Net.Channels.Receivers.TcpAsynDataRecevier.Stop()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.