说好不打脸

PHP是世界上最好的语言


  • 首页

  • 分类

  • 归档

  • 标签

  • 搜索

elasticsearch-jdbc 插件的使用

发表于 2016-01-14   |   字数 1,006   |   阅读预计 6 分钟   |   分类于 开发日记   |     |   阅读次数

elasticsearch-1.7.1
elasticsearch-jdbc-1.7.1

https://github.com/jprante/elasticsearch-jdbc

  • 插件下载及安装

http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/1.7.1.0/elasticsearch-jdbc-1.7.1.0-dist.zip

  • 解压及使用

该插件不需要安装,直接解压即可。

注:

使用该插件时需要禁用shield插件

windows平台下使用时需要修改其示例脚本

@echo off

set DIR=%~dp0
set LIB="%DIR%\..\lib\*"
set BIN="%DIR%\..\bin\*"

REM ???
echo {^
"type" : "jdbc",^
"jdbc" : {^
"url" : "jdbc:mysql://localhost:3306/xiaoboedu",^
"user" : "root",^
"password" : "root",^
"sql" : "SELECT title,subtitle FROM course",^
"autocommit" : true,^
"treat_binary_as_string" : true,^
"elasticsearch" : {^
"cluster" : "elasticsearch",^
"host" : "localhost",^
"port" : 9300^
},^
"index" : "course",^
"type" : "course"^
}^
}^ | "%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="file://%DIR%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"

其具体使用及配置参见https://github.com/jprante/elasticsearch-jdbc

阅读全文 »

Marvel 插件的安装

发表于 2016-01-13   |   字数 152   |   阅读预计 1 分钟   |   分类于 开发日记   |     |   阅读次数

https://www.elastic.co/guide/en/marvel/current/_installation.html

  • Simple install
bin/plugin -i elasticsearch/marvel/latest
  • Installing previous versions
bin/plugin -i elasticsearch/marvel/1.0.2
  • Manual download

https://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip

bin/plugin -i marvel -u file://PATH_TO_MARVEL_ZIP_FILE

elasticsearch插件及安装

发表于 2016-01-12   |   字数 550   |   阅读预计 3 分钟   |   分类于 开发日记   |     |   阅读次数

插件列表

http://www.searchtech.pro/elasticsearch-plugins

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html

插件安装教程

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html

  • 在线安装

elasticsearch-head 插件在线安装 https://github.com/mobz/elasticsearch-head

plugin -install mobz/elasticsearch-head

bigdesk 插件在线安装 http://bigdesk.org/

plugin -install lukas-vlcek/bigdesk
阅读全文 »

elasticsearch rest api 快速上手

发表于 2016-01-11   |   字数 11,683   |   阅读预计 69 分钟   |   分类于 开发日记   |     |   阅读次数

注:本文档中除无特别说明,请求方式均为GET。所有的请求均在Sense中测试通过

遵循的格式为

curl -X<REST Verb> <Node>:<Port>/<Index>/<Type>/<ID>

集群健康查看

  • http://127.0.0.1:9200/_cat/health?v
epoch      timestamp cluster       status node.total node.data shards pri relo init unassign pending_tasks 
1441940569 11:02:49 elasticsearch yellow 1 1 7 7 0 0 7 0
  • http://127.0.0.1:9200/_cat/nodes?v
host ip            heap.percent ram.percent load node.role master name     
acer 169.254.9.202 32 52 d * Mys-Tech

列出所有的indices

  • http://127.0.0.1:9200/_cat/indices?v
health status index              pri rep docs.count docs.deleted store.size pri.store.size 
yellow open .marvel-2015.09.11 1 1 3233 0 10.5mb 10.5mb
yellow open .marvel-2015.09.10 1 1 1996 0 3.9mb 3.9mb
yellow open news 5 1 3455 0 17.8mb 17.8mb
阅读全文 »

在hadoop-2.2.0基础上基于sqoop源码编译构建sqoop-1.4.4

发表于 2014-05-05   |   字数 11,595   |   阅读预计 72 分钟   |   分类于 云计算   |     |   阅读次数
在hadoop-2.2.0基础上基于sqoop源码编译构建sqoop-1.4.4
阅读全文 »

mahout 0.9 for hadoop 2.2.0 源码编译

发表于 2014-04-29   |   字数 1,125   |   阅读预计 7 分钟   |   分类于 云计算   |     |   阅读次数
mahout 0.9 for hadoop 2.2.0 源码编译
阅读全文 »

mahout-0.9和hadoop-2.2.0整合安装环境搭建

发表于 2014-04-28   |   字数 26,596   |   阅读预计 164 分钟   |   分类于 云计算   |     |   阅读次数
mahout-0.9和hadoop-2.2.0整合安装环境搭建
阅读全文 »

Phoenix 4.x HBase 0.98.1安装

发表于 2014-04-27   |   字数 5,537   |   阅读预计 34 分钟   |   分类于 云计算   |     |   阅读次数
Phoenix 4.x HBase 0.98.1安装
阅读全文 »

hive实战之使用csdn600万数据统计csdn前50个常用密码(top50)

发表于 2014-04-23   |   字数 2,971   |   阅读预计 17 分钟   |   分类于 云计算   |     |   阅读次数
hive实战之使用csdn600万数据统计csdn前50个常用密码(top50)
阅读全文 »

flume-1.4.0整合hbase-0.98.0实战数据采集,同时将采集到的数据放入hbase和hdfs中

发表于 2014-04-21   |   字数 71,154   |   阅读预计 442 分钟   |   分类于 云计算   |     |   阅读次数
flume-1.4.0整合hbase-0.98.0实战数据采集,同时将采集到的数据放入hbase和hdfs中
阅读全文 »
1234…6
说好不打脸

说好不打脸

53 日志
339.5k 总字数
32 标签
RSS
GitHub Weibo
Creative Commons
Links
  • Cheat Sheets
  • DigitalOcean
  • LinOxide
  • HowtoForge
  • UbuntuHandbook
  • Vultr Docs
  • Programming Languages
  • fuckingblocksyntax
  • goshdarnblocksyntax
  • fuckingclosuresyntax
  • goshdarnclosuresyntax
  • fuckingswiftblocksyntax
  • fuckingswiftsyntax
  • fuckinggodateformat
  • swiftdoc
  • swifttoolbox
  • codingexplorer
  • SoSoSwift
  • ioscreator
  • iOS Developer Tips
  • AppCoda
  • Ray Wenderlich
  • shrikar
  • tutsplus
  • smashingmagazine
  • sitepoint
  • g8production
  • CocoaCats
© 2013 - 2016 说好不打脸