# How to implement scrutineer?

**URL:** https://discuss.elastic.co/t/how-to-implement-scrutineer/10298
**Category:** Elasticsearch
**Created:** [January 10, 2013, 5:10pm UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298 "2013-01-10T17:10:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kiruba\_2](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kiruba\_2](https://discuss.elastic.co/u/kiruba_2)
#### Post date: [January 10, 2013, 5:10pm UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/1 "2013-01-10T17:10:58Z")

</div>

Hi All,  
I need to implement scrutineer in to my java application for find  
out and resolve inconsistency data between database and ES index. i read  
the document ( [https://github.com/Aconex/scrutineer#readme](https://github.com/Aconex/scrutineer#readme) ) but still i  
didn't get the exact idea of how to implement scrutineer into java  
application.  
Is there any example or procedure to implement scrutineer?

NOTE: I'm using mysql database.

Thanks All.

--

---

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)
#### Post date: [January 10, 2013, 5:16pm UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/2 "2013-01-10T17:16:55Z")

</div>

Scrutineer is written in Java. Look in the src directory  
[https://github.com/Aconex/scrutineer/tree/master/src](https://github.com/Aconex/scrutineer/tree/master/src) I have never used it,  
but I appears that Scrutineer is a standalone application, not meant to be  
integrated into an existing Java program.

You also might want to look into the JDBC River:

> **[GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-jdbc)**
>
> JDBC importer for Elasticsearch. Contribute to jprante/elasticsearch-jdbc development by creating an account on GitHub.

--  
Ivan

On Thu, Jan 10, 2013 at 9:10 AM, kiruba [kirubakaran.r@bambeeq.com](mailto:kirubakaran.r@bambeeq.com) wrote:

> Hi All,  
> I need to implement scrutineer in to my java application for find  
> out and resolve inconsistency data between database and ES index. i read  
> the document ( [https://github.com/Aconex/scrutineer#readme](https://github.com/Aconex/scrutineer#readme) ) but still i  
> didn't get the exact idea of how to implement scrutineer into java  
> application.  
> Is there any example or procedure to implement scrutineer?
> 
> NOTE: I'm using mysql database.
> 
> Thanks All.
> 
> --

--

---

<div class="post-metadata">

### Author: ![Paul\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_smith/32/1323_2.png) [@Paul\_Smith](https://discuss.elastic.co/u/Paul_Smith)
#### Post date: [January 10, 2013, 9:05pm UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/3 "2013-01-10T21:05:34Z")

</div>

Do you really need to execute Scrutineer from within an existing Java  
application? The main idea is for a standalone tool to be run at any time,  
operationally.

If you must need to have it embedded within your Application, you will need  
to bring in Scrutineer as a dependency (the jar) and all of it's  
dependencies, then follow a similar pattern as to  
how com.aconex.scrutineer.Scrutineer constructs the various components, or  
alternatively just call that static main method directly faking out the  
command line arguments.

If you want to use it standalone as it is designed with mysql, I would  
clone the repository, add the mysql JDBC drivers to the block,  
and then use Maven to 'mvn package' to build the artifact with the mysql  
jar embedded.

Unfortunately the Maven AppAssembler plugin does not allow simply dropping  
new JDBC drivers in with all the other JARS to easily add them. It would  
probably make sense for Scrutineer to ship with the common open-source  
drivers (we already ship it with JTDS), you could give us a pull request if  
you like.

Paul Smith

On 11 January 2013 04:16, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Scrutineer is written in Java. Look in the src directory  
> [https://github.com/Aconex/scrutineer/tree/master/src](https://github.com/Aconex/scrutineer/tree/master/src) I have never used  
> it, but I appears that Scrutineer is a standalone application, not meant to  
> be integrated into an existing Java program.
> 
> You also might want to look into the JDBC River:  
> [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)
> 
> --  
> Ivan
> 
> On Thu, Jan 10, 2013 at 9:10 AM, kiruba [kirubakaran.r@bambeeq.com](mailto:kirubakaran.r@bambeeq.com) wrote:
> 
> > Hi All,  
> > I need to implement scrutineer in to my java application for  
> > find out and resolve inconsistency data between database and ES index. i  
> > read the document ( [https://github.com/Aconex/scrutineer#readme](https://github.com/Aconex/scrutineer#readme) ) but  
> > still i didn't get the exact idea of how to implement scrutineer into java  
> > application.  
> > Is there any example or procedure to implement scrutineer?
> > 
> > NOTE: I'm using mysql database.
> > 
> > Thanks All.
> > 
> > --
> 
> --

--

---

<div class="post-metadata">

### Author: ![kiruba\_2](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kiruba\_2](https://discuss.elastic.co/u/kiruba_2)
#### Post date: [January 11, 2013, 1:37pm UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/4 "2013-01-11T13:37:19Z")

</div>

Thanks ivan. i learned river jdbc from your information.

On Thursday, January 10, 2013 10:46:55 PM UTC+5:30, Ivan Brusic wrote:

> Scrutineer is written in Java. Look in the src directory  
> [https://github.com/Aconex/scrutineer/tree/master/src](https://github.com/Aconex/scrutineer/tree/master/src) I have never used  
> it, but I appears that Scrutineer is a standalone application, not meant to  
> be integrated into an existing Java program.
> 
> You also might want to look into the JDBC River:  
> [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)
> 
> --  
> Ivan
> 
> On Thu, Jan 10, 2013 at 9:10 AM, kiruba \<[kiruba...@bambeeq.com](mailto:kiruba...@bambeeq.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi All,  
> > I need to implement scrutineer in to my java application for  
> > find out and resolve inconsistency data between database and ES index. i  
> > read the document ( [https://github.com/Aconex/scrutineer#readme](https://github.com/Aconex/scrutineer#readme) ) but  
> > still i didn't get the exact idea of how to implement scrutineer into java  
> > application.  
> > Is there any example or procedure to implement scrutineer?
> > 
> > NOTE: I'm using mysql database.
> > 
> > Thanks All.
> > 
> > --

--

---

<div class="post-metadata">

### Author: ![kiruba\_2](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kiruba\_2](https://discuss.elastic.co/u/kiruba_2)
#### Post date: [January 12, 2013, 6:07am UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/5 "2013-01-12T06:07:41Z")

</div>

Thanks for reply.

On Friday, January 11, 2013 2:35:34 AM UTC+5:30, tallpsmith wrote:

> Do you really need to execute Scrutineer from within an existing Java  
> application? The main idea is for a standalone tool to be run at any time,  
> operationally.
> 
> If you must need to have it embedded within your Application, you will  
> need to bring in Scrutineer as a dependency (the jar) and all of it's  
> dependencies, then follow a similar pattern as to  
> how com.aconex.scrutineer.Scrutineer constructs the various components, or  
> alternatively just call that static main method directly faking out the  
> command line arguments.
> 
> If you want to use it standalone as it is designed with mysql, I would  
> clone the repository, add the mysql JDBC drivers to the block,  
> and then use Maven to 'mvn package' to build the artifact with the mysql  
> jar embedded.
> 
> Unfortunately the Maven AppAssembler plugin does not allow simply dropping  
> new JDBC drivers in with all the other JARS to easily add them. It would  
> probably make sense for Scrutineer to ship with the common open-source  
> drivers (we already ship it with JTDS), you could give us a pull request if  
> you like.
> 
> Paul Smith
> 
> On 11 January 2013 04:16, Ivan Brusic \<[iv...@brusic.com](mailto:iv...@brusic.com) \<javascript:\>\>wrote:
> 
> > Scrutineer is written in Java. Look in the src directory  
> > [https://github.com/Aconex/scrutineer/tree/master/src](https://github.com/Aconex/scrutineer/tree/master/src) I have never used  
> > it, but I appears that Scrutineer is a standalone application, not meant to  
> > be integrated into an existing Java program.
> > 
> > You also might want to look into the JDBC River:  
> > [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)
> > 
> > --  
> > Ivan
> > 
> > On Thu, Jan 10, 2013 at 9:10 AM, kiruba \<[kiruba...@bambeeq.com](mailto:kiruba...@bambeeq.com)\<javascript:\>
> > 
> > > wrote:
> > 
> > > Hi All,  
> > > I need to implement scrutineer in to my java application for  
> > > find out and resolve inconsistency data between database and ES index. i  
> > > read the document ( [https://github.com/Aconex/scrutineer#readme](https://github.com/Aconex/scrutineer#readme) ) but  
> > > still i didn't get the exact idea of how to implement scrutineer into java  
> > > application.  
> > > Is there any example or procedure to implement scrutineer?
> > > 
> > > NOTE: I'm using mysql database.
> > > 
> > > Thanks All.
> > > 
> > > --
> > 
> > --

--

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/how-to-implement-scrutineer/10298/6 "2017-07-06T02:56:50Z")

</div>


