c# - How to connect Hive to asp.net project -


hi i'm new hadoop.

i have installed microsoft hdinsight local system. want connect hive , hbase hive connection have specify connection string, port, username, password.

but i'm not able figure out how value. have tried localhost , 8085 port doesn't work. done giving localhost ip , system ip too.

please , let me know how should proceed hbase connectivity

your best bet use microsoft's hive sdk (also available on nuget microsoft.hadoop.hive)

there great sample on how connect , run linq-to-hive query @ http://hadoopsdk.codeplex.com/wikipage?title=simple%20linq%20to%20hive%20query&referringtitle=linq%20to%20hive

this used webhcat api submit query hive, , work against hdinsights cluster in azure cloud (hence need provide storage key results again).

if you're interested in using local copy can adapt example exclude storage account credentials.

var db = new hiveconnection(             webhcaturi: new uri("http://localhost:50111"),             username: (string) "hadoop", password: (string) null);  var result = db.executehivequery("select * w3c"); result.wait(); 

works against base install of hdinsight preview.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -