C#???thrift????hbase????????
???????????? ???????[ 2013/12/17 10:50:26 ] ????????
????1?? ????thrift-0.9.1.exe??????thrift-0.9.1.tar.gz
????2??????thrift-0.9.1.exe????????thrift????hbase???????????
????2??????thrift-0.9.1.exe????????thrift????hbase???????????
??????hbase??????
????hbase-0.96.0-srchbase-0.96.0hbase-thriftsrcmain
esourcesorgapachehadoophbase hrift
???????HBase.Thrift???????????thrift-0.9.1.exe?????£?
??????cmd?????????л???thrift-0.9.1???£????????????????????thrift??????c#????????????gen-csharp???????
????thrift-0.9.1.exe -gen csharp HBase.Thrift
????3????vs2010???????????
????HBaseThriftAPI?????2????????????Thrift(????????????????????????-???????thrift-0.9.1libcsharpsrcThrift.sln)?????thrift-0.9.1??????????????????????????????
??????????????????IThrift?????????????????????????????????а?Thrift??????????ù?????
????????ithrift????????????hbase????thrift????????????TestClient.cs????????????(????????????IP?????????????м?4??????????????????滻???)??
using System;
using System.Collections.Generic;
using System.Threading;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;
using System.Text;
namespace Test
{
publicclassTestClient
{
publicstaticvoid Main(string[] args)
{
try
{
TTransport transport = new TSocket("192.168.0.101"?? 9090);//?????IP?????
TProtocol tProtocol = new TBinaryProtocol(transport);
var client = new Hbase.Client(tProtocol);
transport.Open();
List<TRowResult> reslut = client.getRow(Encoding.UTF8.GetBytes("test")??Encoding.UTF8.GetBytes("a")??null);//?????????????????м???
foreach (var key in reslut)
{
Console.WriteLine(Encoding.UTF8.GetString(key.Row));
foreach (var k in key.Columns)
{
Console.Write(Encoding.UTF8.GetString(k.Key) +" ");
Console.WriteLine(Encoding.UTF8.GetString(k.Value.Value));
}
}
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine(e.StackTrace);
}
}
}
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????C#?е?StringC# Socket???????????????????C#?????????????????????????C#???????C#????????????Log4net??????δ????C#?????????????C#?????????????????C#???????????????C#????????????????C#7 ?е?Tuple??????C#??TypeScript - GeneratorC# ?????????細(xì)??????????C#?е???н???C#??MySQL?????????μ??Ч?????д??C#????C++??dll???C#??VS2010????е??????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????