事务处理

_settings

_refresh

_flush

慢查询

存储模块
mmap
local

simplefs

缓存

IO 调节

热点线程

suggesters

_suggest 端点

插件 ================== ================== ================== ==================

提示: 倒排索引的特性让完全匹配一个字段变得非常困难。你将如何确定一个文档只能包含你请求的短语?你将
在索引中找出这个短语,解出所有相关文档 ID,然后扫描索引中每一行来确定文档是否包含其他值。
由此可见,这将变得非常低效和开销巨大。因此, term 和terms 是必须包含操作,而不是必须相等。

控制缓存
大部分直接处理字段的枝叶过滤器(例如term )会被缓存,而像bool 这类的组合过滤器则不会被缓存。
   

然而,有部分枝叶过滤器,默认不会被缓存,因为它们这样做没有意义:
脚本过滤器:
脚本过滤器的结果不能被缓存因为脚本的意义对于 Elasticsearch 来说是不透明的。
Geo 过滤器:
定位过滤器(我们会在【geoloc】中更详细的介绍),通常被用于过滤基于特定用户地理位置的结果。因为每个
用户都有一个唯一的定位,geo 过滤器看起来不太会重用,所以缓存它们没有意义。
日期范围:
使用now 方法的日期范围(例如"now-1h" ),结果值精确到毫秒。每次这个过滤器执行时, now 返回一个
新的值。老的过滤器将不再被使用,所以默认缓存是被禁用的。然而,当now 被取整时(例如, now/d 取最
近一天),缓存默认是被启用的

过滤顺序 ———— 存在短路逻辑语法?
在bool 条件中过滤器的顺序对性能有很大的影响。更详细的过滤条件应该被放置在其他过滤器之前,以便在更
早的排除更多的文档。

[root@guosen elasticsearch]# bin/plugin install cloud-aws
-> Installing cloud-aws...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/cloud-aws/2.4.0/cloud-aws-2.4.0.zip ...
Downloading ................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/cloud-aws/2.4.0/cloud-aws-2.4.0.zip checksums if available ...
Downloading .DONE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
    See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
    for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
Installed cloud-aws into /usr/share/elasticsearch/plugins/cloud-aws
[root@guosen elasticsearch]# ll

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ snapshot +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

curl -XPUT 'http://192.168.4.140:9200/_snapshot/s3_dev_backup' -d '{
"type": "s3",
"settings": {
"access_key": "GaXTPHCpH2hKhoactwLB",
"secret_key": "ZtF8lj0tQt7s50zcCrcjiKhTOcwLIToeuEWRov1T",
"bucket": "Vault1",
"endpoint": "192.168.5.81",
"base_path": "elasticsearch",
"max_retries": 3
}
}'

[root@guosen tomcat-master]# curl -XPUT 'http://192.168.4.140:9200/_snapshot/s3_dev_backup' -d '{
"type": "s3",
"settings": {
"access_key": "GaXTPHCpH2hKhoactwLB",
"secret_key": "ZtF8lj0tQt7s50zcCrcjiKhTOcwLIToeuEWRov1T",
"bucket": "Vault1",
"endpoint": "192.168.5.81",
"base_path": "",
"max_retries": 3
}
}'

{"error":{"root_cause":[{"type":"repository_exception","reason":"[s3_dev_backup] failed to create repository"}],"type":"repository_exception","reason":"[s3_dev_backup] failed to create repository","caused_by":{"type":"creation_exception","reason":"Guice creation errors:\n\n1) Error injecting constructor, com.amazonaws.AmazonClientException: Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\n at org.elasticsearch.repositories.s3.S3Repository.(Unknown Source)\n while locating org.elasticsearch.repositories.s3.S3Repository\n while locating org.elasticsearch.repositories.Repository\n\n1 error","caused_by":{"type":"amazon_client_exception","reason":"Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","caused_by":{"type":"s_s_l_handshake_exception","reason":"sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","caused_by":{"type":"validator_exception","reason":"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","caused_by":{"type":"sun_cert_path_builder_exception","reason":"unable to find valid certification path to requested target"}}}}}},"status":500}[root@guosen tomcat-master]#

PUT _snapshot/my_s3_repository
{
"type": "s3",
"settings": {
"bucket": "my_bucket_name",
"region": "us-west",
"endpoint": "192.168.5.81"
}
}

curl -u admin:password -XPUT "http://192.168.4.140:9200/_snapshot/my_s3_repository" -d'
{
"type": "s3",
"settings": {
"bucket": "Vault1",
"access_key": "GaXTPHCpH2hKhoactwLB",
"secret_key": "ZtF8lj0tQt7s50zcCrcjiKhTOcwLIToeuEWRov1T",
"endpoint": "192.168.5.81"
}
}'

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ snapshot success !!! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cloud:
aws:
access_key: GaXTPHCpH2hKhoactwLB
secret_key: ZtF8lj0tQt7s50zcCrcjiKhTOcwLIToeuEWRov1T

protocol: http
s3:
protocol: http
ec2:
protocol: https

PUT _snapshot/my_s3_repository
{
"type": "s3",
"settings": {
"bucket": "Vault1",
"endpoint": "192.168.5.81"
}
}

PUT /_snapshot/my_s3_repository/dev_3?wait_for_completion=true
{
"indices": "bb, ee", -- 只有前一个生效, 不知道为什么。。
"ignore_unavailable": "true",
"include_global_state": false
}

POST /_snapshot/my_s3_repository/dev_3/_restore
{
"indices": "bb", ------ 必须是此前PUT 进去的 对应的 indices, 否则失败
"ignore_unavailable": "true",
"include_global_state": false
}

DELETE /_snapshot/my_s3_repository/dev_2

GET _snapshot/my_s3_repository/_all

GET _snapshot/my_s3_repository/dev_2/_status

GET _snapshot/my_s3_repository/dev_2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ success !!! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gateway +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gateway:
type: s3
s3:
bucket: Vault1

[2016-10-19 10:51:12,843][ERROR][bootstrap ] Exception
org.elasticsearch.common.settings.NoClassSettingsException: Failed to load class setting [gateway.type] with value [s3]
at org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:476)
at org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:464)
at org.elasticsearch.gateway.GatewayModule.spawnModules(GatewayModule.java:43)
at org.elasticsearch.common.inject.ModulesBuilder.add(ModulesBuilder.java:44)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:201)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.gateway.s3.S3GatewayModule
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:474)
... 8 more

如何将本地jar 自动归档到 maven中 ?

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ es cloud ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

aws云插件:
https://github.com/elastic/elasticsearch-cloud-aws
bin/plugin install elasticsearch/elasticsearch-cloud-aws/VERSION

repository插件:
https://github.com/elastic/elasticsearch-cloud-aws

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ es jdbc river ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://192.168.4.123:3306/data_linkapp",
"user" : "root",
"password" : "mysql2012",
"sql" : "select * from jweb_users",
"index" : "myindex",
"type" : "mytype",
...
}
}

java
-cp "${lib}/*"
-Dlog4j.configurationFile=${bin}/log4j2.xml
org.xbib.tools.Runner
org.xbib.tools.JDBCImporter
statefile.json

export JDBC_IMPORTER_HOME=/es/elasticsearch-jdbc-1.7.3.0
echo $JDBC_IMPORTER_HOME
bin=$JDBC_IMPORTER_HOME/bin
lib=$JDBC_IMPORTER_HOME/lib

java -cp "${lib}/*" -Dlog4j.configurationFile=${bin}/log4j2.xml org.xbib.tools.Runner org.xbib.tools.JDBCImporter statefile.json

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ es aws river ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

curl -XPUT 'http://localhost:9200/_river/mys3docs/_meta' -d '{
"type": "amazon-s3",
"amazon-s3": {
"endpoint": "192.168.5.81",
"accessKey": "GaXTPHCpH2hKhoactwLB",
"secretKey": "ZtF8lj0tQt7s50zcCrcjiKhTOcwLIToeuEWRov1T",
"name": "My Amazon S3 feed",
"bucket" : "Vault1",
"pathPrefix": "Work/",
"update_rate": 900000,
"includes": ".doc,.pdf",
"excludes": ".zip,.gz"
}
}'

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ JAVA 源码安装问题 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

User Settings

User settings that will be appended to elasticsearch.yml. Currently we support custom Watcher configuration for Slack and Hipchat integrations.

Example:

watcher.actions.slack.service:
account:
monitoring:
url: https://hooks.slack.com/services/T0A6BLEEA/B0A6D1PRD/XYZ123
message_defaults:
from: Watcher

[WARNING] JVM J0: stdout was not empty, see: E:\downloads\ff\elasticsearch-1.7.5
\elasticsearch-1.7.5\target\junit4-J0-20161014_093435_578.sysout
[INFO] >>> JVM J0: stdout (verbatim) ----
[INFO] Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been
disabled.
Java HotSpot(TM) Client VM warning: Try increasing the code cache size using -XX
:ReservedCodeCacheSize=
Code Cache [0x02680000, 0x04608000, 0x04680000)
total_blobs=16936 nmethods=16303 adapters=560 free_code_cache=523Kb largest_fre
e_block=511616

[INFO] <<< JVM J0: EOF ----

Tests with failures:

  • org.elasticsearch.bwcompat.OldIndexBackwardsCompatibilityTests.testOldIndexe
    s

[INFO] JVM J0: 0.68 .. 5051.77 = 5051.09s
[INFO] Execution time total: 1 hour 24 minutes 11 seconds
[INFO] Tests summary: 762 suites, 5109 tests, 1 error, 70 ignored (61 assumption

s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:25 h
[INFO] Finished at: 2016-10-14T10:58:47+08:00
[INFO] Final Memory: 20M/131M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-p
lugin:2.1.2:junit4 (tests) on project elasticsearch: Execution tests of goal com
.carrotsearch.randomizedtesting:junit4-maven-plugin:2.1.2:junit4 failed: E:\down
loads\ff\elasticsearch-1.7.5\elasticsearch-1.7.5\target\junit4-ant-3627316572921
14667.xml:16: There were test failures: 762 suites, 5109 tests, 1 error, 70 igno
red (61 assumptions) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
nException

请使用 source 7 或更高版本以启用 diamond 运算符

网络问题啊! 重试几次就行了!
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
-plugins/27/maven-plugins-27.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32:55 min
[INFO] Finished at: 2016-10-17T15:41:21+08:00
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.3 or one of its
dependencies could not be resolved: Failed to read artifact descriptor for org.a
pache.maven.plugins:maven-compiler-plugin:jar:3.3: Could not transfer artifact o
rg.apache.maven.plugins:maven-plugins:pom:27 from/to central (https://repo.maven
.apache.org/maven2): Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

+++++

Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jack
son-databind/2.5.2/jackson-databind-2.5.2.jar (1116 KB at 7.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:18 h
[INFO] Finished at: 2016-10-17T17:48:33+08:00
[INFO] Final Memory: 11M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project elasticsearch-jdbc: Could not resolve
dependencies for project org.xbib.elasticsearch.importer:elasticsearch-jdbc:jar:
1.7.3.0: The following artifacts could not be resolved: org.elasticsearch:elasti
csearch:jar:1.7.3, org.xbib.elasticsearch.plugin:elasticsearch-support:jar:1.7.3
.0, org.xbib.jdbc:jdbc-driver-csv:jar:1.0.0: Could not transfer artifact org.ela
sticsearch:elasticsearch:jar:1.7.3 from/to central (https://repo.maven.apache.or
g/maven2): GET request of: org/elasticsearch/elasticsearch/1.7.3/elasticsearch-1
.7.3.jar from central failed: Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException

E:\downloads\ff\elasticsearch-jdbc-1.7.3.0\elasticsearch-jdbc-1.7.3.0>
E:\downloads\ff\elasticsearch-jdbc-1.7.3.0\elasticsearch-jdbc-1.7.3.0>
E:\downloads\ff\elasticsearch-jdbc-1.7.3.0\elasticsearch-jdbc-1.7.3.0>
E:\downloads\ff\elasticsearch-jdbc-1.7.3.0\elasticsearch-jdbc-1.7.3.0>
E:\downloads\ff\elasticsearch-jdbc-1.7.3.0\elasticsearch-jdbc-1.7.3.0>mvn instal
l
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building elasticsearch-jdbc 1.7.3.0
[INFO] ------------------------------------------------------------------------
Downloading: http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsea
rch-support/1.7.3.0/elasticsearch-support-1.7.3.0.jar
Downloading: http://xbib.org/repository/org/xbib/jdbc/jdbc-driver-csv/1.0.0/jdbc
-driver-csv-1.0.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/elasticsearch/elasticsearc
h/1.7.3/elasticsearch-1.7.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:33 min
[INFO] Finished at: 2016-10-17T18:07:10+08:00
[INFO] Final Memory: 10M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project elasticsearch-jdbc: Could not resolve
dependencies for project org.xbib.elasticsearch.importer:elasticsearch-jdbc:jar:
1.7.3.0: The following artifacts could not be resolved: org.elasticsearch:elasti
csearch:jar:1.7.3, org.xbib.elasticsearch.plugin:elasticsearch-support:jar:1.7.3
.0, org.xbib.jdbc:jdbc-driver-csv:jar:1.0.0: Could not transfer artifact org.ela
sticsearch:elasticsearch:jar:1.7.3 from/to central (https://repo.maven.apache.or
g/maven2): GET request of: org/elasticsearch/elasticsearch/1.7.3/elasticsearch-1
.7.3.jar from central failed: Premature end of Content-Length delimited message
body (expected: 14058351; received: 4081816 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException

+++++

可以 直接从 https://repo.maven.apache.org/maven2/org/elasticsearch/elasticsearch/ 下载对应版本。。。。 不过速度是一样的!

或者换一个地方从github下载源码, 自己编译。。 https://github.com/elastic/elasticsearch/releases?after=v2.1.2

+++++++++++++++++++
加这个后...

org.apache.maven.plugins
maven-surefire-plugin

true

+++

main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (invalid-patterns) @ elasticsearch ---
[INFO] Executing tasks

main:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.397 s
[INFO] Finished at: 2016-10-18T10:45:42+08:00
[INFO] Final Memory: 11M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (invalid-patterns) on project elasticsearch: An Ant BuildException has occur
ed: The following files contain tabs or
[ERROR] nocommits:
[ERROR] * pom.xml
[ERROR] around Ant part ...The following files
contain tabs or... @ 23:37 in E:\downloads\ff\elasticsearch-1.7.3\elasticsearch
-1.7.3\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

++++++++++++++

测试已经跳过了,但是还是有 很多的 suites , why

[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ elasticsearch ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- junit4-maven-plugin:2.1.2:junit4 (tests) @ elasticsearch ---
[INFO] says olá! Master seed: DED88DE5D52B128
[INFO] Your default console's encoding may not display certain unicode glyphs:
BK
[INFO] Parsed test filtering expression: default
Executing 761 suites with 1 JVM.

Started J0 PID(6968@vbirdcpu2lk).
Suite: org.elasticsearch.search.aggregations.metrics.GeoBoundsTests
Completed in 19.40s, 9 tests

Suite: org.elasticsearch.broadcast.BroadcastActionsTests
Completed in 2.67s, 1 test

Suite: org.elasticsearch.index.engine.ShadowEngineTests
Completed in 4.27s, 9 tests

+++++++++++++ target\test-classes does not exist 这个也报错, 我醉了。。。。。。。。。。。。。。
[INFO] --- maven-antrun-plugin:1.7:run (create-heapdump-directory) @ elasticsear
ch ---
[INFO] Executing tasks

main:
[echo] Creating heapdump directory
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ el
asticsearch ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ elastic
search ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- forbiddenapis:1.8:testCheck (check-forbidden-test-apis) @ elasticsear
ch ---
[INFO] Scanning for classes to check...
[WARNING] Classes directory does not exist, forbiddenapis check skipped: E:\down
loads\ff\elasticsearch-1.7.3\elasticsearch-1.7.3\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ elasticsearch ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- junit4-maven-plugin:2.1.2:junit4 (tests) @ elasticsearch ---
[INFO] says salut! Master seed: E89324A69063F131
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:13 min
[INFO] Finished at: 2016-10-18T11:04:57+08:00
[INFO] Final Memory: 21M/128M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-p
lugin:2.1.2:junit4 (tests) on project elasticsearch: Execution tests of goal com
.carrotsearch.randomizedtesting:junit4-maven-plugin:2.1.2:junit4 failed: E:\down
loads\ff\elasticsearch-1.7.3\elasticsearch-1.7.3\target\junit4-ant-5776469301872
219983.xml:16: E:\downloads\ff\elasticsearch-1.7.3\elasticsearch-1.7.3\target\te
st-classes does not exist. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
nException

++++++++++++

+++++++++++++++++

[root@guosen config]# Exception in thread "main" java.lang.IllegalArgumentException: script.disable_dynamic is not a supported setting, replace with fine-grained script settings.
Dynamic scripts can be enabled for all languages and all operations by replacing script.disable_dynamic: false with script.inline: on and script.indexed: on in elasticsearch.yml
at org.elasticsearch.script.ScriptService.(ScriptService.java:145)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at <<>>
at org.elasticsearch.node.Node.(Node.java:213)
at org.elasticsearch.node.Node.(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)

es 高级的更多相关文章

  1. 009 webpack将ES高级语法进行装换

    一:ES高级转换 1.main.js中的js不能解析 // js的主要入口 import $ from 'jquery' import './css/index.css' import './css/ ...

  2. es高级部分

    1 关于机器 配置. 内存:上亿的数据一般需要64G内存的服务器.劲量不要使用小于32G 内存的服务器. cpu:es 对cpu 要求依赖不如内存.一般要求2-8 核就可以了. 磁盘:es 对磁盘依赖 ...

  3. ES高级查询

    Query Content 在查询过程中,除了判断文档是否满足查询条件外,ES还会计算一个_score来标识匹配的程度,旨在判断目标文档和查询条件的匹配有多好 # POST 192.168.100.1 ...

  4. es高级用法之冷热分离

    背景 用户需求:近期数据查询速度快,较远历史数据运行查询速度慢? 对于开发人员而言即数据的冷热分离,实现此功能有2个前提条件: 硬件:处理速度不同的硬件,最起码有读写速度不同的硬盘,如SSD.机械硬盘 ...

  5. Loggly:提高ElasticSearch性能的九个高级配置技巧

    Loggly日志管理服务在其很多核心功能里使用ElasticSearch作为搜索引擎.Jon Gifford在其文章“ElasticSearch vs Solr”中指出,日志管理领域对搜索技术有了更高 ...

  6. ES之五:ElasticSearch聚合

    前言 说完了ES的索引与检索,接着再介绍一个ES高级功能API – 聚合(Aggregations),聚合功能为ES注入了统计分析的血统,使用户在面对大数据提取统计指标时变得游刃有余.同样的工作,你在 ...

  7. ES使用中的总结整理

    最近项目中使用了ES搜索,开始时自己搭建了ES环境做测试,后面申请了公司的云平台应用, 对接ES的过程中颇具波折,遇到了很多问题,在这里统一整理记录下: 1,ES的9200 及 9300端口说明 92 ...

  8. 3 - 基于ELK的ElasticSearch 7.8.x技术整理 - 高级篇( 偏理论 )

    4.ES高级篇 4.1.集群部署 集群的意思:就是将多个节点归为一体罢了( 这个整体就有一个指定的名字了 ) 4.1.1.window中部署集群 - 了解即可 把下载好的window版的ES中的dat ...

  9. 4 - 基于ELK的ElasticSearch 7.8.x技术整理 - 高级篇( 续 ) - 更新完毕

    0.前言 这里面一些理论和前面的知识点挂钩的,所以:建议看一下另外3篇知识内容 基础篇:https://www.cnblogs.com/xiegongzi/p/15684307.html java操作 ...

随机推荐

  1. Jquery模板-----JsRender

    重新排版与堂堂88 先看下简单示例: <script type="type='text/html'" id="jianren"> <div c ...

  2. 黑域,黑阈 Permission denied

    在执行: adb -d shell sh /data/data/me.piebridge.brevent/brevent.sh 时遇到Permission denied,多运行一次就好了. 完整的有两 ...

  3. 细看Thread的 start() 和 run()方法

    1.start(): 我们先来看看API中对于该方法的介绍: 使该线程开始执行:Java 虚拟机调用该线程的 run 方法. 结果是两个线程并发地运行:当前线程(从调用返回给 start 方法)和另一 ...

  4. VMWare VSphere6.0的实验笔记

    在现有的一个vsphere6.0虚拟平台上环境下搭建一套VSphere环境平台. 任务1: 1.建立1个win2008主机,192.168.12.10.16Gram,40G硬盘1独立存储+150G硬盘 ...

  5. 【json】使用json和java对象的序列化和反序列化

    TOC [[TOC]] 依赖 fastxml Jackson JSON Tutorial Do-JSON-with-Jackson.pdf-很详细 Creating Java List from JS ...

  6. Spring-boot+Spring-batch+hibernate+Quartz简单批量读文件写数据用例

    本文程序集成了Spring-boot.Spring-batch.Spring-data-jpa.hibernate.Quartz.H2等.完整代码在Github上共享,地址https://github ...

  7. react基础

    上一篇文章主要是记录了自己是如何创建react项目的,今天则主要是总结一下react中的一个基础入门知识,包括数据定义和绑定.属性绑定.数组循环等等. 组件继承和挂载 当我们使用脚手架或者命令行创建一 ...

  8. 学习笔记之Everything

    Everything (software) - Wikipedia https://en.wikipedia.org/wiki/Everything_(software) Everything is ...

  9. word搜狗输入失效切换方法

  10. 进程优先和ACL

    linux上进程有5种状态: 1. 运行(正在运行或在运行队列中等待) 2. 中断(休眠中, 受阻, 在等待某个条件的形成或接受到信号) 3. 不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有 ...