More Native Script help


(davrob) #1

Hi,

I have this config in my data node:

   https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards are
failing for some reason.

Best Regards,

David.


(Shay Banon) #2

Do you see the failures in the logs? Can you gist those?

On Thursday, July 14, 2011 at 7:07 PM, davrob2 wrote:

Hi,

I have this config in my data node:

https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards are
failing for some reason.

Best Regards,

David.


(davrob) #3

Hi Shay,

The logs show no exceptions, and only show the logging that I have
included as part of my implementation of the
AbstractFloatSearchScript.

Are there any log settings that I should loosen up to show exceptions?

Best Regards,

David.

On Jul 14, 11:53 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Do you see the failures in the logs? Can you gist those?

On Thursday, July 14, 2011 at 7:07 PM, davrob2 wrote:

Hi,

I have this config in my data node:

https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards are
failing for some reason.

Best Regards,

David.


(Shay Banon) #4

Can you log if the factory classes for the scripts are getting created?

On Tue, Jul 19, 2011 at 2:01 PM, davrob2 daviroberts@gmail.com wrote:

Hi Shay,

The logs show no exceptions, and only show the logging that I have
included as part of my implementation of the
AbstractFloatSearchScript.

https://gist.github.com/1091979

Are there any log settings that I should loosen up to show exceptions?

Best Regards,

David.

On Jul 14, 11:53 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Do you see the failures in the logs? Can you gist those?

On Thursday, July 14, 2011 at 7:07 PM, davrob2 wrote:

Hi,

I have this config in my data node:

https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards are
failing for some reason.

Best Regards,

David.


(davrob) #5

They are definitely being created and called, this log line shows the
call:

[2011-07-19 06:54:19,264][INFO ]
[com.cs.cts.crm.elasticsearch.util.MyLatestActivitySorterFactory]
MyLatest JSON...

This is the source of the script: https://gist.github.com/1094650

On Jul 19, 11:05 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you log if the factory classes for the scripts are getting created?

On Tue, Jul 19, 2011 at 2:01 PM, davrob2 davirobe...@gmail.com wrote:

Hi Shay,

The logs show no exceptions, and only show the logging that I have
included as part of my implementation of the
AbstractFloatSearchScript.

https://gist.github.com/1091979

Are there any log settings that I should loosen up to show exceptions?

Best Regards,

David.

On Jul 14, 11:53 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Do you see the failures in the logs? Can you gist those?

On Thursday, July 14, 2011 at 7:07 PM, davrob2 wrote:

Hi,

I have this config in my data node:

https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards are
failing for some reason.

Best Regards,

David.


(Shay Banon) #6

Strange..., can you jar up the classes you have, and post it somewhere where
I can download it? With the config as well, and a script that recreates the
problem.

On Wed, Jul 20, 2011 at 12:28 PM, davrob2 daviroberts@gmail.com wrote:

They are definitely being created and called, this log line shows the
call:

[2011-07-19 06:54:19,264][INFO ]
[com.cs.cts.crm.elasticsearch.util.MyLatestActivitySorterFactory]
MyLatest JSON...

This is the source of the script: https://gist.github.com/1094650

On Jul 19, 11:05 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you log if the factory classes for the scripts are getting created?

On Tue, Jul 19, 2011 at 2:01 PM, davrob2 davirobe...@gmail.com wrote:

Hi Shay,

The logs show no exceptions, and only show the logging that I have
included as part of my implementation of the
AbstractFloatSearchScript.

https://gist.github.com/1091979

Are there any log settings that I should loosen up to show exceptions?

Best Regards,

David.

On Jul 14, 11:53 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Do you see the failures in the logs? Can you gist those?

On Thursday, July 14, 2011 at 7:07 PM, davrob2 wrote:

Hi,

I have this config in my data node:

https://gist.github.com/1082725

The "myLatestActivity" script is failing the "my" script is
succeeding.

This is the error I'm getting:

https://gist.github.com/1082738

I am seeing debug of the "MyLatestActivitySorterFactory]" going
through, so it is being hit, unfortunately 4 out of the 5 shards
are

failing for some reason.

Best Regards,

David.


(davrob) #7

An update on this. My sorting class was throwing null pointer exceptions on the ElasticSearch Server.

Unfortunately, ES swallows all of these errors in its logs and just reports errors with the search.

To see what was causing the errors I needed to surround the top level method in my sorting class with a defensive try-catch and the using Log4j / Commons Logging to log my errors, which appear directly in the ElasticSearch console.


(Shay Banon) #8

Was it failing during the call to the script? That should fail and be
reported as an error...

On Tue, Sep 20, 2011 at 5:50 PM, davrob daviroberts@gmail.com wrote:

An update on this. My sorting class was throwing null pointer exceptions
on
the ElasticSearch Server.

Unfortunately, ES swallows all of these errors in its logs and just reports
errors with the search.

To see what was causing the errors I needed to surround the top level
method
in my sorting class with a defensive try-catch and the using Log4j /
Commons
Logging to log my errors, which appear directly in the ElasticSearch
console.

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/More-Native-Script-help-tp3169582p3352288.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #9