- EcmaScript和JavaScript的区别
每天吃八顿
前端ecmascript
ECMAScript和JavaScript是经常被混淆的两个术语,但实际上它们之间存在一些区别:ECMAScript:ECMAScript(通常缩写为ES,并且有版本号如ES5,ES6和ES7等)是由ECMA国际(EuropeanComputerManufacturersAssociation)制定的一种脚本语言的规范。这个规范定义了语法、命令、数据类型等基本元素。ECMAScript是一种规范,
- ES6至ES2023:深入理解ECMAScript的演变之路
N201871643
热门相关技术分享ecmascriptes6前端
ES6至ES2023:深入理解ECMAScript的演变之路目录ES6至ES2023:深入理解ECMAScript的演变之路一、ECMAScript简介二、ES6:里程碑式的版本1.类语法2.模块化3.箭头函数4.承诺5.Set和Map三、ES7至ES12:稳步前进1.ES7(ES2016美)2.ES8(ES2017美)3.ES9(ES2018英)4、ES10(ES2019美)5.ES11(ES2
- async/await
隔壁老王z
在async/await之前的三种写回调的方式:1、嵌套回调2、以Promise为主的链式回调3、使用Generators但是,这三种写起来都不够优雅,ES7做了优化改进,async/await应运而生,async/await相比较Promise对象then函数的嵌套,与Generator执行的繁琐(需要借助go才能自动执行,否则得手动调用next()),Async/Await可以让你轻松写出同步
- canal-adapter消费Kafka中MySQL的binlog数据,却没有同步更新Elastic search
iiopsd
kafkamysqljavaelasticsearch
背景在同步MySQL数据到ES的场景中,选择了canal组件同步数据。问题描述在同步的时候发现canal-adapter中canal-adapter/conf/es7/product.yml配置文件中sql语句连表查询的时候会出现无法更新Elasticsearch中数据的情况,而且日志没有提示异常(idea启动的时候有错误日志),令人百思不得其解。问题分析初步估计是内部解析yml的时候出错了,但具
- 查看linux中es是否运行,ElasticSearch 安装与运行
细雨9523
查看linux中es是否运行
公号:码农充电站pro主页:https://codeshellme.github.io本节来介绍ES的安装。1,下载ESES是基于Java语言开发的,因此,要安装ES,首先需要有Java环境。从ES7.0开始,ES内置了Java环境,所以如果安装的是7.0及以上版本的ES,就不需要额外安装Java环境了。我们可以到ES的下载页面去下载ES安装包,你可以根据你的系统,选择不同的安装包进行安装。我这里
- 03 语法
将军肚
ES7中有一项do表达式提案,类似vara,b;a=do{if(true){b=4+38;}};a;//42其目的是将语句当作表达式来处理,从而不需要将语句封装为函数再调用return来返回值。5.1.2表达式副作用最常见的有副作用的表达式是函数调用:functionfoo(){a=a+1;}vara=1;foo();//结果值:undefined。副作用:a的值被改变可使用,语句系列逗号运算符将
- RK3588开发笔记-pdm接口ES7201音频采集调试记录
flypig哗啦啦
RK3568开发笔记音视频RK3588ES7201PDM
目录前言一、ES7201技术规格二、PDM接口说明RK3588的PDM接口特性三、原理图连接四、内核配置五、音频调试总结前言在RK3588开发过程中,音频采集是一个常见的需求,而PDM(PulseDensityModulation)接口因其简单性和低成本广泛应用于音频采集模块中。本文记录了在RK3588平台上通过PDM接口集成和调试ES7201音频采集模块的过程。一、ES7201ES7201是一款
- 【退役之重学前端】使用vite+vue3+vue-router,重构react+react-router前后端分离的商城后台管理系统
williamdsy
前端vue.js重构
前言:对前端各个技术板块,HTML、CSS、JavaScript、ES6、vue家族,整体上能“摸其大概”。笔者计划重构一个基于react的商城后台管理系统。——2024年2月16日技术选型#语言和框架vue3sassbootstrapES7#架构前后端分离分层架构模块化开发#前端构建工具npmvite#代码管理工具git
- JS 中的数据代理
一只理智恩
jsjavascript前端开发语言
所谓数据代理(也叫数据劫持),指的是在访问或者修改对象的某个属性时,通过一段代码拦截这个行为,进行额外的操作或者修改返回结果。比较典型的是Object.defineProperty()和ES2015中新增的Proxy对象。另外还有已经被废弃的Object.observe(),废弃的原因正是Proxy的出现,因此这里我们就不继续讨论这个已经被浏览器删除的方法了。数据劫持最著名的应用当属双向绑定,这也
- 机器学习3----决策树
pyniu
机器学习机器学习决策树人工智能
这是前期准备importnumpyasnpimportpandasaspdimportmatplotlib.pyplotasplt#ID3算法#每个特征的信息熵#target:账号是否真实,共2种情况#yes7个p=0.7#no3个p=0.3info_D=-(0.7*np.log2(0.7)+0.3*np.log2(0.3))info_D#日志密度L#日志密度3种结果#s3个0.31yes,2no
- vscode中一键生成react代码块以及快速补全react代码
前端驿站
1.vscode扩展搜索ES7React/Redux/GraphQL/React-Nativesnippetsd或者React-Native/React/Reduxsnippetsfores6/es7并安装(如果安装后者直接cccs可以一键生成模板块安装前者步骤如下)2、安装后在组件中执行rcc即可生产有状态的组件3、执行rfc即可生产无状态组件自动补充代码1、打开首选项设置2、在搜索框中输入em
- 别具一格,质感拉满 | PITAKA苹果Apple Watch彩碳表带开箱
Stark-C
其他
别具一格,质感拉满|PITAKA苹果AppleWatch彩碳表带开箱我是在前年的时候购买的目前手头这款AppleWatchSeries7,因为是购买的Nike版,所以可以看到它的表带标配为透气孔的运动型表带。耐克版的透气孔表带虽说在一定程度上解决了普通版硅胶表带闷热的情况,但是不怎么耐脏,质感也是一般;更难以接受的就是随着时间的推移,硅胶容易老化的特性也显露出来了,比如说泛白,冬天会变硬等。我在去
- ES7
牛耀
指数运算符(幂):**Array.prototype.includes(value):判断数组中是否包含指定valueconsole.log(2**3);//8letarr=[1,4,5,6,'abc'];console.log(arr.includes('a'));//falseconsole.log(arr.includes('abc'));//trueconsole.log(arr.incl
- async和await的错误处理
六卿
#jsjspromiseasyncawait错误收集
async和await的错误处理sync/await是ES7提出的基于Promise的解决异步的最终方案。真正意义上去解决异步回调的问题,同步流程表达异步操作,本质上async是Generator的语法糖,async和await,用于优化Generator的使用,无需再主动调用next。不需要像Generator去调用next方法,遇到await等待,当前的异步操作完成就往下执行被async修饰的
- ES7 async await
与你清欢_李
async把函数执行成promise返回出来一个promiseawaitawait是一个运算符,如果它等到的是一个promise对象,await就可以等到promise完成,如果是普通表达式,则运算完返回结果
- Elasticsearch(一) 安装和配置启动
king丶绝世佳友
#ElasticSearchelasticsearch大数据bigdata
前言:本环境在阿里轻量级服务器(Ubuntu)上执行(一)环境搭建1.1java环境环境:ES为java语言编写,需要有java环境版本说明:ES5需要Java8及以上的版本ES7开始内置了Java环境aptupdateaptinstalldefault-jre//下载jdk环境验证输入:java--version返回以下代码算成功1.2Elasticsearch下载通过官方下载地址挑选你喜欢的下
- 原来ES7~12分别增加了这些属性呀
一颗冰淇淋
ES6也称为ES2015,于2015年发布,此后每年都有新增一些属性,分别命名为ES7~12,发布的年份分别对应2016年到2021年ES7includes方法数组中新增了includes方法,用来判断数组中是否存在某一元素,在此之前进行这样的判断是使用indexOf判断下标值,小于0时则代表不存在。constlist=['alice','kiki','macus']console.log(lis
- ubuntu安装JDK11
veminhe
系统Ubuntuubuntulinux运维
需求背景:因为ES7的启动和安装分词组件时都需要使用java11,启动的时候我改成了jdk1.7后,能正常启动,但是使用分词插件的时候,却不行了,干脆安装java11好了。1.搜索有哪些版本apt-cachesearchjava112.选择安装的jdk版本sudoapt-getinstallopenjdk-11-jdk3.配置环境变量exportJAVA_HOME=/usr/lib/jvm/jav
- JavaScript实现同步网络请求的方式
倾云鹤
#H5边角料javascriptajax
前言:想提出通用的ajax的请求,但是也需要拿到ajax回调。默认情况下,Ajax请求是异步的,但是可以通过一些方式将ajax变成同步请求。一、使用ES7的Async和Await1通用AjaxPOST框架asyncfunctioncommonAjaxPost(url,argument){letdatas=JSON.stringify(argument);constresult=$.ajax({ur
- 一、单词篇——01人体
宇宙仙姑
一、人体组织1、cell:细胞2、chromosome:染色体3、gene:基因4、tissue:组织5、organ:器官6、bloodvessel:血管7、artery:动脉8、vein:静脉二、面部1、head:头2、hair:头发3、brain:大脑4、cerebraldeath:脑死亡5、forehead:额头=brow6、wrinkles:皱纹=lines7、eyebrow:眉毛8、ey
- ES7.17由于IP变化导致的故障及恢复
zmc@
javadockerkuberneteselasticsearch排障
背景1.k8s升级,导致环境中的ES集群(7.17版本)重启2.集群由于在公有云环境,IP不固定(重启后IP可能发生变化),通过svc进行访问curlxxx-master-svc:9200/_cat/health3.由多个sts一起维护一个ES集群(非operator的模式)xxx-masterxxx-ingestxxx-data注:一般开源的ES,无论在虚拟机还是容器中部署,最佳实践还是固定IP
- JavaScript之ES6新特性01
谭梦寻
javascriptes6前端
概述ECMAScript6(简称ES6)是于2015年6月正式发布的JavaScript语言的标准,正式名ECMAScript2015(ES2015)。它的目标是使得JavaScript语言可以用来编写复杂的大型应用程序,成为企业级开发语言[。另外,一些情况下ES6也泛指ES2015及之后的新增特性,虽然之后的版本应当称为ES7、ES8等为什么学习ES6ES6的版本变动内容最多,具有里程碑意义ES
- [BUUCTF]-PWN:ciscn_2019_es_7解析
Clxhzg
安全linux运维
这道题好像和buu的ciscn_2019_s_3是一模一样的看保护64位,没开canary和pie看ida题目还有能往rax传递0x3B和0xf的函数,这就提示我们可以用系统调用来getshell解法一(系统调用execve):完整exp:frompwnimport*context(log_level='debug')p=process('./es7')ret=0x4003a9pop_rdi=0x
- FSP语言学习(一):对单个process建模
小羊和小何
正式建模语言学习
目录一、什么是正式建模语言1.正式建模语言是进程代数2.为什么要使用正式建模语言二、FiniteStateProcesses1.FSP的基本概念2.FSP—theactionprefix3.FSP—choice4.FSP—non-deterministicchoice5.FSP—indexedprocesses6.FSP—constantsandranges7.FSP—ProcessParamet
- 一些开源革命的幕后人物
发疯的小猿
轻知识笔记
文章目录《FacesofOpenSource》1.INTERNET2.WWW3.UNIX4.BSD5.LINUX6.LANGUAGES7.ROS8.XWINDOW《FacesofOpenSource》是一本关于开源革命幕后人物的持续摄影记录。该项目由著名或无名英雄的肖像组成,他们致力于创造和推进我们的开源技术。此项目的链接来源:https://www.facesofopensource.com/摄
- 三、ElasticSearch集群搭建实战
南天一梦N
中间件技术elasticsearchjavaspring搜索引擎全文检索
本篇ES集群搭建主要是在LinuxVM上,未使用Docker方式,ES版本为7.10,选择7.10版本原因可以看往期文章介绍。一、ElasticSearch集群搭建须知JVM设置Elasticsearch是基于Java运行的,es7.10可以使用jdk1.8~jdk11之间的版本,更高版本还没测试过。ES运行期间很多计算都需要大量内存,所以内存这块需要提前根据机器规格进行适当配置,内存越大越好,单
- ElasticSearch 7.4集群部署 启用x-pack验证 Kibana7.4用户管理
Cocktail_py
Elasticsearchelasticsearch
一.es7.4集群搭建1.1下载es以及修改相应配置1.1.1节点规划内网ip节点192.168.18.126node-1192.168.18.125node-2192.168.18.133node-31.1.2下载cd/optwgethttps://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86
- 四、ES集群安全策略设置 X-pack
南天一梦N
中间件技术elasticsearchjenkins大数据
本文主要是结合ES集群搭建时使用,并且适用于ES7.x以上版本背景及安全策略方案对比ES7.x以下版本默认几乎没有任何安全策略,如果集群IP、端口被暴露,在可访问的情况下任何用户都可以对索引进行管理以及数据的增删改查等,基于此需要考虑设置一定的安全策略,目前常用几种方式如下:类别优点缺点建议nginx对外屏蔽了ES集群的真实IP和端口,配置也较简单只能做一些网络访问安全上面的防护,不能对索引及字段
- es查询单字段去重
J_bean
ESelasticsearches去重CollapseBuilder
1环境es7.102去重方式2.1使用collapse功能注意:使用此方式去重时,不会去除掉不存在去重字段的数据。去重字段只能是数字类型或keyword。对text字段进行去重将报错,报错如下。"unknowntypeforcollapsefield`xxx`,onlykeywordsandnumbersareaccepted"去重举例如下:(1)根据approval查询,且根据standardI
- promise 进阶 —— async / await 结合 bluebird
HuaZi_Myth
一、背景1、Node.js异步控制在之前写的callbackvsasync.jsvspromisevsasync/await里,我介绍了ES6的promise和ES7的async/await的基本用法。可以肯定的是,node.js的异步控制(asynchronousJavaScript),promise就是未来的主流,诸如async.js等非promise库(async.js基于callback)
- Java实现的基于模板的网页结构化信息精准抽取组件:HtmlExtractor
yangshangchuan
信息抽取HtmlExtractor精准抽取信息采集
HtmlExtractor是一个Java实现的基于模板的网页结构化信息精准抽取组件,本身并不包含爬虫功能,但可被爬虫或其他程序调用以便更精准地对网页结构化信息进行抽取。
HtmlExtractor是为大规模分布式环境设计的,采用主从架构,主节点负责维护抽取规则,从节点向主节点请求抽取规则,当抽取规则发生变化,主节点主动通知从节点,从而能实现抽取规则变化之后的实时动态生效。
如
- java编程思想 -- 多态
百合不是茶
java多态详解
一: 向上转型和向下转型
面向对象中的转型只会发生在有继承关系的子类和父类中(接口的实现也包括在这里)。父类:人 子类:男人向上转型: Person p = new Man() ; //向上转型不需要强制类型转化向下转型: Man man =
- [自动数据处理]稳扎稳打,逐步形成自有ADP系统体系
comsci
dp
对于国内的IT行业来讲,虽然我们已经有了"两弹一星",在局部领域形成了自己独有的技术特征,并初步摆脱了国外的控制...但是前面的路还很长....
首先是我们的自动数据处理系统还无法处理很多高级工程...中等规模的拓扑分析系统也没有完成,更加复杂的
- storm 自定义 日志文件
商人shang
stormclusterlogback
Storm中的日志级级别默认为INFO,并且,日志文件是根据worker号来进行区分的,这样,同一个log文件中的信息不一定是一个业务的,这样就会有以下两个需求出现:
1. 想要进行一些调试信息的输出
2. 调试信息或者业务日志信息想要输出到一些固定的文件中
不要怕,不要烦恼,其实Storm已经提供了这样的支持,可以通过自定义logback 下的 cluster.xml 来输
- Extjs3 SpringMVC使用 @RequestBody 标签问题记录
21jhf
springMVC使用 @RequestBody(required = false) UserVO userInfo
传递json对象数据,往往会出现http 415,400,500等错误,总结一下需要使用ajax提交json数据才行,ajax提交使用proxy,参数为jsonData,不能为params;另外,需要设置Content-type属性为json,代码如下:
(由于使用了父类aaa
- 一些排错方法
文强chu
方法
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
- Swing中文件恢复我觉得很难
小桔子
swing
我那个草了!老大怎么回事,怎么做项目评估的?只会说相信你可以做的,试一下,有的是时间!
用java开发一个图文处理工具,类似word,任意位置插入、拖动、删除图片以及文本等。文本框、流程图等,数据保存数据库,其余可保存pdf格式。ok,姐姐千辛万苦,
- php 文件操作
aichenglong
PHP读取文件写入文件
1 写入文件
@$fp=fopen("$DOCUMENT_ROOT/order.txt", "ab");
if(!$fp){
echo "open file error" ;
exit;
}
$outputstring="date:"." \t tire:".$tire."
- MySQL的btree索引和hash索引的区别
AILIKES
数据结构mysql算法
Hash 索引结构的特殊性,其 检索效率非常高,索引的检索可以一次定位,不像B-Tree 索引需要从根节点到枝节点,最后才能访问到页节点这样多次的IO访问,所以 Hash 索引的查询效率要远高于 B-Tree 索引。
可能很多人又有疑问了,既然 Hash 索引的效率要比 B-Tree 高很多,为什么大家不都用 Hash 索引而还要使用 B-Tree 索引呢
- JAVA的抽象--- 接口 --实现
百合不是茶
抽象 接口 实现接口
//抽象 类 ,方法
//定义一个公共抽象的类 ,并在类中定义一个抽象的方法体
抽象的定义使用abstract
abstract class A 定义一个抽象类 例如:
//定义一个基类
public abstract class A{
//抽象类不能用来实例化,只能用来继承
//
- JS变量作用域实例
bijian1013
作用域
<script>
var scope='hello';
function a(){
console.log(scope); //undefined
var scope='world';
console.log(scope); //world
console.log(b);
- TDD实践(二)
bijian1013
javaTDD
实践题目:分解质因数
Step1:
单元测试:
package com.bijian.study.factor.test;
import java.util.Arrays;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import com.bijian.
- [MongoDB学习笔记一]MongoDB主从复制
bit1129
mongodb
MongoDB称为分布式数据库,主要原因是1.基于副本集的数据备份, 2.基于切片的数据扩容。副本集解决数据的读写性能问题,切片解决了MongoDB的数据扩容问题。
事实上,MongoDB提供了主从复制和副本复制两种备份方式,在MongoDB的主从复制和副本复制集群环境中,只有一台作为主服务器,另外一台或者多台服务器作为从服务器。 本文介绍MongoDB的主从复制模式,需要指明
- 【HBase五】Java API操作HBase
bit1129
hbase
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.ha
- python调用zabbix api接口实时展示数据
ronin47
zabbix api接口来进行展示。经过思考之后,计划获取如下内容: 1、 获得认证密钥 2、 获取zabbix所有的主机组 3、 获取单个组下的所有主机 4、 获取某个主机下的所有监控项  
- jsp取得绝对路径
byalias
绝对路径
在JavaWeb开发中,常使用绝对路径的方式来引入JavaScript和CSS文件,这样可以避免因为目录变动导致引入文件找不到的情况,常用的做法如下:
一、使用${pageContext.request.contextPath}
代码” ${pageContext.request.contextPath}”的作用是取出部署的应用程序名,这样不管如何部署,所用路径都是正确的。
- Java定时任务调度:用ExecutorService取代Timer
bylijinnan
java
《Java并发编程实战》一书提到的用ExecutorService取代Java Timer有几个理由,我认为其中最重要的理由是:
如果TimerTask抛出未检查的异常,Timer将会产生无法预料的行为。Timer线程并不捕获异常,所以 TimerTask抛出的未检查的异常会终止timer线程。这种情况下,Timer也不会再重新恢复线程的执行了;它错误的认为整个Timer都被取消了。此时,已经被
- SQL 优化原则
chicony
sql
一、问题的提出
在应用系统开发初期,由于开发数据库数据比较少,对于查询SQL语句,复杂视图的的编写等体会不出SQL语句各种写法的性能优劣,但是如果将应用系统提交实际应用后,随着数据库中数据的增加,系统的响应速度就成为目前系统需要解决的最主要的问题之一。系统优化中一个很重要的方面就是SQL语句的优化。对于海量数据,劣质SQL语句和优质SQL语句之间的速度差别可以达到上百倍,可见对于一个系统
- java 线程弹球小游戏
CrazyMizzz
java游戏
最近java学到线程,于是做了一个线程弹球的小游戏,不过还没完善
这里是提纲
1.线程弹球游戏实现
1.实现界面需要使用哪些API类
JFrame
JPanel
JButton
FlowLayout
Graphics2D
Thread
Color
ActionListener
ActionEvent
MouseListener
Mouse
- hadoop jps出现process information unavailable提示解决办法
daizj
hadoopjps
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
- PHP图片水印缩放类实现
dcj3sjt126com
PHP
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos
- IOS控件学习:UILabel常用属性与用法
dcj3sjt126com
iosUILabel
参考网站:
http://shijue.me/show_text/521c396a8ddf876566000007
http://www.tuicool.com/articles/zquENb
http://blog.csdn.net/a451493485/article/details/9454695
http://wiki.eoe.cn/page/iOS_pptl_artile_281
- 完全手动建立maven骨架
eksliang
javaeclipseWeb
建一个 JAVA 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=App
[-Dversion=0.0.1-SNAPSHOT]
[-Dpackaging=jar]
建一个 web 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=web-a
- 配置清单
gengzg
配置
1、修改grub启动的内核版本
vi /boot/grub/grub.conf
将default 0改为1
拷贝mt7601Usta.ko到/lib文件夹
拷贝RT2870STA.dat到 /etc/Wireless/RT2870STA/文件夹
拷贝wifiscan到bin文件夹,chmod 775 /bin/wifiscan
拷贝wifiget.sh到bin文件夹,chm
- Windows端口被占用处理方法
huqiji
windows
以下文章主要以80端口号为例,如果想知道其他的端口号也可以使用该方法..........................1、在windows下如何查看80端口占用情况?是被哪个进程占用?如何终止等. 这里主要是用到windows下的DOS工具,点击"开始"--"运行",输入&
- 开源ckplayer 网页播放器, 跨平台(html5, mobile),flv, f4v, mp4, rtmp协议. webm, ogg, m3u8 !
天梯梦
mobile
CKplayer,其全称为超酷flv播放器,它是一款用于网页上播放视频的软件,支持的格式有:http协议上的flv,f4v,mp4格式,同时支持rtmp视频流格 式播放,此播放器的特点在于用户可以自己定义播放器的风格,诸如播放/暂停按钮,静音按钮,全屏按钮都是以外部图片接口形式调用,用户根据自己的需要制作 出播放器风格所需要使用的各个按钮图片然后替换掉原始风格里相应的图片就可以制作出自己的风格了,
- 简单工厂设计模式
hm4123660
java工厂设计模式简单工厂模式
简单工厂模式(Simple Factory Pattern)属于类的创新型模式,又叫静态工厂方法模式。是通过专门定义一个类来负责创建其他类的实例,被创建的实例通常都具有共同的父类。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。简单工厂模式是工厂模式家族中最简单实用的模式,可以理解为是不同工厂模式的一个特殊实现。
- maven笔记
zhb8015
maven
跳过测试阶段:
mvn package -DskipTests
临时性跳过测试代码的编译:
mvn package -Dmaven.test.skip=true
maven.test.skip同时控制maven-compiler-plugin和maven-surefire-plugin两个插件的行为,即跳过编译,又跳过测试。
指定测试类
mvn test
- 非mapreduce生成Hfile,然后导入hbase当中
Stark_Summer
maphbasereduceHfilepath实例
最近一个群友的boss让研究hbase,让hbase的入库速度达到5w+/s,这可愁死了,4台个人电脑组成的集群,多线程入库调了好久,速度也才1w左右,都没有达到理想的那种速度,然后就想到了这种方式,但是网上多是用mapreduce来实现入库,而现在的需求是实时入库,不生成文件了,所以就只能自己用代码实现了,但是网上查了很多资料都没有查到,最后在一个网友的指引下,看了源码,最后找到了生成Hfile
- jsp web tomcat 编码问题
王新春
tomcatjsppageEncode
今天配置jsp项目在tomcat上,windows上正常,而linux上显示乱码,最后定位原因为tomcat 的server.xml 文件的配置,添加 URIEncoding 属性:
<Connector port="8080" protocol="HTTP/1.1"
connectionTi