2014-02-15 16:15:16

Impala分区学习

1.分区表的创建示例: (1)创建分区表 create table logs (field1 string, field2 string, field3 string) partitioned by (year string, month string , day string, host string) row format delimited fields terminated by ','; (2)插入数据到新建的分区 insert into logs partition(year="2013", month="07",day="28",host="host1") values ("foo","foo","foo"); insert into logs partition(year="2013", month="07",day="28",host="host2") values ("foo","foo","foo"); insert into logs partition(year

2013-11-28 12:53:13

C# Socket小例子

程序分为服务端和客户端两部分,实现的功能很简单,客户端发送相应的指令,服务端接受执行后将结果返回给客户端! 服务端代码: using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Text; namespace Server { class Program { static void Main(string[] args) { Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint point = new IPEndPoint(IPAddress.Parse("127.0.0.1"),55555); try { server.Bind(point); server.Listen(10); //监听本地端口