C# 使用 thrift 设置对 hbase 服务器的调用 - 找不到对以下内容的引用:calculator.client

C# Setting up call to hbase server using thrift - cant find reference to: calculator.client

如果这很简单,请提前道歉我在 google 上找不到解决方案。我开始设置 C# 代码以连接到 HBASE/Hadoop 服务器。

我找到了一些示例来启动 code/connection。 https://thrift.apache.org/tutorial/csharp

我下载了 Thrift 的 nuget 包并且可以正常工作。我从头开始,问题是下面这一行:

 Calculator.Client client = new Calculator.Client(protocol);

出现错误(type/namespace 无法找到..等等)。

Where/how 我要添加对此 class 的引用吗?我到处都找不到它,而且我的 google 搜索不成功

谢谢。

教程在第 2 步中说:

2.Generated the tutorial.thrift and shared.thrift files as discussed here.

 thrift -r --gen csharp tutorial.thrift

这将为您留下一个 gen-csharp 文件夹,其中包含您要查找的文件。