Re: Keeping the DB properties file outside the jar and connecting to database using a plain java class

2016-11-17 Thread Tushar Gosavi
Hi Venky, For Req 2. Can you share how do you currently load the database connection properties in application. please share the code snippet where you are loading connection properties. I think it could be done my copying properties to application directory by using -files option if you are

Re: how to connect to database having the DB properties file outside the resources folder or applcation

2016-11-17 Thread Aniruddha Thombare
About req 3: AFAIK CDH does provide REST access to cluster health parameters among many other things. Not sure about ambari though Thanks, A _ Sent with difficulty, I mean handheld ;) On 17 Nov 2016 8:25 pm, "Munagala Ramanath" wrote:

Re: how to connect to database having the DB properties file outside the resources folder or applcation

2016-11-17 Thread Munagala Ramanath
For Req1, a better approach might be to have a single "error reporting" operator that connects to the DB; all the other operators can send custom error tuples to it with appropriate details of the type of error. That way, if there are issues that are DB-related, you have 1 place to debug them

how to connect to database having the DB properties file outside the resources folder or applcation

2016-11-17 Thread Venky
Hi, Req1: I have around 20 operators. In every operator I want to connect to database to mark my processing as failed when there is an Io Exception or any cluster level exception. I wanted to use plain java class here, please let me know how we can implement it. If not suggest the better approach

Fwd: Keeping the DB properties file outside the jar and connecting to database using a plain java class

2016-11-17 Thread Venky
Hi, Req1: I have around 20 operators. In every operator I want to connect to database to mark my processing as failed when there is an Io Exception or any cluster level exception. I wanted to use plain java class here, please let me know how we can implement it. If not suggest the better approach

settng property using * not working

2016-11-17 Thread chiranjeevi vasupilli
Hi team, In my application i wnat to set one of teh property to multiple operators. i have used the * instead of Operator name. But it is not setting. *\"dt.application.app1.operator.*.prop.strtDate\":\"$strtDate\",* can you please suggest , how i can set a property for multiple operators