JSON跟JSONP的区别 JSON JSONP JSON和JSONP区别
前言 由于Sencha Touch 2这种开发模式的特性,基本决定了它原生的数据交互行为几乎只能通过AJAX来实现。...
View ArticleJPA主键生成策略 JPA JPA主键 JPA主键生成 IdClass复合主键
Java Persistence API(JPA)中要求每个实体(Entity)类必须有一个主键,并且提供了 Table,Sequence,Identity,Auto 四种主键生成策略。其中 Identity 为表自动增长字段;Sequence 通过序列产生主键;这两种主键生成策略在某些特定的数据库中得到了很好的支持。Table...
View ArticleKafka 在行动:7步实现从RDBMS到Hadoop的实时流传输
文 | Rajesh Nadipalli 译者 | 卞卞 toypipi 对于寻找方法快速吸收数据到Hadoop数据池的企业, Kafka是一个伟大的选择。Kafka是什么? 它是一个分布式,可扩展的可靠消息系统,把采取发布-订阅模型的应用程序/数据流融为一体。 这是Hadoop的技术堆栈中的关键部分,支持实时数据分析或物联网数据货币化。 本文目标读者是技术人员。...
View Article常见GTID主从复制报错及处理思路 GTID主从复 GTID报错 GTID报错处理
测试环境(已经事先搭建好GTID主从环境)mysql5.7.16--01 3307 主MySQL5.7.16--02 3308 从准备:在主库建表,插入测试数据CREATE TABLE `t` (`id` int(11) NOT NULL AUTO_INCREMENT,`name` varchar(20) NOT NULL,PRIMARY KEY (`id`)) ENGINE=InnoDB...
View ArticleLog Buffer #500: A Carnival of the Vanities for DBAs
As the festive season starts, bloggers across Oracle, SQL Server, and mysql have been producing some sparkling blog posts. This Log Buffer Edition highlights a few of them this week. Oracle: Spencer...
View Articlesql 常用函数总和 SQL语句 SQL语句教程 SQL语句函数 数据库教程
一、数学函数ABS(x) 返回x的绝对值 BIN(x) 返回x的二进制(OCT返回八进制,HEX返回十六进制) CEILING(x) 返回大于x的最小整数值 EXP(x) 返回值e(自然对数的底)的x次方 FLOOR(x) 返回小于x的最大整数值 GREATEST(x1,x2,...,xn)返回集合中最大的值 LEAST(x1,x2,...,xn) 返回集合中最小的值 LN(x) 返回x的自然对数...
View Articlediginomica 2016 Derek’s choice
1. Digital Government progress hits roadblocks Let me make this clear in my opinion, senior civil servants in the Department for Work and Pensions, the Home Office and HMRC have thrown the interests...
View Articleredis master-slave 切换演练
redis master-slave 切换演练 IP地址 端口 属性 192.168.31.208 6379 master 192.168.31.208 6378 slave 192.168.31.209 6379 master 192.168.31.209 6378 slave 192.168.31.210 6379 master 192.168.31.210 6378 slave 环境变量...
View ArticleStrata + Hadoop World London 2017
Dates:May 22-25, 2017 | Registrations will open in January 2017 Location:London, The United Kingdom Strata + Hadoop World 2017: Put data to work Strata + Hadoop World is the largest conference of its...
View ArticleRedis源码剖析--RDB持久化
众所周知,Reids是一个高效的内存数据库,所有的数据都存放在内存中。这种模式的缺点就是一旦服务器关闭后会立刻丢失所有存储的数据,Redis当然要避免这种情况的发生,于是其提供了两种持久化机制:RDB和AOF。它们的功能都是将内存中存放的数据保存到磁盘文件上,等到服务器下次开启时能重载数据,以免数据丢失。今天,我们先来剖析一下RDB持久化机制。 RDB概述...
View ArticleMongoDB: Install and enable authentication
This blog post explains how to install and run a local development install of MongoDB. It also covers how to enable authentication, which sadly isn’t enabled by default. It describes how to install a...
View ArticleHBase Split
split有什么用? split的主要作用就是让数据分布更均匀,让每个region都有数据可查,你说这样的决定吼不吼啊, 当然吼啊。举个栗子,在服务上线后,发现总会有些region上的key访问很频繁,而这些key恰好 又都是相近的,那这个region就钦定为热点region(hot region),这时就需要将这个region 切分下,让这些key分散出去,减少这个region所在的region...
View ArticleHBase Split detail
split的具体过程 切分的操作是由各个region server自己决定,但它们要通知到Master来及时地更新META信息。 以下基本翻译自 这里 。 region server决定开始split,在zk上创建新节点 /hbase/region-in-transition/parent-region-name:SPLITTING...
View ArticleFlink On Yarn Resource Isolation
Flink On Yarn Resource Isolation 解决问题 Flink目前没有资源隔离,不同任务的task可能跑在同一个JVM进程中,无法进行资源隔离,一个应用出问题,容易导致集群全部挂掉。 Flink on Yarn Flink提供两种Yarn的部署方式 Yarn Setup : Start a long-running Flink cluster on YARN 通过命令...
View ArticleMongoDB: Introduction
MongoDB (from “humongous”) is an open-source document-oriented NoSQL database. Much like relational databases have rows stored in tables, MongoDB has “documents” stored in “collections”. Documents are...
View Article查看会话信息 查看会话信息 会话信息 会话 编程开发
查看会话信息:--1、执行前准备工作,--1.1、获取当前实例信息,select * from v$instance;,--1.2、获取当前会话信息,select * from v$mystat where rownum=1;。--2、执行过程中查看执行情况--2.1、查看当前会话实例是否与重建脚本执行在同一个实例select * from...
View ArticleBest Books to Master Apache Yarn
1. Objective This tutorial will list best books to learn and master Apache Yarn. Apache Hadoop YARN (Yet Another Resource Negotiator) is one of the key features in the second-generation Hadoop 2...
View Article消息推送系统的设计
一、消息推送系统设计需求 1、高性价比,在有限的硬件资源下,尽可能的提高消息系统的性能和可用性。 2、提高数据的一致性。 二、分析 消息推送,按数据量划分,包括两类: 1)持续的大量数据(比如:持续的物联网GPS上报等)推送,单类数据量大于 10 kb 每秒 。 2)低频率、数据量小的偶发事件、通知类的数据推送。 消息重要性和实时性分级:( “四象限” 划分) 不重要 | 不重要 可延时 | 低延时...
View ArticlePurging Azure DocumentDB records without a PartitionKey
Lets say you’re using DocumentDB and find yourself migrating from single-partition to partitioned collections . There’s an off chance you may forget to add a PartitionKey property value to all records...
View Articlecelery使用的一些小坑和技巧(非从无到有的过程)
纯粹是记录一下自己在刚开始使用的时候遇到的一些坑,以及自己是怎样通过配合redis来解决问题的。 文章分为三个部分,一是怎样跑起来,并且怎样监控相关的队列和任务;二是遇到的几个坑;三是给一些自己配合redis使用的代码示例。 一.celery使用: Ⅰ.把任务中间件服务器跑起来,rabbitmq-server...
View Article