1. Spark Streaming的工作机制 Spark Streaming 是Spark核心API的一个扩展,可以实现高吞吐量的、具备容错机制的实时流数据的处理。 支持从多种数据源获取数据,包括Kafk、Flume、Twitter、ZeroMQ、Kinesis 以及TCP sockets, 从数 ...
分类:
其他好文 时间:
2018-10-14 14:15:29
阅读次数:
206
连接数据库的方式有两种:TCP和Unix域socket。 本文使用Unix domain sockets连接数据库。关于TCP连接数据库可以参考 "Go 操作mysql使用举例" output: data: ID:145, User:root, Host:localhost, DB:, Cmd:Sl ...
分类:
数据库 时间:
2018-10-13 19:56:46
阅读次数:
376
一、 socket 工作原理 二 tcp/ip 协议简述 三、socket 使用 四、socketserver ...
分类:
其他好文 时间:
2018-10-12 17:00:30
阅读次数:
148
Mysql安装 tar zxf mysql-boost-5.7.17.tar.gz yum install -y gcc gcc-c++ yum install cmake-2.8.12.2-4.el6.x86_64.rpm -y cd mysql-5.7.17/ yum install -y nc ...
分类:
其他好文 时间:
2018-10-10 21:46:14
阅读次数:
320
准备环境1.CentOS系统[root@test3~]#cat/etc/redhat-releaseCentOSLinuxrelease7.5.1804(Core)2.防火墙[root@test3~]#systemctlstopfirewalld[root@test3~]#systemctldisablefirewalld[root@test3~]#cat/etc/sysconfig/selinu
分类:
Web程序 时间:
2018-10-09 11:44:45
阅读次数:
686
最近发现了一个连接mqtt broker的软件:MQTTBox。GitHub地址:https://github.com/workswithweb/MQTTBox 官网网站的介绍为:使用MQTTBox增强你的物联网流程 MQTT客户端特性 支持TCP、TLS、Web Sockets和安全的Web So ...
分类:
其他好文 时间:
2018-10-04 12:52:06
阅读次数:
888
在C#中使用socket通信,只要使用 visual studio中自带的 using System.Net和 using System.Net.Sockets;命名空间,这样就可以进行通信了。 一般服务端先运行,然后在运行客户端。 其socket通信的流程如下: 服务端: 1:创建一个socket ...
When initialized, TCP starts in the CLOSED state. Usually an imme- diate transition takes it to either the SYN_SENT or LISTEN state, depending on whet ...
分类:
其他好文 时间:
2018-10-02 17:17:37
阅读次数:
140
最近啊,boss 跟我说,我们的系统需要有消息推送功能,他说可以使用 dwt 或者是我自己找一个框架进行推送,我因为之前的公司就是使用的 websocket,所以我选择了 websocket。 websocket 是一种新的接口协议,请求的时候需要带上前缀 ws : ws://www.demo.co ...
分类:
编程语言 时间:
2018-09-30 16:50:09
阅读次数:
224
服务端 io.on(‘connection’,function(socket));//监听客户端连接,回调函数会传递本次连接的socket io.sockets.emit(‘String’,data);//给所有客户端广播消息 io.sockets.socket(socketid).emit(‘St ...
分类:
其他好文 时间:
2018-09-29 19:16:58
阅读次数:
208