• es 高级


    事务处理

    _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 @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    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: 1) 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 at org.elasticsearch.repositories.s3.S3Repository.(Unknown Source) while locating org.elasticsearch.repositories.s3.S3Repository while locating org.elasticsearch.repositories.Repository 1 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:downloadsffelasticsearch-1.7.5
    elasticsearch-1.7.5 argetjunit4-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
    loadsffelasticsearch-1.7.5elasticsearch-1.7.5 argetjunit4-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:downloadsffelasticsearch-jdbc-1.7.3.0elasticsearch-jdbc-1.7.3.0>
    E:downloadsffelasticsearch-jdbc-1.7.3.0elasticsearch-jdbc-1.7.3.0>
    E:downloadsffelasticsearch-jdbc-1.7.3.0elasticsearch-jdbc-1.7.3.0>
    E:downloadsffelasticsearch-jdbc-1.7.3.0elasticsearch-jdbc-1.7.3.0>
    E:downloadsffelasticsearch-jdbc-1.7.3.0elasticsearch-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:downloadsffelasticsearch-1.7.3elasticsearch
    -1.7.3 argetantrunuild-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 est-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
    loadsffelasticsearch-1.7.3elasticsearch-1.7.3 arget est-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
    loadsffelasticsearch-1.7.3elasticsearch-1.7.3 argetjunit4-ant-5776469301872
    219983.xml:16: E:downloadsffelasticsearch-1.7.3elasticsearch-1.7.3 arget e
    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)

  • 相关阅读:
    [USACO06NOV]Corn Fields(状压DP)
    关灯问题II (状态压缩 BFS)
    天梯---至多删三个字符(DP)
    天梯
    蓝桥
    天梯
    天梯
    天梯
    天梯
    蓝桥
  • 原文地址:https://www.cnblogs.com/FlyAway2013/p/5993601.html
Copyright © 2020-2023  润新知