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
Post a Comment