自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

www.hohode.com

欢迎访问新的博客地址 www.hohode.com

  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 jar的解压和压缩

解压unzip a.jar -d /path/dircitiroy/app压缩jar cvf a.jar app

2016-10-28 16:35:18 707

原创 使用nc传输数据

参考http://blog.csdn.net/slvher/article/details/9668749 http://blog.csdn.net/caoshuming_500/article/details/23755713发送端nc 3.1.5.7 9999 < demo.txt接收端(3.1.5.7)nc -l 9999 >demo.txt

2016-10-28 13:17:04 3028

原创 spark和elasticsearch的整合

下载jar包 https://www.elastic.co/downloads/hadoop将elasticsearch-spark_2.10-2.4.0.jar加入类路径里面 import org.elasticsearch.spark.sql._ // DataFrame schema automatically inferred val conf

2016-10-26 14:11:56 3137

原创 在eclipse中可以正常运行,但是打包之后就无法通过java运行了

使用mvn dependency:copy-dependencies 抽取jar到target/dependency然后java -Djava.ext.dirs=target:target/dependency com.appcook.Main 执行java.ext.dirs中的多个目录之间使用英文冒号

2016-10-25 20:19:10 3970

原创 Elasticsearch中的一些知识

index.query.default_field 可以设置默认搜索的字段。详细参考http://stackoverflow.com/questions/10518404/in-elasticsearch-should-we-use-default-field-in-query-string-for-ngram-analyzerindex.mapping.ignore_malformed:全局设置i

2016-10-19 19:01:37 835

原创 elasticsearch中的doc_values

PUT/music/_mapping/song{ “properties”: { “tag”: { “type”: “string”, “index”: “not_analyzed”, “doc_values”: true } }}这个就会使用磁盘存储这个字段,而不是存储在内存中

2016-10-19 18:26:33 2190

原创 使用elasticsearch的index template

静态模板 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html动态模板PUT /_template/product{ "order": 0, "template": "product*_*", "mappings": { "_default_": {

2016-10-18 12:06:31 1008

原创 elasticsearch sql的使用

先参考https://yq.aliyun.com/articles/60517 编译完之后需要经jar包加入到你的项目还需要三个依赖: <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId>

2016-10-17 20:21:17 2137

原创 elasticsearch sql的安装

首先参考https://github.com/NLPchina/elasticsearch-sql 有的时候使用上述url中介绍的安装方式安装不上,这个时候就需要手动安装了。 1.下载es-sql 比如我使用的es的版本是2.3.3 https://github.com/NLPchina/elasticsearch-sql/releases/download/2.3.3.0/elastics

2016-10-17 12:24:38 5866 1

原创 elasticsearch查看所有index

curl 'localhost:9200/_cat/indices?v'

2016-10-17 12:18:38 62512

原创 es 为某个type创建mapping

https://www.elastic.co/guide/en/elasticsearch/guide/current/mapping-intro.htmlPUT /gb/_mapping/tweet{ "properties" : { "tag" : { "type" : "string", "index": "not_analyzed"

2016-10-13 15:26:26 3294

原创 使用maven打包,scala类都没有打包进去

很可能是少了scala的依赖,加上相关的依赖就可以了。<dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.10.6</version></dependency>

2016-10-09 11:25:33 6375

原创 mysq数据从一个数据库的表复制到另一个数据库的表

create table t_products like app.t_products;insert into test.t_products select * from app.t_products;

2016-10-08 11:44:03 1372

hadoop2 文件读写原理

这个文档讲述了hadoop2的文件读写原理,不过是英文的,英文不好的同学下载的时候,要谨慎了

2015-06-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除