使用 grails 2.0 和runtime ":elasticsearch:0.20.6.1-SNAPSHOT"
.
谁能告诉我如何在弹性搜索模式下使用传输模式运行我的应用程序?
我的 config.groovy 文件中有以下配置。
elasticSearch {
/**
* Possible values : "local", "node", "transport"
*/
client.mode = 'transport'
client.transport.sniff = true
client.hosts = [
[host: '10.210.14.131', port: 9300]
]
bulkIndexOnStartup = true
}
当我运行应用程序时,它会通过堆栈跟踪引发以下错误。
| Error 2013-09-16 17:07:29,612 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'searchableClassMappingConfigurator': Invocation of init method failed; nested exception is org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution
Message: Error creating bean with name 'searchableClassMappingConfigurator': Invocation of init method failed; nested exception is org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by UncategorizedExecutionException: Failed execution
->> 88 | rethrowExecutionException in org.elasticsearch.action.support.AdapterActionFuture
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 49 | actionGet in ''
| 123 | installMappings in org.grails.plugins.elasticsearch.mapping.SearchableClassMappingConfigurator
| 50 | configureAndInstallMappings in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by IndexOutOfBoundsException: Readable byte limit exceeded: 67
->> 236 | readByte in org.elasticsearch.common.netty.buffer.AbstractChannelBuffer
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 132 | readByte in org.elasticsearch.transport.netty.ChannelBufferStreamInput
| 35 | readByte in org.elasticsearch.common.io.stream.AdapterStreamInput
| 267 | readBoolean in org.elasticsearch.common.io.stream.StreamInput
| 170 | readFrom in org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest
| 208 | handleRequest in org.elasticsearch.transport.netty.MessageChannelHandler
| 108 | messageReceived in ''
| 70 | handleUpstream in org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler
| 564 | sendUpstream in org.elasticsearch.common.netty.channel.DefaultChannelPipeline
| 791 | sendUpstream in org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext
| 296 | fireMessageReceived in org.elasticsearch.common.netty.channel.Channels
| 462 | unfoldAndFireMessageReceived in org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder
| 443 | callDecode in ''
| 303 | messageReceived in ''
| 70 | handleUpstream in org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler
| 564 | sendUpstream in org.elasticsearch.common.netty.channel.DefaultChannelPipeline
| 791 | sendUpstream in org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext
| 74 | handleUpstream in org.elasticsearch.common.netty.OpenChannelsHandler
| 564 | sendUpstream in org.elasticsearch.common.netty.channel.DefaultChannelPipeline
| 559 | sendUpstream in ''
| 268 | fireMessageReceived in org.elasticsearch.common.netty.channel.Channels
| 255 | fireMessageReceived in ''
| 88 | read . . in org.elasticsearch.common.netty.channel.socket.nio.NioWorker
| 109 | process in org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker
| 312 | run . . in org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector
| 90 | run in org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker
| 178 | run . . in org.elasticsearch.common.netty.channel.socket.nio.NioWorker
| 108 | run in org.elasticsearch.common.netty.util.ThreadRenamingRunnable
| 42 | run . . in org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . in ''
^ 662 | run in java.lang.Thread