Giter Site home page Giter Site logo

nhbaseapi's Issues

Error when trying to connect

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.

Socket disconnected by remote server (Thrift server)

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()

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.