public void TestReadConfig() { HBaseWriter writer = new HBaseWriter(); Assert.IsTrue(writer.ClusterName.CompareTo("https://projectteddy.azurehdinsight.net") == 0); Assert.IsTrue(writer.HadoopUserName.CompareTo("drcrook") == 0); Assert.IsTrue(writer.HBaseTableName.CompareTo("tweetsbywords") == 0); var s = writer.client.ListTables(); }
static void Main(string[] args) { hbaseWriter = new HBaseWriter(); string consumerKey = ConfigurationManager.AppSettings["ConsumerKey"]; string consumerSecret = ConfigurationManager.AppSettings["ConsumerSecret"]; string accessToken = ConfigurationManager.AppSettings["AccessToken"]; string accessSecret = ConfigurationManager.AppSettings["AccessSecret"]; TwitterCredentials.SetCredentials(accessToken, accessSecret, consumerKey, consumerSecret); Task.Run(() => { StreamTwitter(); }); while (true) ; }
static void Main(string[] args) { hbaseWriter = new HBaseWriter(); string consumerKey = ConfigurationManager.AppSettings["ConsumerKey"]; string consumerSecret = ConfigurationManager.AppSettings["ConsumerSecret"]; string accessToken = ConfigurationManager.AppSettings["AccessToken"]; string accessSecret = ConfigurationManager.AppSettings["AccessSecret"]; TwitterCredentials.SetCredentials(accessToken, accessSecret, consumerKey, consumerSecret); Task.Run(() => { StreamTwitter(); }); while (true) { ; } }