- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 使用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 3044
原创 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 3144
原创 在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 3996
原创 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 843
原创 elasticsearch中的doc_values
PUT/music/_mapping/song{ “properties”: { “tag”: { “type”: “string”, “index”: “not_analyzed”, “doc_values”: true } }}这个就会使用磁盘存储这个字段,而不是存储在内存中
2016-10-19 18:26:33 2200
原创 使用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 1028
原创 elasticsearch sql的使用
先参考https://yq.aliyun.com/articles/60517 编译完之后需要经jar包加入到你的项目还需要三个依赖: <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId>
2016-10-17 20:21:17 2154
原创 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 5880 1
原创 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 3311
原创 使用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 6424
原创 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 1391
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人