Copy Elasticseach from one machine to another


(Kartavya) #1

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to
another in different network.
The copy is working fine on the same machine but facing trouble while
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,
Pulkit Agrawal


(Karussell) #2

What is the exact stack trace? And did you copy it via command line or
via scan search type + reindexing (recommended) ?

Peter.

On Nov 9, 6:42 pm, Pulkit Agrawal pulkitdot...@gmail.com wrote:

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to
another in different network.
The copy is working fine on the same machine but facing trouble while
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,
Pulkit Agrawal


(Kartavya) #3

Here is the complete Stack Trace

java.lang.ArrayIndexOutOfBoundsException: -1117
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:172)
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:144)
at
org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre
amInput.java:215)
at
org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput
.java:115)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo
aded(ByteSourceBootstrapper.java:507)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn
coding(ByteSourceBootstrapper.java:129)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc
tParser(ByteSourceBootstrapper.java:224)
at
org.elasticsearch.common.jackson.JsonFactory._createJsonParser(JsonFa
ctory.java:785)
at
org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac
tory.java:561)
at
org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json
XContent.java:80)
at
org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG
ateway.java:376)
at
org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV
ersion(LocalGateway.java:311)
at
org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate
way.java:282)
at
org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav
a:128)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:
109)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:
187)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)
at
org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:28)

Note: I have copied using Window copy paste utility.

Regards,
Pulkit Agrawal

On Thu, Nov 10, 2011 at 1:38 AM, Karussell tableyourtime@googlemail.comwrote:

What is the exact stack trace? And did you copy it via command line or
via scan search type + reindexing (recommended) ?

Peter.

On Nov 9, 6:42 pm, Pulkit Agrawal pulkitdot...@gmail.com wrote:

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to
another in different network.
The copy is working fine on the same machine but facing trouble while
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,
Pulkit Agrawal


(Karussell) #4

did you flush the data before copying?

have a look:

Peter.

On Nov 9, 9:19 pm, Pulkit Agrawal pulkitdot...@gmail.com wrote:

Here is the complete Stack Trace

java.lang.ArrayIndexOutOfBoundsException: -1117
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:172)
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:144)
at
org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre
amInput.java:215)
at
org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput
.java:115)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo
aded(ByteSourceBootstrapper.java:507)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn
coding(ByteSourceBootstrapper.java:129)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc
tParser(ByteSourceBootstrapper.java:224)
at
org.elasticsearch.common.jackson.JsonFactory._createJsonParser(JsonFa
ctory.java:785)
at
org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac
tory.java:561)
at
org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json
XContent.java:80)
at
org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG
ateway.java:376)
at
org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV
ersion(LocalGateway.java:311)
at
org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate
way.java:282)
at
org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav
a:128)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:
109)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:
187)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)
at
org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:28)

Note: I have copied using Window copy paste utility.

Regards,
Pulkit Agrawal

On Thu, Nov 10, 2011 at 1:38 AM, Karussell tableyourt...@googlemail.comwrote:

What is the exact stack trace? And did you copy it via command line or
via scan search type + reindexing (recommended) ?

Peter.

On Nov 9, 6:42 pm, Pulkit Agrawal pulkitdot...@gmail.com wrote:

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to
another in different network.
The copy is working fine on the same machine but facing trouble while
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,
Pulkit Agrawal


(Shay Banon) #5

Seems like the copy did not work properly....

On Wed, Nov 9, 2011 at 10:19 PM, Pulkit Agrawal pulkitdotcom@gmail.comwrote:

Here is the complete Stack Trace

java.lang.ArrayIndexOutOfBoundsException: -1117
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:172)
at
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD
ecoder.java:144)
at
org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre
amInput.java:215)
at
org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput
.java:115)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo
aded(ByteSourceBootstrapper.java:507)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn
coding(ByteSourceBootstrapper.java:129)
at
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc
tParser(ByteSourceBootstrapper.java:224)
at
org.elasticsearch.common.jackson.JsonFactory._createJsonParser(JsonFa
ctory.java:785)
at
org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac
tory.java:561)
at
org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json
XContent.java:80)
at
org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG
ateway.java:376)
at
org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV
ersion(LocalGateway.java:311)
at
org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate
way.java:282)
at
org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav
a:128)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:
109)
at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A
bstractLifecycleComponent.java:80)
at
org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:
187)
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)
at
org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:28)

Note: I have copied using Window copy paste utility.

Regards,
Pulkit Agrawal

On Thu, Nov 10, 2011 at 1:38 AM, Karussell tableyourtime@googlemail.comwrote:

What is the exact stack trace? And did you copy it via command line or
via scan search type + reindexing (recommended) ?

Peter.

On Nov 9, 6:42 pm, Pulkit Agrawal pulkitdot...@gmail.com wrote:

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to
another in different network.
The copy is working fine on the same machine but facing trouble while
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,
Pulkit Agrawal


(system) #6